Pending orders are not always cancelled after one bar

Forums ProRealTime English forum ProOrder support Pending orders are not always cancelled after one bar

Viewing 8 posts - 1 through 8 (of 8 total)
  • #142035

    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?

    #142036

    Are you you do not put it again? Any error message in your orders list?

    #142039

    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.

    #142045

    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…

    #142048

    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).

    #148732

    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

    #148748

    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.

    1 user thanked author for this post.
    #148750

    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

    1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login