command help please
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.
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!
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