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
85 lines of Pine Script v6 from three_bar_reversal_pattern.pinescript, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
A bullish pattern is two down candles followed by an up candle closing above the first candle's open; the bearish pattern is the mirror image. Optional filters require volume above its moving average, reject shooting star or hammer final candles, check the middle candle's extreme and require an RSI condition. Separate bullish and bearish alerts are included. Labels draw on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Bullish Pattern
bool
true
plotBullishPattern
Bearish Pattern
bool
true
plotBearishPattern
bullishPatternColor
color
#089981
bullishPatternColor
bearishPatternColor
color
#ff5252
bearishPatternColor
bullishPatternSize
string
size.normal
bullishPatternSize
bearishPatternSize
string
size.normal
bearishPatternSize
Show Last
int
500
showLast
Volume SMA Filter
bool
true
enableVolumeSmaFilter
Volume SMA Length
int
20
volSmaLength
Shooting Star Body Limit
float
0.5
shootingStarBodyLimit
Hammer Body Limit
float
0.5
hammerBodyLimit
Middle Candle Filter
bool
false
enableMidCandleFilter
Show all 16 settings
Setting
Type
Default
Variable
RSI Filter
bool
false
enableRsiFilter
RSI Length
int
14
rsiLength
Overbought Threshold
int
60
rsiOverboughtThreshold
Oversold Threshold
int
40
rsiOversoldThreshold
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.
Vector Candles is an overlay indicator that recolors price candles using PVSRA volume rules taken from the Traders Reality concept. It compares each bar's volume with the average of the previous ten bars and also checks the product of spread and volume against
Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA
This indicator identifies unusually large candles and high trading volume directly on the price chart. It checks whether the current bar range exceeds the maximum high-low range over a specified lookback period. If the range breaks the record with volume below
This indicator recolors price candles from recent volume and range. It marks climax bars when current volume times range exceeds the prior ten-bar peak or volume is at least twice a ten-bar average, and rising bars at one and a half times that average. Bullish
This overlay indicator draws rounded psychological price levels and optional PVSRA vector candle colors on the price chart. It plots quarter, half, and whole levels from a user-set rounding value, with separate color, line style, and width for each. Vector col
This indicator detects institutional or large-scale market activity using candle body size and trading volume. It compares current candle bodies against a 20-period simple moving average and checks for volume spikes above an adjustable moving average filter. I