A simple MA strategy.
study(title="Moving Average on Moving Average", shorttitle="MAonMA", overlay=true) length = input(13, minval= 13, title="Don't change the values for this strategy.") lenght1 = input (34, minval = 34, title="Don't change the values for this strategy.") lenght2 = input (89, minval = 89, title="Don't change the values for this strategy.") src = input(close, title="Source") ema1 = ema(close, length) ema2 = ema(close, lenght1) ema3 = ema(close, lenght2) e1 = plot(ema1, color=gray, linewidth=2) e2 = plot(ema2, color=teal, linewidth=3) e3 = plot(ema3, color=aqua, linewidth=4)