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:38 PM
#65763
This works, but you have to exit the next bar!
1 2 3 4 5 6 7 8 9 10 |
ONCE Flag = 0 if OnMarket then sell at market flag = 1 endif If not OnMarket and Flag = 0 then buy 1 contracts at market endif |