Query Original Trailing Stop Loss Distance for a Given Position

Created at 17 Feb 2024, 16:40
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!
sirinath's avatar

sirinath

Joined 25.11.2021

Query Original Trailing Stop Loss Distance for a Given Position
17 Feb 2024, 16:40


I am dynamically deciding the stop loss distance in each case.

Once the position is created I would like to know what is the original trailing stop loss distance.

Is there a way this can be retrieved. The system should keep tract of it some where for trailing stops otherwise it would not be able to keep the trailing distance.

 


@sirinath
Replies

firemyst
04 Oct 2024, 14:47 ( Updated at: 05 Oct 2024, 06:10 )

I don't believe there is, and think you'll have to keep track of it in your code.

Basically query the SL distance from whatever price you want, convert it to pips, and then save it in a variable before setting the SL property to true on the position.


@firemyst