CapnOscar

Stochastic In Bands

What about to display Stochastic Oscilator in EMA-ATR Bands? If you like the idea I would code advanced version
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Stochastic In Bands", shorttitle="SIB", overlay=true)
ATRlength = input(14, minval=1)
ATRMult = input(2.70, minval=1)
ATRBase = input(3.50, minval=1)
ATR = rma(tr(true), ATRlength)

len = input(21, minval=1, title="Length")
src = input(close, title="Source")
out = ema(src, len)

emaup = out+(ATR*ATRMult)
emadw = out-(ATR*ATRMult)
emabs = out-(ATR*ATRBase)
plot(out, title="EMA", color=orange)
plot(emaup, title="EMAUP", color=silver)
plot(emadw, title="EMADW", color=silver)

Stlength = input(14, minval=1), smoothK = input(5, minval=1), smoothD = input(3, minval=1)
k = sma(stoch(close, high, low, Stlength), smoothK)
d = sma(k, smoothD)

MDiff = emaup-emadw
StM = emabs+((k*MDiff)/80)
StS = emabs+((d*MDiff)/80)
plot(StM, title="Main", color=red)
plot(StS, title="Signal", color=blue)




Freeeze
a year ago
Excellent idea :)
+1 Reply
CapnOscar Freeeze
a year ago
Thank you..
Reply
Freeeze CapnOscar
a year ago
Thumb up to the captain ;)
Reply
cmc
a year ago
excellent, like always
Reply
gianfranco60
a year ago
I like very much your idea
Reply
Really interesting!, Good job!
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out