RicardoSantos

[RS]Triangular Moving Average Slope Indicator V0

request for IvanLabrie, MichaelMccallum
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]Triangular Moving Average Slope Indicator V0", shorttitle="[RS]TMASI.V0", overlay=false)
length = input(8)
source = 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
Thank you very much. Now that you coded it yourself and have a better understanding; I would be interested in seeing it also working with the Tradingview code:

"swma (Built-in function)"

"Symmetrically weighted (triangular) moving average."

https://www.tradingview.com/study-script-reference/#fun_swma
+1 Reply
RicardoSantos PRO ChartArt
2 years ago
[RS]Triangular Moving Average Slope Indicator V1
+1 Reply
ChartArt RicardoSantos
2 years ago
Thank you!
+1 Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out