StopTriggerMethod

Created at 12 Feb 2020, 06:34
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!
DR

driftingprogrammer

Joined 08.12.2019

StopTriggerMethod
12 Feb 2020, 06:34


Hi,

 

Has anyone used this parameter in the ExecuteMarketOrder API. According to the documentation setting this parameter will close the present order and open a new order when the direction of the movement changes but i have tried using this API with and without stop loss but it does not seem to have any effect.

 

Thanks in advance,

Warm Regards,

Vipin.


@driftingprogrammer
Replies

PanagiotisCharalampous
12 Feb 2020, 08:46

Hi Vipin,

The StopTriggerMethod is for stop losses so it will have no effect when a stop loss is not set. Can you tell me which documentation part led you to this conclusion?

and open a new order when the direction of the movement changes

 

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

driftingprogrammer
19 Feb 2020, 06:14

Made a guess

Hi,

Since there is no documentation I just made a guess reading a sentence each for the 4 types in the API.

My understanding is that when the stop loss is hit then this property will open a new trade in the opposite direction based on certain condition.

Is that not correct?

 

Thanks in advance,

Warm Regards,

Vipin


@driftingprogrammer

PanagiotisCharalampous
19 Feb 2020, 08:39

Hi Vipin,

No that is not the case. The StopTriggerMethod defines when a stop loss will be triggered. If you go to the order screen and hover on top of the respective button you will get the description of each option.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

driftingprogrammer
19 Feb 2020, 10:32

Thanks a lot

It all makes sense now. Thanks.


@driftingprogrammer