My 1st indicator- Log(price/20w 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("My 1st indicator- Log(price/20w sma)",shorttitle=" log(p/20w)")
price = input(close, title = "source")//price action
s = sma(price,20)

outputs = security(syminfo.tickerid, "W", s)

// main work
req = log (price/outputs)
plot(req,title="log(price/20sma")
bandh = hline(0.8, "upper Band", color=color.new(#787B86,0))
bandm = hline(0, "Middle Band", color=color.new(#787B86, 50))
bandl = hline(-0.4, "lower Band", color=color.new(#787B86,0))