The NextBarOpen instruction in ProBuilder language is used to specify that a trading order should be executed at the opening price of the next bar. This is particularly useful in strategies that aim to capitalize on price movements right at the start of a new trading period.
AT MARKET NextBarOpen
The following example demonstrates how to place a buy order for 2 contracts at the market price, but only at the opening of the next bar, provided that the trading system is not currently in the market:
IF NOT ONMARKET THEN
BUY 2 CONTRACTS AT MARKET NextBarOpen
ENDIF
This instruction is no longer valid and is of no use, since the code is read only once at candle closing (period), and every order is irrevocably open at the next candle opening. So this instruction should no longer be used in codes.