Open order with stoploss and server trailling stoploss

Created at 08 Aug 2019, 14:37
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!
CH

chanapong3

Joined 08.08.2019

Open order with stoploss and server trailling stoploss
08 Aug 2019, 14:37


Open order with stoploss and server trailling stoploss
How can I do this ?
I have done trailing stoploss by loop program in Ontick()
But that is not on server side trailing.
I want Open order with stoploss ,Trailling stoploss ,Trailling trigger  etc

Pls guide me.
Chanapong Khotabut


@chanapong3
Replies

PanagiotisCharalampous
08 Aug 2019, 14:41

Hi chanapong3,

Thanks for posting in our forum. To enable trailing stop loss of a position just set the relevant parameter of ExecuteMarketOrder to true. If you want to enable trailing stop loss for an existing position, use ModifyTrailingStopLoss.

Best Regards,

Panagiotis


@PanagiotisCharalampous

chanapong3
08 Aug 2019, 15:16

Thank you for very fast answer !!!
lets recap
1.I need to  ExecuteMarketOrder  first.(set bool  hasTraillingstop to true)
2. Going to modify Trailling stop loss (something like  10 pip) ?

Am I correct ?
last question 

In  ExecuteMarketOrder
StopTriggerMethod? stopLossTriggerMethod
How it different ?


Thanks


@chanapong3

PanagiotisCharalampous
08 Aug 2019, 15:22 ( Updated at: 21 Dec 2023, 09:21 )

Hi chanapong3,

stopLossTriggerMethod refers to the method used to trigger a stop loss. It corresponds to the method found in the UI below

Best Regards,

Panagiotis


@PanagiotisCharalampous

chanapong3
11 Aug 2019, 09:57

Wha is  StopTriggerMethod and StopLossTriggerMethod in  ExecuteMarketOrder().
I cant find any data about it. How to set that value. Do I need to choose method ?
My purpose is setting server side trailling stop. Now I am stuck with this.

Thanks

 


@chanapong3

PanagiotisCharalampous
12 Aug 2019, 09:31 ( Updated at: 21 Dec 2023, 09:21 )

Hi chanapong3,

You can find an explanation of each trigger method when you hover your cursor above eahc selection in the Create Order window. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous