Multi-Timeframe Moving Averages is an overlay indicator that calculates and plots moving averages across multiple timeframes directly on the main price chart.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Multi-Timeframe Moving Averages supports various moving average types including SMA, EMA, WMA, HMA, RMA, and VWMA, with customizable period lengths and source prices. Users can toggle preset timeframes ranging from one minute to one hour or specify custom timeframes. The indicator includes customizable line styling alongside an optional legend table and information label for easy multi-timeframe tracking.
Multiple MA types including SMA, EMA, WMA, HMA, RMA, and VWMA
Support for preset and custom timeframes
Customizable line colors and line width
Optional legend table and on-chart information label
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Moving Average Type
string
EMA
maType
MA Length
int
20
maLength
MA Source
source
close
maSource
1 Minute
bool
true
enable_1m
5 Minutes
bool
true
enable_5m
10 Minutes
bool
false
enable_10m
15 Minutes
bool
false
enable_15m
30 Minutes
bool
false
enable_30m
1 Hour
bool
false
enable_1h
Custom TF 1
timeframe
custom_tf1
Enable Custom 1
bool
false
enable_custom1
Custom TF 2
timeframe
custom_tf2
Show all 25 settings
Setting
Type
Default
Variable
Enable Custom 2
bool
false
enable_custom2
1M Color
color
color.new(color.blue, 0)
color_1m
5M Color
color
color.new(color.purple, 0)
color_5m
10M Color
color
color.new(color.green, 0)
color_10m
15M Color
color
color.new(color.orange, 0)
color_15m
30M Color
color
color.new(color.red, 0)
color_30m
1H Color
color
color.new(color.yellow, 0)
color_1h
Custom 1 Color
color
color.new(color.gray, 0)
color_custom1
Custom 2 Color
color
color.new(color.silver, 0)
color_custom2
Line Width
int
2
lineWidth
Show Legend Table
bool
true
showLegend
Legend Position
string
top_right
legendPosition
Show MA Info Label
bool
true
showMAInfo
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi
This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof
Calculates exponential moving averages for fast, pivot, and slow lengths along with optional 50, 100, and 200 simple moving average context lines. It visualizes bullish and bearish ribbon fills on the main price chart alongside MACD calculations to generate ea
This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en
This indicator evaluates market momentum and risk by calculating trend metrics and volatility stats, displaying them in an on-chart table pane. It measures short-term and long-term trend strength via two MACD configurations built on three customizable EMA leng
Market Monitor - 15m is a directional bias chart overlay designed for 15-minute intraday chart analysis. It calculates a triple exponential moving average ribbon with EMA cloud shading, session VWAP with multiplier bands, prior day levels, a 30-minute opening