how to find out whether the last 2 orders were closed by signal
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.
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() ?