Trade on close of the bar, every tick
-
Hey,
i have found a mistake in the program.
It should be possible to choose OnBar.
The problem is if i choose a buy order on Close of the bar > MA the ea executes the trade just after the price crosses. I just want the order after the bar closes on chart.Is that possible?
Regards
-
There is a block called "Once per bar" and this block can pass 1 time per bar. Put it before or after the condition and the result will be different. There is no such thing as "on close of the bar", but if you have "Once per bar" on top level, it will detect when a new bar is created, it will pass on the first tick of the new bar. In "Condition" you can always set Candle ID to 1, 2, 3... or anything else to work with the previous candles.