Does it possible to generate an event when an order is closed?

 

Since generally I set a target for an open position, there is no way I can be notified if the order reaches the TP or ST. Is there a way to generate an event triggered when the order reaches the TP or ST?

Thanks!

 

well... u use EA and EA called each new data tick from server - fwiw, generally one would be comparing latest price data against EAs TP/ST

and that test is ur 'event' and EA can do watevr when see 'event', OrderModify(),OrderClose()... oh u know... any stuff

Best

 
check, check, and check again.....
Reason: