command help please

 
I am creating an EA to place a reversal order once the stoploss is hit...

does anyone have an idea for the line of code to read that there was a stoploss hit?

i have been trying to mess with marketinfo in compairison with bid and ask prices but i think the timing of my code may be wrong on this.


thanks much for your help
 
Using OrderSelect() select the order you want to monitor.
If it is closed (OrderCloseTime() > 0) and the OrderClosePrice() is the same as OrderStopLoss() then your order has hit a stop loss.
 
thank you so much fireflies, that solved the problem!