[PL/EL] How to use multiple level of Trailing Stops?

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

[PL/EL] How to use multiple level of Trailing Stops?

Postby 2haerim » 18 Jun 2009

Is it possible to set multiple trailing stops for the next bar?

For example,
If the profit gets to 100, the trailing stop woul be 30%
If the proft gets to 200, the trailing stop would be 20%.
And so on.

HR

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Re: [PL/EL] How to use multiple level of Trailing Stops?

Postby gregorio123456 » 19 Jun 2009

Is it possible to set multiple trailing stops for the next bar?

For example,
If the profit gets to 100, the trailing stop woul be 30%
If the proft gets to 200, the trailing stop would be 20%.
And so on.

HR
try this

if positionprofit > 100 and positionprofit < 200 then sell ("tralling 30%") next bars avgentryprice+positionprofit*0.30 stop;
if positionprofit > 200 then sell ("tralling 20%")next bars avgentryprice+positionprofit*0.20 stop;

Jo :-)


Return to “MultiCharts”