Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)

Forums>AlgoWizard / EA Wizard>General Discussion>Ensuring an order is executed

  • #113523 |
    29 Posts

    Hello Mark,


    While creating and testing some EAs I noticed that some times orders are not placed because of some error maybe server-client issues etc. This can be a problem when the conditions to place the order no longer apply, especially when closing a position since it will be kept open and then it wont be closed at all until manual intervention.


    How could somebody create a loop of placing a particular order until it will be fulfilled? Do you have any other suggestions?




    Mark Fric
    1182 Posts

    Hello Benjamin,


    there already is a loop, EA tries to open the position 3 times, but if the server issue takes too long it will be not able to place the order even in this case.


    You can see how it is done in sqOpenOrder() function and see the loop there.

    StrategyQuant architect

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.