I'm a developer (not MQL) and I need to implement a simple Algorithm for a friend.
The algorithm needs to create an order, constantly check if the order is closed by stop loss. If is stopped by stop loss I need to create a new pending sale. The user must manually close the order when stop loss is never reached.
I already created a script that creates a new order, and is constantly checking the state of this order (using a while(true) and checking if order closed value = stop loss).
My questions are:
Thanks (and sorry my English :D)
By EA you mean Expert advisor, correct?
Please enable the necessary setting in your browser, otherwise you will not be able to log in.