Professional Documents
Culture Documents
Dark Wolf Electri - OK
Dark Wolf Electri - OK
//Stochastic Calculation
k = ema(stoch(close, high, low, length), smoothK)
//Stochastic Plots
plot(k, title="Stochastic", style=line, linewidth=4, color=col)
p1 = plot(uline, title="Upper Line", style=line, linewidth=4, color=green)
p2 = plot(100, title="100 Line", color=white)
fill(p1, p2, title="Long Trade Fill Color", color=green, transp=90)
p3 = plot(lline, title="Lower Line", style=line, linewidth=4, color=red)
p4 = plot(0, title="0 Line", color=white)
fill(p1, p3, title="No Trade Fill Color", color=blue, transp=90)
fill(p3, p4, title="Short Trade Fill Color", color=red, transp=90)