OPEN-SOURCE SCRIPT

Multi Timeframe Moving Averages

Updated
This indicator allows you to view a moving average (EMA or SMA) of your choosing on other time frames than what you are currently on.

The reason I wanted to develop this was for use as a filter. Let's say you wanted to make sure the daily time frame was trading above a certain moving average so you could be sure you were playing with the trend. But you wanted to make your entries and exits on a smaller time frame. This Multi-Timeframe Moving Average indicator can then be used to keep an eye on that daily moving average while looking at the shorter term time frames on the same chart.
Release Notes
Simplified the code a bit and made it so that you can pick any time frame now instead of the few I had originally pre-selected as options.
Release Notes
I accidentally left a non-related indicator in the last update, this removes it.
Exponential Moving Average (EMA)multi-timeframeSimple Moving Average (SMA)sma

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?


Also on:

Disclaimer