Simple moving average with a scaling factor.
study(title="Scaled Moving Average", shorttitle="Scaled MA", overlay=true) len = input(20, minval=1, title="Length") src = input(close, title="Source") scale = input(1.0, title="Scale", type=float, minval=0, maxval=2, step=0.1) out = sma(src, len) * scale plot(out, color=blue, title="MA")