My ProOrder system is not working as it should, pending stop orders are not always closed after 1 bar. See attached image.
The pending order was added by my ProOrder system 11:25, the clock is now 12:57 and it is still there pending (I run on 5 minute bars). Most of the time the pending order is cancelled as it should, but I see this behavior from time to time. Any idea what might be wrong?
Are you you do not put it again? Any error message in your orders list?
No errors, and I don’t add it again. Here is another example. This pending order wasn’t cancelled until the bar before 11:25 order was added.
And 13:05 the pending order was cancelled (when a new pending order was added)… What is going on here? It actually seems that pending orders are never cancelled until a new one is added…
Forget about this, I am stupid 🙂 After reading the code more carefully I understand now that my pending orders are actually recreated on each new bar (and the ProOrder system is smart enough to just keep the existing open if nothing is changed).
Hi Marten, I’m facing the same issue, pending STOP orders do not get cancelled or replaced since the time of the first order doesn’t change after a few candles. For completeness, my conditions do not change, so no reason for the order to change.
Have you solved the issue? Can you please share the solution?
Thanks
Pending order expire after 1 bar of the main timeframe of your trading system. If you don’t need it anymore, make sure you reset the conditions needed to launch a new pending order.
Hi Khaled,
It was a programming mistake (not understanding fully how PRT works) on my part. As Nicolas say, you have to reset your variables that trigger the creation of the order if you don’t wan’t it anymore. PRT “remembers” everything between each time it is triggered.
/Mårten