Master001 / Publications
Forum
How to check if the order was closed by TP or SL?
Hello I have read some threads but im not sure if my code can check properly order close by SL or TP : OrderSelect ( HistoryTotal () - 1 , SELECT_BY_POS , MODE_HISTORY ) ; if ( OrderSymbol () == Symbol ()) { if ( OrderClosePrice () == OrderStopLoss ()) if ( ` sl `== OrderComment () ; { } } the code