OPEN-SOURCE SCRIPT

ATR Trailing Stop by ceyhun

By ceyhun
Updated
Same coding only coloring and information panel was added.

CDC ATR Trailing Stop V2.1 (2013)
CDC ATR Trailing Stop V2.1 (2013)


//Barcolor
Green = Trail1 > Trail2 and close > Trail2 and low > Trail2
Blue = Trail1 > Trail2 and close > Trail2 and low < Trail2
Red = Trail2 > Trail1 and close < Trail2 and high < Trail2
Yellow = Trail2 > Trail1 and close < Trail2 and high > Trail2
//It gives White color where there is deterioration.

//InfoPanel
Buy Price = Blue draws the circles at the purchase price.
Profit Long>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.
Sell Price = Red draws the circles at the purchase price.
Profit Short>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.


snapshot
Release Notes
bugs fixed
Release Notes
info panel fix
Release Notes
bugs fix
Release Notes
fix
Release Notes
fix
Period and Support-Resistance Distance
Release Notes
fix
Release Notes
v5 fix
ATRatrtrailingatrtrailingstopatrtrailingstoplossAverage True Range (ATR)CDCceyhunstoptrailingtrailingstopTrend AnalysisVolatility
ceyhun

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer