// ----------------------------------------- // study(title = "Elliot Wave Oscillator ", shorttitle="EWO_LN") s2=sma(close, 5) - sma(close, 34) // 5/34 and not 5/35 as published above. c_color=s2 <= 0 ? red : lime plot(s2, color=c_color, style=histogram, linewidth=2)