Heiken Ashi EA
-
Hi,
I was trying to build a simple EA that it buys when there is a closed bullish Heiken Ashi and closes trade when it turns bearish with some other conditions. But it seems that the EA is buying even when the Heiken Ashi is bearish, and closing trades when Heiken Ashi is still bullish.
I wonder what did I do wrong? Please help. Thanks a lot!EA:
https://fxdreema.com/shared/BplN9x2mb
Screencap:

-
I think, problem can be that you are working with candle ID 0, and it is not closed candle
try to change these IDs to 1

and be sure, you are using right Timeframe for all indicators/candles ...
and maybe change in block No trade Filter by type to "Buys" (and in sell section to Sells) ... I am not sure with this, it depends on your strategy ... this block No trade is working as "no buy OR no sell" - when one is true, output is true ... when you change it to only Buy, output is true when is here "no buy" ...
