PureBytes Links
Trading Reference Links
|
Below is a variation of the Chandelier Exit that I came up with. It doesn't
solve the original question, but I like the way it plots better. It holds
the
highest value every time the stop moves up, and never moves lower unless
the stop is hit, in which case its value is reset.
- Barry
Stop1:=If( PREV < L,
{then} If(( H - 3*ATR(10) ) >= PREV,
{then} ( H - 3*ATR(10) ),
{else} PREV),
{else (L <= PREV)}
( H - 3*ATR(10) ));
Stop2:=If( PREV < L,
{then} If(( C - 2.5*ATR(10) ) >= PREV,
{then} ( C - 2.5*ATR(10) ),
{else} PREV),
{else (L <= PREV)}
( C - 2.5*ATR(10) ));
StopVal:=If(Stop1>Stop2,Stop1,Stop2);
StopVal;
|