Check if any orders opened in current bar
-
Is there a way to open 1 order per bar but at the highest point in the bar instead of at the beginning?
-
"Once per bar" block has independent internal memory that remembers the last bar's time that the block was executed. When it is executed, if the time of the current bar is different than the time into the memory, the block is executed once.
The current bar is unfinished, that means the H, L, O and C levels are not finished, they can be changed. But if in the middle of the block you want to open some trade - there is no problem. Put "Once per bar" after the condition and before the "Buy now/Sell now" so that when the condition is true in the middle of the block, "Once per bar" will pass once until the current bar is closed.
-
great, thank you.