Hi Archie,
Here is one that I am using - effectively it is a trailing stop using ATR. You
can adjust the settings as needed.
TrailATR= 2.5*ATR(15);
Initial=C-TrailATR;
stop[ 0 ] = Close[ 0 ];
for( i = 1 ; i < BarCount; i++)
{
if( Close[ i ] > stop[ i - 1])
{
temp = Close[ i ] - TrailATR[ i ];
if( temp > stop[ i - 1 ] ) stop[ i ] = temp;
else stop[ i ] = stop[ i - 1 ];
}
else
stop[ i ] = Initial[ i ];
}
sell = close < ref( stop, -1);
Plot( stop, "ATR Stop", colorRed, styleLine);
PlotShapes( IIf( sell, shapeDownArrow, Null), colorOrange, 0, H);
--- In [email protected], "archibaldhead" <archibaldh...@...> wrote:
>
>
> Can someone please point me in the direction of, or supply the code for, an
> Average True Range Stop Loss indicator with adjustable parameters that
> actually works?
>
> I have tried a couple but can't seem to get them to work.
>
> Thanks.... Archie.
>