Simple EasyLanguage Help Needed - Trailing TP

Beach888

Newbie
Messages
1
Likes
0
(Forex)

Hi all,

can anyone help me write clear EL code for a % retracement from a high for a trailing take profit?
This (highest) high would be, entryprice + 'x' amount

I am having problems:
1. flagging the highest high
2. triggering the exit order on % retracement from high.

Many thanks!
 
inputs:
StopPct ( 0.01 ) ;

Sell next bar Highest( High, BarsSinceEntry ) * ( 1 - StopPct ) stop ;
 
Just be careful if backtesting with a continuous contract. Percentages are not usable.

jj
 
Top