#### BenTen

##### Administrative

**Staff**

**VIP**

If you want to display moving averages from higher timeframe such as the hourly or daily on your lower timeframe chart, this indicator will help you do that. It basically displays higher timeframe moving averages on your 5m, 15m, or 30m chart. Anything with a higher timeframe moving average will work.

Here I have the 20 Daily Exponential Moving Average on my 15 minute chart.

You have the option between EMA, SMA (simple moving average), Hull, Weighted, and Wilders.

Here I have the 20 Daily Exponential Moving Average on my 15 minute chart.

You have the option between EMA, SMA (simple moving average), Hull, Weighted, and Wilders.

### thinkScript Code

Rich (BB code):

```
# MTF Moving Average
input Period = aggregationPeriod.HOUR;
input AvgType = averageType.EXPONENTIAL;
input Length = 50;
input priceclose = close;
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);
```

### Shareable Link

http://tos.mx/5BpIqL
Last edited: