Need Help Pending Order
-
Hello all!
I have a problem with pending order, i want to create an EA with my strategy
http://i.imgur.com/vAxiEeh.png
- When buy take TP, how to delete sell pending - order?
- If buy can't tp, sell stop order is active. when satisfy condition. i want cut sell order, take a buy order and place sell stop below second buy order. If all buy order gain profit target, close all.... What can i do?
Sorry for my english

-
By looking at this, I think you need to look at this example: https://fxdreema.com/demo/mt4-wrong-closing-rule
How to detect if a trade is closed by TP? Depends. Under "on Tick" you can check if there are no trades, then to check if the latest closed trade was profitable. Or under "on Trade" you can detect the moment when a trade is closed. But better look at some examples in the Examples page
