Forums › ProRealTime English forum › ProOrder support › Strange if condition code error › Reply To: Strange if condition code error
06/21/2018 at 10:08 PM
#73969
The code wasn’t intended to open more positions until the previous one was done. I know how CumulateOrders work.
Your description is very difficult to understand.
The code in ProOrder is read from top to bottom at the close of each candle. If CUMULATEORDERS is set to FALSE then no additional positions will be opened at the close of a candle if a position is already open. So you can put any number of BUY instructions in your code within whatever IF THEN ENDIF statements you like but they will all be ignored. Other variable changes will not be ignored unless they are protected by an IF NOT ONMARKET.