OPEN-SOURCE SCRIPT
Candlestick toolkit (Candle Over Candle)

Candlestick pattern toolkit focused on reading price action via candle anatomy, body dynamics, and a specific 2-bar continuation/reversal pattern.
This indicator highlights:
Long upper and lower wicks (“topping” and “bottoming” tails) that can signal exhaustion or potential reversal.
Large bullish bodies relative to Average True Range (ATR), showing strong momentum.
Sequences of large green candles.
Runs of green candles with strictly increasing or strictly decreasing body size, to visualize acceleration vs. momentum fade.
A two-candle pattern:
“Candle over Candle” (CoC) for long bias: two bullish bars where the first has a small upper wick and the second has a modest lower wick (a brief dip then push higher).
Optional mirrored “Candle under Candle” (CuC) for short bias.
The script labels:
Topping/Bottoming tails (TT/BT).
Large-green sequences and increasing/decreasing bodies (N×LG, ↑B, ↓B).
CoC/CuC pattern bars as “PRE” and the actual breakout bars as “GO”.
While a pattern is “live,” a reference line marks the trigger level (pattern high for longs, pattern low for shorts).
Inputs let you:
Tune wick and body percentage thresholds for tail detection.
Adjust ATR length and the multiplier that defines a “large” body.
Change how many candles are required for large-green sequences and body size trends.
Configure the two-candle pattern (maximum wick sizes, whether a small dip is required, confirmation within N bars).
Choose confirmation mode: close-through the trigger or intrabar wick break.
Enable or disable the short (CuC) side.
Control visual features (tail markers, sequence markers, pattern labels, and background shading on pattern bars).
Typical use:
Apply on intraday or swing timeframes.
Use tails and body behavior to read strength/weakness and potential exhaustion.
Treat CoC/CuC PRE labels as pattern formation, and GO labels as potential trade triggers above/below the pattern.
Combine with your own filters (trend, volume, higher-timeframe levels) rather than using it as a standalone signal generator.
This indicator highlights:
Long upper and lower wicks (“topping” and “bottoming” tails) that can signal exhaustion or potential reversal.
Large bullish bodies relative to Average True Range (ATR), showing strong momentum.
Sequences of large green candles.
Runs of green candles with strictly increasing or strictly decreasing body size, to visualize acceleration vs. momentum fade.
A two-candle pattern:
“Candle over Candle” (CoC) for long bias: two bullish bars where the first has a small upper wick and the second has a modest lower wick (a brief dip then push higher).
Optional mirrored “Candle under Candle” (CuC) for short bias.
The script labels:
Topping/Bottoming tails (TT/BT).
Large-green sequences and increasing/decreasing bodies (N×LG, ↑B, ↓B).
CoC/CuC pattern bars as “PRE” and the actual breakout bars as “GO”.
While a pattern is “live,” a reference line marks the trigger level (pattern high for longs, pattern low for shorts).
Inputs let you:
Tune wick and body percentage thresholds for tail detection.
Adjust ATR length and the multiplier that defines a “large” body.
Change how many candles are required for large-green sequences and body size trends.
Configure the two-candle pattern (maximum wick sizes, whether a small dip is required, confirmation within N bars).
Choose confirmation mode: close-through the trigger or intrabar wick break.
Enable or disable the short (CuC) side.
Control visual features (tail markers, sequence markers, pattern labels, and background shading on pattern bars).
Typical use:
Apply on intraday or swing timeframes.
Use tails and body behavior to read strength/weakness and potential exhaustion.
Treat CoC/CuC PRE labels as pattern formation, and GO labels as potential trade triggers above/below the pattern.
Combine with your own filters (trend, volume, higher-timeframe levels) rather than using it as a standalone signal generator.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Dr. Trader MD PhD
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Dr. Trader MD PhD
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.