jivasmax

ATR STDDEV

1903 views
217
1903 0
TR
ATR +- 2*STDDEV
Remove from Favorite Scripts Add to Favorite Scripts
study(shorttitle="ATR STD", title="ATR STDDEV", overlay=false)
length = input(20, minval=1)
src = input(low, title="Source")
src2 = input(high, title="Source2")


mult = input(2.0, minval=0.001, maxval=50)

basis0 = (high-low)
basis = sma(basis0, length)
basis2 = tr

dev = mult * stdev(basis, length)

upper = basis + dev
lower = basis - dev

plot(basis, color=green)
plot(basis2,color=gray)

p1 = plot(upper, color=red)
p2 = plot(lower, color=blue)
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out