Hello, 

My strategy is:

General Setup:

  • Currency Pair AUD/USD
  • Take Profit: .0008
  • Stop Loss: .0005
  • Close all trades before weekend
  • MACD (12,26, 9)
  • RSI (14 period)
  • ATR (14 period)


 

Long Setup:

  • Close > 9 EMA ( 5 minute )
  • Open > 9 EMA ( 5 minute )
  • Close < Open ( 5 minute )


 

  • 9 EMA > 50 EMA ( 5 minute )
  • RSI < 65 and > 58 ( 5 minute )
  • MACD > .00005 ( 5 minute )
  • ATR > .00025 ( 5 minute )
  • MACD Value of Current Bar > MACD Value 1 Bar Ago at the Close ( 5 minute and 1 Hour)
  • MACD Difference > 0 ( 5 minute and 1 Hour )


 

Short Setup:


 

  • Close < 9 EMA ( 5 minute )
  • Open < 9 EMA ( 5 minute )
  • Close > Open ( 5 minute )


 

  • 9 EMA < 50 EMA ( 5 minute )
  • RSI > 38 and < 45 ( 5 minute )
  • MACD < -0.00005 ( 5 minute )
  • ATR > .00025 ( 5 minute )
  • MACD Value of Current Bar < MACD Value 1 Bar Ago at the Close ( 5 minute and 1 Hour)
  • MACD Difference < 0 ( 5 minute and 1 Hour)

 

But my the code is not executing this strategy how it should. First off, its not entering trades at the right time. Second its not executing the stop loss and take profits how they should because the profit to risk ratio should be at 1.6.

Please help me figure out why the strategy is not being executed correctly. THANKS!