Take Profit and Stop Loss

Created at 28 Aug 2012, 12:42
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!
simons847's avatar

simons847

Joined 13.08.2012

Take Profit and Stop Loss
28 Aug 2012, 12:42


Hello,

 

How can I add/modify the Take Profit and Stop Loss of an order in a Robot?

 

Thanks.


@simons847
Replies

admin
29 Aug 2012, 09:56

Hi

You can use the following code for this:

ModifyPendingOrder(PendingOrder order, double? stopLoss, double? takeProfit, DateTime? expirationTime)
ModifyPosition(Position position, double? stopLoss, double? takeProfit)



@admin