How can I reverse the condition for each candle ?
-
How can I reverse the condition for each candle?
Example :
BAR1 ) CLOSE > OPEN (ONE PER BAR) =BUY
BAR2) CLOSE >OPEN (ONE PERBAR)=SELL
And so on -
@khalids222 Not sure I fully understand. Aren't they the exact conditions you are requesting?
-
@l-andorrà said in How can I reverse the condition for each candle ?:
@khalids222 Not sure I fully understand. Aren't they the exact conditions you are requesting?
https://fxdreema.com/shared/s7k6exFCd
In this condition when the moving average(5>20) bar one =buy & same condition bar two i want reverse condition to be moving average (5>20)=sell
So that it is once buy and time sell, but not at the same time same bar. -
@khalids222 Then you should use a 'No trade' block for buys only on top of the left tree and an 'if trade' blocks for buys on top of the right one.
-
@l-andorrà said in How can I reverse the condition for each candle ?:
Then you should use a 'No trade' block for buys only on top of the left tree and an 'if trade' blocks for buys on top of the right one.
thank you very much