OPEN-SOURCE SCRIPT

Higher TF Moving Averages

Updated
Script showing up to 5 different Moving Averages of a Higher Timeframe.
User can select the MA type (EMA or SMA) and its length.
Default are 10, 20, 50, 100 and 200 period SMAs.
The script will also plot optional labels with price display.
All plots and color are configurable.
Release Notes
Added option to use the continuous contract MA values for futures.
Release Notes
Corrected bug that prevented plotting in real time in most of the bars.
Release Notes
Added parameter for historical bars to choose to use the averages' value at the end of the corresponding HTF (not known in real time) or to use the previous completed HTF averages' value.
Exponential Moving Average (EMA)Moving AveragessmaTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


PolloLoco Trader
Follow me on YouTube: youtube.com/channel/UCOyirS9cpfhDoh4ktRBJH8g
Also on:

Disclaimer