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
+1 Reply
ChartArt RicardoSantos
Thank you!
+1 Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out