study(shorttitle="BB", title="Bollinger Bands", overlay=true) length = input(20, minval=1) src = input(close, title="Source") mult = input(2.0, minval=0.001, maxval=50) basis = sma(src, length) dev = mult * stdev(src, length) upper = basis + dev lower = basis - dev plot(basis, color=red) p1 = plot(upper, color=blue) p2 = plot(lower, color=blue) fill(p1, p2)
study(title = "Arnaud Legoux Moving Average", shorttitle="ALMA", overlay=true) source = close windowsize = input(title="Window Size", type=integer, defval=9) offset = input(title="Offset", type=float, defval=0.85) sigma = input(title="Sigma", type=float, defval=6) plot(alma(source, windowsize, offset, sigma))
study(title="Volume", shorttitle="Vol", precision=0) showMA = input(true) plot(volume, color = open > close ? red : green, style=columns, title="Volume MA", transp=65) plot(showMA ? sma(volume,20) : na, style=area, color=blue, title="Volume", transp=65)
study(title="Volume", shorttitle="Vol", precision=0) showMA = input(true) plot(volume, color = open > close ? red : green, style=columns, title="Volume MA", transp=65) plot(showMA ? sma(volume,20) : na, style=area, color=blue, title="Volume", transp=65)
windowsize = input(title="Window Size", type=integer, defval=9) offset = input(title="Offset", type=float, defval=0.85) sigma = input(title="Sigma", type=float, defval=6) plot(alma(source, windowsize, offset, sigma))