OPEN-SOURCE SCRIPT
Updated

Higher TF Moving Averages

2 700
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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.