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
426 lines of Pine Script v5 from Tradingview/mtf-candles-mas-v2.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MTF Candles + MAs pulls data from up to five selected higher timeframes and renders them as boxes with customizable body, border, and wick colors. Candles can be styled as regular or Heikin-Ashi. Users control padding between candles and from the last one, enable/disable each timeframe, and choose to display an MTF label. The script draws directly on the price chart, providing a visual MTF view of price action.
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 40 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
tf1_type
string
Regular
tf1_type
tf2_type
string
Regular
tf2_type
tf3_type
string
Regular
tf3_type
tf4_type
string
Regular
tf4_type
tf5_type
string
Regular
tf5_type
HTF 1 MA
bool
false
use_tf1_ma
HTF 2 MA
bool
false
use_tf2_ma
HTF 3 MA
bool
false
use_tf3_ma
HTF 4 MA
bool
false
use_tf4_ma
HTF 5 MA
bool
false
use_tf5_ma
tf1_ma_type
string
SMA
tf1_ma_type
tf2_ma_type
string
SMA
tf2_ma_type
tf3_ma_type
string
SMA
tf3_ma_type
tf4_ma_type
string
SMA
tf4_ma_type
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.
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
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
Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us
This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al
This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th
The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar