i use the no trade and once ber but there problem ?
-
hello
if i want open one order example buy when RSI x> 70 and i put stop lose 2 pips ( i use no trade and once bar )
When candle close to up RSI break number 70 , So create my order
but after above if the same candle close to down will be under 70 and may be stop lose after down 2 pips
the problem if the same candle close to up again and break 70 again will create order again in the same option - i dont want that
i want create one order only until if order stop lose
one order until if candle break again x> 70 - dont create buy again
in the same candle
how i can do that ?
thank you
-
Block "Once per bar" can only pass 1 time per bar. You can put this block directly on top level in "on Tick" (which means that the block will run many many times, maybe few times per second) and it will pass only 1 time per bar.
https://fxdreema.com/demo/mt4-once-per-bar
When you use the crossover options in "Condition" (x> and x<), you could have multiple signals (passes of the block) in the same candle, but then after that candle closes all signals stop, at least for the whole next candle. This is because of the way these crossovers are detected, you just can't have crossover detected in one candle and then another crossover on the very next candle.
Again, while in the same candle you will see many many signals (passes of the Condition block), because the crossover detection is made out of 2 simple IF checks, as it is described here: https://fxdreema.com/help/working-with/crossover That's why the "Once per bar" block is normally used before or after this Condition block, as described here: https://fxdreema.com/demo/mt4-once-per-bar
-
thank you for that explain
thnx