is it possibe to do it?

 

i have an Ea that places two orders at thesame time. What i want it to be doing is that if it close s one out of them with stoplosss i want it to close the remaing one when the equity is more than the initial one before it place order. I only need the formula for it .thanks

 
keylove wrote >>

i have an Ea that places two orders at thesame time. What i want it to be doing is that if it close s one out of them with stoplosss i want it to close the remaing one when the equity is more than the initial one before it place order. I only need the formula for it .thanks


in Orderhistory you find the closed orders.
Select the last one matching your criterias (Pair, MagicNumber,...) then you find out if OrderClosePrice=OrderStopLoss