Activate trailing stop after price is in some value

Created at 04 Mar 2025, 15:47
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!
HI

hilsimmariana

Joined 04.03.2025

Activate trailing stop after price is in some value
04 Mar 2025, 15:47


Hello all,

   I need to create a sentence to activate the trailing stop when the price is above some pips defined by me. Do you have any Idea?

Thanks a lot in advance!


@hilsimmariana
Replies

firemyst
12 Mar 2025, 06:04

if (Bars.ClosePrices.Last > Your_Position.Pips)

{

   Your_Position.ModifyTrailingStop(true);

}


@firemyst