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)
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
[RS]Triangular Moving Average Slope Indicator V1
+1 Reply
ChartArt RicardoSantos
Thank you!
+1 Reply
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
Home Stock Screener Forex Signal Finder 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
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out