Activate trailing stop after price is in some value

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