Candle cross help
-
I want to have this instance "when current candle closes above previous candle open, close trade and vice versa but it does not seem to work properly https://fxdreema.com/shared/KUtpFf88d
-
@drewliedadeuce
The candle 0 is : the current one/still forming
The candle 1 is : the most recent candle which closed
So as soon as the candle 0 closes it becomes the candle 1. And the candle 0 is the one that just opened.
Must replace id0 by id1; and id1 by id2. -
@seb-0 thanks for your help. I tried this logic but the EA does not seem to understand it. A number of trades are remaining open even when this logic passes https://fxdreema.com/shared/hyabgk14d
-
@drewliedadeuce
You forgot to write "4" as group number in the sell block.
This way it is better : https://fxdreema.com/shared/dI3LZzkgb
However be careful that with this strategy, you sometimes will have opened and closed trades almost simultaneously.