100W sma/200W sma
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © aliaman351

//@version=4
study("100W sma/200W sma",overlay=false,resolution="W")
source = input(close,title="source")
sma1Len = 100
sma2Len = 200

sma1 = sma(source,input(int(sma1Len) , title="Moving average 1"))
sma2 = sma(source,input(int(sma2Len) , title="Moving average 2"))

outSma1 = security(syminfo.tickerid, "W", sma1)
outSma2 = security(syminfo.tickerid, "W", sma2)

reqdiv = outSma1/outSma2

reqPlot = plot(reqdiv, color=color.yellow, title="smadivision")