close order that has no TP

Created at 10 Mar 2017, 17:11
swingfish's avatar

swingfish

Joined 25.06.2016

close order that has no TP
10 Mar 2017, 17:11


i use the code to close ALL positions

                           result = OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), Slippage, Pink);

how can i change this to close only positions that have no TP set ? 

 


@swingfish