close order that has no TP

Created at 10 Mar 2017, 17:11
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
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