RicardoSantos

[RS]Triangular Moving Average Slope Indicator V1

request for ChartArt: using swma() builtin function, for the function unsmoothed output just set length to 1.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]Triangular Moving Average Slope Indicator V1", shorttitle="[RS]TMASI.V1", overlay=false)
length = input(8)
source = swma(close)
tma = sma(sma(source, length), length)
tmaslope = change(tma, 1)
signalcolor = tmaslope > tmaslope[1] ? green : maroon
plot(tmaslope, style=columns, color=signalcolor)
ChartArt
2 years ago
So this is now a Triangular Moving Average (source) which is smoothed by a Triangular Moving Average (tma) ?
Reply
RicardoSantos PRO ChartArt
2 years ago
yes, cant smooth the source directly as it doesnt have a length setting
Reply
ChartArt RicardoSantos
2 years ago
ok, the result of this double smoothing is interesting
Reply
IvanLabrie PRO ChartArt
2 years ago
Try 5 and 10 periods, and see if they agree.
Go one to the daily for 4h trading, to filter if long or short.
Small slope is ranging.
Reply