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!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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