1Copy the scriptPress Copy script above, or the copy button on the code below.
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
351 lines of Pine Script v5 from Tradingview/mtf-charting.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MTF Charting projects historical candlesticks from up to five customizable higher timeframes alongside the current price action. Users can configure the timeframe resolutions, how many bars to display for each period, spacing between candles, and color schemes for bullish and bearish bodies, borders, and wicks. It draws on the main chart area, offsetting candles past the latest bar.
Multi-timeframe candlestick projection on main chart
Support for up to five concurrent higher timeframes
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Body
color
color.green
css_bull_body
css_bear_body
color
color.rgb(234, 21, 21)
css_bear_body
Border
color
color.lime
css_bull_border
css_bear_border
color
color.red
css_bear_border
Wick
color
color.lime
css_bull_wick
css_bear_wick
color
color.red
css_bear_wick
MTF Label
bool
true
use_label
css_label
color
color.new(#434651,0)
css_label
label_size
string
Medium
label_size
Padding From Last Candle
int
10
padding
Padding Between MTF Candles
int
3
padding_b
HTF 1
bool
true
use_tf1
Show all 26 settings
Setting
Type
Default
Variable
HTF 2
bool
true
use_tf2
HTF 3
bool
true
use_tf3
HTF 4
bool
true
use_tf4
HTF 5
bool
true
use_tf5
tf1
timeframe
5
tf1
tf2
timeframe
15
tf2
tf3
timeframe
30
tf3
tf4
timeframe
60
tf4
tf5
timeframe
D
tf5
tf1_bars
int
8
tf1_bars
tf2_bars
int
8
tf2_bars
tf3_bars
int
8
tf3_bars
tf4_bars
int
8
tf4_bars
tf5_bars
int
8
tf5_bars
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.
The Heikin-Ashi Chart Identifier is an indicator that checks if the current chart uses Heikin-Ashi candles. It tracks matched candles where open equals the average of previous open and close, and verifies no gaps between bars. When conditions match, it display
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the
This indicator detects a large set of classic candlestick patterns and plots colored labels on the price chart. Trend context uses a 50-period simple moving average, or the 50 and 200 averages stacked together, and can be switched off. Users filter bullish, be