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
194 lines of Pine Script v5 from Tradingview/price-action-candles-lower.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Price-Action Candles (Lower) marks higher highs, lower highs, higher lows, and lower lows, then assigns a bullish, bearish, or neutral trend from those swings and the close relative to the latest swing values. A price-action length sets the pivot window. Five optional multi-timeframe inputs request the same trend on other timeframes, using lower-timeframe requests or higher-timeframe security calls. Higher-timeframe values use lookahead, so they can read unfinished higher-timeframe data. It does not place trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price-Action Length
int
10
sdLength
Bull
color
color.lime
bullCSS
Bear
color
color.rgb(255, 0, 0)
bearCSS
Neutral
color
color.yellow
neutCSS
MTF 1
bool
true
use_mtf1
mtf_1
timeframe
1
mtf_1
MTF 2
bool
true
use_mtf2
mtf_2
timeframe
5
mtf_2
MTF 3
bool
true
use_mtf3
mtf_3
timeframe
15
mtf_3
MTF 4
bool
true
use_mtf4
mtf_4
timeframe
60
mtf_4
Show all 14 settings
Setting
Type
Default
Variable
MTF 5
bool
true
use_mtf5
mtf_5
timeframe
D
mtf_5
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.
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin
This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte
This indicator plots Smart Money Concepts and price action components directly on the price chart. It highlights bullish and bearish order blocks, multi-timeframe pivot points, market structure swings with key Fibonacci retracement levels (0.618 and 0.786), zo
This indicator implements Rob Smith's TheStrat price action methodology across up to six configurable timeframes. It classifies candles into inside, directional, and outside bars, identifies patterns like hammers, shooters, and failed 2s, and calculates magnit
JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback