OPEN-SOURCE SCRIPT
Aggiornato CandleSensei – EMA200, Wick & Pattern Alerts)

CandleSensei is an advanced Pine Script designed for traders who need real-time alerts on key price action signals and candlestick patterns. It combines EMA200 analysis, volatility (ATR), wick/body detection, and classical candlestick pattern recognition (Engulfing, Pin Bar, Doji, Marubozu) – all in a single tool.
Key Features:
EMA200 HUD – Displays price deviation from EMA200 with directional arrows (▲ / ▼) and percentage values.
Wick Alerts – Alerts for significant wicks:
WICK ALERT: ↓🐂 3.5% (long lower wick – bullish signal).
WICK ALERT: ↑🐻 4.2% (long upper wick – bearish signal).
Big Body Alerts – Detects strong candle bodies exceeding a customizable threshold.
BIG BODY ALERT: ↑ 5.8%
BIG BODY ALERT: ↓ 4.7%
Candlestick Patterns – Automatic alerts for:
Engulfing (🟢🐂 or 🔴🐻).
Pin Bar (🟢🔨 Hammer, 🔴☄️ Shooting Star).
Doji (⚪ Doji 🟢↑ / 🔴↓).
Marubozu (📏 Marubozu 🟢↑ / 🔴↓).
On-Chart HUD – Shows ATR, price vs EMA200, wick size, and full body % in a compact table.
Why use CandleSensei?
Perfect for swing traders (Daily/Weekly analysis) and intraday traders (1H).
Combines trend direction, volatility, and price action patterns in a single dashboard.
Fully customizable thresholds for wick and body alerts.
Key Features:
EMA200 HUD – Displays price deviation from EMA200 with directional arrows (▲ / ▼) and percentage values.
Wick Alerts – Alerts for significant wicks:
WICK ALERT: ↓🐂 3.5% (long lower wick – bullish signal).
WICK ALERT: ↑🐻 4.2% (long upper wick – bearish signal).
Big Body Alerts – Detects strong candle bodies exceeding a customizable threshold.
BIG BODY ALERT: ↑ 5.8%
BIG BODY ALERT: ↓ 4.7%
Candlestick Patterns – Automatic alerts for:
Engulfing (🟢🐂 or 🔴🐻).
Pin Bar (🟢🔨 Hammer, 🔴☄️ Shooting Star).
Doji (⚪ Doji 🟢↑ / 🔴↓).
Marubozu (📏 Marubozu 🟢↑ / 🔴↓).
On-Chart HUD – Shows ATR, price vs EMA200, wick size, and full body % in a compact table.
Why use CandleSensei?
Perfect for swing traders (Daily/Weekly analysis) and intraday traders (1H).
Combines trend direction, volatility, and price action patterns in a single dashboard.
Fully customizable thresholds for wick and body alerts.
Note di rilascio
What does this script do?CandleSensei is a powerful indicator that combines trend analysis (EMA200), volatility (ATR), wick and body size measurement, and automatic detection of the most important price action patterns.
It is designed to provide real-time alerts and a clean HUD (dashboard) on your chart, making it useful both for 1H scalping and swing trading on Daily, Weekly, or Monthly timeframes.
What does it analyze?
EMA200 – Checks whether the price is above or below EMA200, showing the difference in USD and %.
ATR & Volatility – Displays the ATR value and its relative percentage to indicate market volatility.
Wicks – Measures the percentage of both upper and lower wicks.
Full Body Size – Calculates the % change between open and close.
Classic Candle Patterns – Automatically detects:
Engulfing (Bullish / Bearish).
Pin Bar (Hammer, Shooting Star).
Doji (including Dragonfly and Gravestone Doji).
Marubozu (strong candles with little or no wicks).
How does it look?
HUD in the bottom-right corner:
Δ vs EMA200 (USD and %).
ATR and ATR Multiple.
Full Body % and “Live Wick” signal with arrows and 🐂/🐻 emojis.
Clear and concise alerts:
WICK ALERT: ↓🐂 3.5% (large lower wick).
WICK ALERT: ↑🐻 4.2% (large upper wick).
BIG BODY ALERT: ↑ 5.8% (strong bullish candle).
BIG BODY ALERT: ↓ 4.7% (strong bearish candle).
🟢🐂 Engulfing (D)
🔴☄️ Shooting Star (W)
⚪ Doji 🟢↑ (M)
📏 Marubozu 🔴↓ (D)
Why CandleSensei?
CandleSensei is built to simplify price action analysis and help traders quickly spot high-probability setups.
Whether you are a beginner or an experienced trader, this script delivers visual clarity, customizable alerts, and reliable signals to keep you ahead of the market moves.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.