Mulitiple time frame Slow Stochastic Jamila
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Cape1303

//@version=4
study(title="Slow Stochastic 3 time frame", shorttitle="SlowStochDWM")
smoothK = input(14, minval=1), smoothD = input(3, minval=1)
k = sma(stoch(close, high, low, smoothK), 3)
d = sma(k, smoothD)
plot(d, color=color.white, title="daily")
//plot(d, color=color.red)

plot(security(syminfo.tickerid, "D", d), color=color.white, title="1Day")
plot(security(syminfo.tickerid, "3D", d), color=color.blue, title="3Day")
plot(security(syminfo.tickerid, "W", d), color=color.green, title="1week")
//plot(security(syminfo.tickerid, "2W",d), color=color.aqua, title="2weeks")
plot(security(syminfo.tickerid, "M", d), color=color.yellow, title="Month")

h0 = hline(80)
h1 = hline(20)
h2 = hline(50)
fill(h0, h1, color=color.purple, transp=95)