Magic numbers and comments are irrelevant. you can not change them after creating the order.
Either remember what you did or you need to guess: OrderClosePrice near TP or near SL or was closed.
thank you, but maybe there is a way to examine whether the last two orders (both) were closed in profit?
fulltilt:
thank you, but maybe there is a way to examine whether the last two orders (both) were closed in profit?
OrderSelect() then if OrderProfit() > 0 it was closed in profit
thank you, but maybe there is a way to examine whether the last two orders (both) were closed in profit?
many thanks ;-)
If you are using trailing stops then OrderPRofit() > 0 does not necessarily mean it was closed by TP.

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
OrderClose()
there are 3 or 4 magicnumbers and therefore it is enough if it is filtered by symbol only
how can I find out whether the last two orders were closed with OrderClose() ?