Forums › ProRealTime English forum › ProOrder support › How do I open a position in the first bar of a newly started trading system ? › Reply To: How do I open a position in the first bar of a newly started trading system ?
03/19/2018 at 10:47 PM
#65767
I think the problem are the pre-loaded bars. The reason why
1 2 3 4 5 6 |
ONCE flag = 0 If flag = 0 then buy 1 contract at market flag = 1 endif |
does not work, is that the ONCE commands are not executed at the beginning of the trading system, but at barindex = 1, which is the first of the pre-loaded bars in the past.