Can someone transfer script from trading view below to TOS. Would like to be able to change this from 15 day moving pivot average to 30 day etc. than ks.
Code:
study(title="Pivot Point Moving Averages", shorttitle="PPMAs", overlay=true)
period1 = input(1, minval=1, title="Period 1")
period2 = input(3, minval=1, title="Period 2")
pivot = ((high + low + close) / 3)
out1 = sma(pivot, period1)
out2 = sma(pivot, period2)
plot(out1, color=#990000, linewidth=2, title="PPMA1")
plot(out2, color=#000099, linewidth=2, title="PPMA2")