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
107 lines of Pine Script v5 from Tradingview/candle-body-wick-alerts.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Candle Body Wick Alerts checks if the price distance between key levels (such as open and low or high and close) falls within a set tolerance threshold. Matching bullish or bearish candles are highlighted directly on the main price chart with custom bar colors. The indicator can also plot horizontal lines from these key levels. Settings allow traders to adjust the tolerance distance, toggle specific candle patterns, and customize display colors and line styles.
Minimal wick candle detection
Configurable price tolerance threshold
Custom bar coloring for bullish and bearish candles
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Alert Bullish Low/Open Same
bool
true
alert_bull_low_open
Alert Bullish High/Close Same
bool
true
alert_bull_high_close
Alert Bearish Low/Open Same
bool
true
alert_bear_low_open
Alert Bearish High/Close Same
bool
true
alert_bear_high_close
Allowed Difference
float
0.02
allowed_difference
Color Candles
string
Both
color_candles
Show Lines
bool
true
show_lines
| Number of Lines
int
10
number_of_lines
Bull Candle Color
color
color.new(#00ff0b,0)
bull_alert_color
Bear Candle Color
color
color.new(#ff00e8,0)
bear_alert_color
Bull Line Color
color
color.new(#00ff0b,0)
bull_line_color
Bear Line Color
color
color.new(#ff00e8,0)
bear_line_color
Show all 14 settings
Setting
Type
Default
Variable
Line Width
int
1
line_width_input
Line Style
string
Solid
line_style_input
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 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 plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use
The Strat Assistant indicator identifies candlestick patterns from the STRAT methodology on the price chart. It detects inside bars, 2-candle directional bars, 3-candle outside bars, and sequences like 212 and 222 for continuations and reversals. Shapes such a
This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we
This Pine Script indicator identifies liquidity sweeps and confirms signals using a close-back candle pattern directly on the price chart. It tracks recent swing highs and lows over a customizable lookback period. A bullish signal forms when a prior bar sweeps
This overlay indicator draws 80/20 price levels and optional 40-point zone bands on the price chart. It marks repairs, cross sections, and forks with optional letter labels, and can highlight confluence when those marks sit near a level. Separate options shade