Show Trailing Stop for Amibroker (AFL)
kalenkov over 11 years ago Amibroker (AFL)
Very simple visual representation of a point trailing stop. Has to be applied over the price chart.
Position cursor at the buy point in the past and tune parameter to desired value.
Helps to set trailer stops just below whipsaws of previous swings
Indicator / Formula
Copy & Paste Friendly
periods = BarIndex() - SelectedValue(BarIndex());
trv = Param("Trailing", 2, 0.2, 150, 0.01);
graph = IIf(periods > 0, HHV(High, periods) - trv, Null);
trc = ParamColor( "Trail Color", colorCycle );
Plot(graph, "Trail", trc, 8);0 comments
Leave Comment
Please login here to leave a comment.