Forums › ProRealTime English forum › ProOrder support › Strange if condition code error › Reply To: Strange if condition code error
06/22/2018 at 6:29 PM
#74115
Actually that proves that there is a problem.
No it proves there is not a problem. You are not on the market – the code is read from top to bottom at the close of a candle. Long1 criteria is read and all conditions met and tradecount is set at 1. Then Long2 is read and all conditions are met because Long1 just changed them so Long2 then sets tradecount to 2. Then Long3 is read and Long2 just set all the conditions for it so tradecount is set to 3. At no point up to now has anything been bought as that order does not go to the market until the last line of code has been read.