Login Page - Create Account

Support Board


Date/Time: Tue, 18 Mar 2025 16:50:49 +0000



Post From: Sierrachart add moving average and supertrend studies

[2022-03-16 06:35:59]
Acro - Posts: 442
John,

I am a fan of the supertrend and have looked extensively at how this is implemented in tradingview as I have a few charts there that I can use for a myriad of global symbols.

TV uses the last bar's median (hl2 in their speak) + a multiple of the "running moving average" over the chosen lookback period.

They define this running moving average as the exponentially weighted moving average with alpha = 1 / length.

Regardless of whether this is "correct" or not, it does produce a very good result

I am happy to pop this in a spreadsheet formula study if tomglib or anyone else can explain how I phrase the RMA in that formula

Thanks in advance