i am trying to make my automated strategy script a little bit more robust.
I am sure that the topic has already been addressed in the forum but couldn't find it.
if the connection went down how can i update the strategy so that it knows what is the value of stop and take profit orders still waiting for execution (attaching code to onConnectionStatus() ).
I am only using managed orders instructions.
Same issue if my computer is resuming after a blue screen with pending stop loss and take profit orders and i restart the strategy.
Lionel
Comment