Indicador Pine Script®
Candle de Engolfo
AB Lydian Pulse⚡ AB·LYDIAN PULSE — Professional Candlestick Pattern Analysis System
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
AB·LYDIAN PULSE is a professional analysis system that detects candlestick patterns on your chart, scores the quality of each formation, and displays only meaningful signals.
This is NOT a trend or momentum indicator.
It focuses solely on candlestick formations.
━━━━━━━━━━━━━━━━━━━━━━━━
▲ BULLISH PATTERNS
━━━━━━━━━━━━━━━━━━━━━━━━
🔨 Hammer
Small body with a long lower wick. Lower wick must be at least 60% of total range. Strong reversal signal when formed after a downtrend.
🟢 Bullish Engulfing
A large green candle that completely engulfs the previous small red candle. Valid when the green body fully covers the red body.
⭐ Morning Star
Three-candle pattern: large red → small body → large green. The final candle must close above the midpoint of the first candle.
📌 Piercing Line
Green candle after a red candle. Green opens below the previous low and closes above the midpoint of the red body.
🏛️ Three White Soldiers
Three consecutive bullish candles. Each closes higher than the previous. Upper wicks must be short.
━━━━━━━━━━━━━━━━━━━━━━━━
▼ BEARISH PATTERNS
━━━━━━━━━━━━━━━━━━━━━━━━
💫 Shooting Star
Small body with a long upper wick. Upper wick must be at least 60% of total range. Strong reversal signal when formed after an uptrend.
🔴 Bearish Engulfing
A large red candle that completely engulfs the previous small green candle. Valid when the red body fully covers the green body.
🌙 Evening Star
Three-candle pattern: large green → small body → large red. Mirror image of Morning Star. Final candle must close below the midpoint of the first.
☁️ Dark Cloud Cover
Red candle after a green candle. Red opens above the previous high and closes below the midpoint of the green body.
🏴 Three Black Crows
Three consecutive bearish candles. Each closes lower than the previous. Lower wicks must be short.
━━━━━━━━━━━━━━━━━━━━━━━━
◆ NEUTRAL PATTERNS
━━━━━━━━━━━━━━━━━━━━━━━━
✦ Doji
Open and close at nearly the same level. Signals market indecision. Upper and lower wicks should be balanced.
◧ Harami
Second candle's body is completely contained within the first candle's body. Divided into Bullish Harami (after downtrend) and Bearish Harami (after uptrend).
━━━━━━━━━━━━━━━━━━━━━━━━
🏆 QUALITY GRADING SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━
Each detected pattern receives a quality score from 0-100:
🟢 Grade A (75-100): Perfect formation. All criteria fully met. Large label on chart.
🟡 Grade B (50-74): Good formation. Most criteria met. Normal label.
🟠 Grade C (30-49): Acceptable. Minimum criteria satisfied. Small label.
Score is calculated based on:
— Wick / body ratio accuracy
— Body size (ATR-based dynamic threshold)
— Volume strength
— Previous candle alignment
— Pattern-specific bonus criteria
━━━━━━━━━━━━━━━━━━━━━━━━
🔍 SMART FILTERS
━━━━━━━━━━━━━━━━━━━━━━━━
📏 ATR Dynamic Threshold: Candle size evaluated against ATR. Auto-adjusts across all timeframes.
📊 Volume Confirmation: Signal strengthens when volume exceeds average. Can be toggled on/off.
🏆 Quality Filter: Only selected grade level and above are displayed (A / B / C).
⏱️ Spam Filter: Consecutive same-direction signals are blocked. Minimum 5-bar cooldown.
🔬 Textbook Validation: Each pattern is verified against its own specific rules.
━━━━━━━━━━━━━━━━━━━━━━━━
📋 PREMIUM PANEL
━━━━━━━━━━━━━━━━━━━━━━━━
🕯️ Last signal name and emoji
📐 Direction (Bullish / Bearish / Neutral)
⏱️ How many bars ago it occurred
🏷️ Pattern type (Reversal / Neutral)
🏆 Quality grade and numeric score (/100)
🎯 Win rate (last 200 bars)
📊 Market bias (based on signal balance)
📈 Last 50 bars statistics
📜 Last 3 signals history
Panel can be moved to 6 different positions and displayed in 3 sizes.
━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Language: Turkish / English (all labels and panel text adapt)
📏 ATR Period (default: 14)
📐 Min Body / ATR Ratio (default: 0.4)
⏱️ Signal Cooldown (default: 5 bars)
📊 Volume SMA Period (default: 20)
🎨 Customizable Bullish / Bearish / Neutral colors
🕯️ Each of the 12 patterns can be individually toggled on/off
📋 Panel position and size adjustable
🔔 Separate alert condition for each pattern
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is NOT INVESTMENT ADVICE. It provides technical analysis information only. Base your investment decisions on your own research. Past performance is not a guarantee of future results. The developer cannot be held responsible for any financial losses that may occur from using this indicator.
Indicador Pine Script®
Candlestick Patterns HighlighterMost candlestick indicators are either too noisy or too dumb.
This one is neither.
Candlestick Patterns Highlighter v5 is a precision-focused tool that identifies high-probability candlestick structures using strict, adjustable logic — not vague textbook definitions.
⚡ What This Indicator Does
This script automatically detects and highlights:
Bullish Engulfing (BE)
Bearish Engulfing (SE)
Doji (D)
Hammer (H)
Inverse Hammer (IH)
Each pattern is:
Highlighted directly on the candle (barcolor)
Marked with minimal, clean labels (no chart clutter)
🎯 Why This Is Different
Most pattern indicators:
Trigger too frequently
Use loose definitions
Are useless in real trading
This one is built with strict mathematical filters, so you get:
Fewer signals
Better quality signals
Full control over pattern sensitivity
⚙️ Customization (Where the Edge Is)
You can fine-tune every pattern:
Doji Control
Define max body size as % of candle range
Hammer Logic
Control body size relative to range
Define minimum lower wick strength
Limit upper wick size
Inverse Hammer Logic
Mirror control of hammer structure
Adjust upper wick dominance
👉 This means you are not locked into textbook definitions — you can adapt it to:
Nifty scalping
Intraday trading
Swing setups
📊 Visual Design
Color-coded candles
Green → Bullish Engulfing
Red → Bearish Engulfing
Yellow → Doji
Aqua → Hammer
Orange → Inverse Hammer
Minimal labels
BE / SE / D / H / IH
No unnecessary clutter
🧠 How to Use (Blunt Truth)
Don’t be stupid and trade patterns blindly.
Use this as:
Confirmation, not entry
Combine with:
Structure (support/resistance)
Trend
Liquidity zones
Best use cases:
Reversal zones
Pullbacks
Breakout retests
Indicador Pine Script®
Sovereign Meridian [JOAT]Sovereign Meridian
Introduction
The Sovereign Meridian is a proprietary, closed-source charting suite designed to give traders a unified view of market structure, regime context, reaction zones, liquidity mapping, order flow dynamics, and institutional signal detection — all within a single overlay indicator. Rather than requiring traders to load multiple separate tools and mentally piece together their outputs, this indicator runs every analytical dimension through a shared engine so that each module informs the others. The result is a cohesive, context-aware charting environment where structure, volume, momentum, and volatility work together to produce a clear, actionable picture of what the market is doing right now and where it is likely to go next.
This indicator is built in Pine Script v6 and is published as invite-only because the proprietary scoring algorithms, signal prioritization logic, and the way each analytical module feeds into the others represent original work that goes significantly beyond standard implementations of these concepts. The source is protected to preserve the integrity of the detection logic and the specific calibration of thresholds, weights, and interaction rules that make this tool unique.
What Makes This Indicator Worth Protecting
The Sovereign Meridian is not simply a collection of standard concepts placed on the same chart. While the individual analytical principles it draws from — swing-based structure, fair value gaps, order blocks, VWAP analysis, volume delta, Wyckoff theory — are well-established in institutional trading education, the value of this indicator lies in how these concepts are unified, scored, and prioritized through a proprietary engine:
Unified Structure Engine: Every module — from regime detection to FVG creation to signal generation — operates through a single shared structure engine. This means that a Break of Structure event does not exist in isolation; it is immediately contextualized by the current regime state, the active reaction zones, the volume delta direction, and the volatility environment. This cross-module awareness produces more meaningful signals than running separate tools independently.
Proprietary Structure Score: A composite scoring algorithm evaluates the current market state across eight weighted dimensions — structural trend direction, swing pattern quality, active imbalance zone count, order block density, volume conviction, moving average alignment, regime classification, and delta flow direction. The specific weights, thresholds, and interaction rules that produce this score are original and calibrated through extensive testing.
Adaptive Sensitivity System: A single sensitivity control adjusts detection thresholds across every module simultaneously, ensuring that the entire indicator tightens or loosens its criteria in a coordinated way. This is not a simple multiplier — the sensitivity adjustment is calibrated differently for each module based on how that module's detection logic responds to threshold changes.
Priority-Based Signal Architecture: The institutional signal system uses a six-tier priority hierarchy with cooldown management to ensure that only the most significant event is displayed at any given time. Higher-priority signals (such as liquidity grabs and Wyckoff events) suppress lower-priority ones (such as delta surges and engulfing patterns) within a configurable cooldown window. The specific priority ordering, cooldown interaction rules, and signal qualification criteria are proprietary.
Multi-Factor Candle Coloring: Candles are colored through a cascading priority system that evaluates displacement status, VWAP band position, and structural trend direction in a specific order. This produces candle colors that immediately communicate the most important context about each bar without requiring the trader to check multiple indicators.
The Regime Engine
At the foundation of the Sovereign Meridian is a regime classification system that determines the current market state. The regime engine evaluates three independent analytical dimensions:
Trend Alignment: The indicator monitors the relationship between short-term, medium-term, and long-term moving averages to determine whether the market is in a directionally aligned state. Full alignment in one direction indicates a strong trending environment. Mixed alignment indicates transitional or range-bound conditions.
Institutional Flow Direction: VWAP (Volume Weighted Average Price) slope analysis measures the direction and intensity of institutional order flow over a lookback period. The slope is normalized to make it comparable across instruments with different price scales and volatility levels. A positive normalized slope indicates net institutional buying pressure; negative indicates selling pressure; flat indicates balanced flow.
Volatility State: Bollinger Band width percentile ranking classifies the current volatility environment. When volatility compresses into the lowest percentile, a Squeeze state is detected — often a precursor to an explosive directional move. When volatility expands into the highest percentile, an Expansion state is detected — indicating that a significant move is already underway.
These three dimensions combine to classify the market into one of five regimes: Trend Up, Trend Down, Range, Squeeze, or Expansion. The regime state directly influences how every other module behaves — from how reaction zones are colored to which signals are generated to how candles are tinted.
The Structure Engine
The structure engine tracks the market's swing-based directional bias using pivot-based swing high and swing low detection. It maintains a history of the last two swings on each side, enabling pattern recognition:
Swing Pattern Recognition: The engine identifies higher highs with higher lows (bullish structure), lower highs with lower lows (bearish structure), and transitional patterns where the swing sequence is mixed.
Break of Structure (BOS): When price closes beyond a previous swing level in the direction of the existing structural trend, a BOS is recorded. This confirms that the current trend is continuing and that the market is making new structural progress.
Change of Character (CHoCH): When price closes beyond a previous swing level against the existing structural trend, a CHoCH is recorded. This is a potential reversal signal — the market's character is shifting from one directional bias to the other. CHoCH events are labeled on the chart with reference lines extending forward from the break level.
Displacement Detection: The engine identifies displacement candles — bars with exceptionally large bodies relative to their range and to the recent average body size. These candles indicate aggressive institutional order flow and often coincide with the creation of new reaction zones. The sensitivity control adjusts the detection thresholds for displacement candles in coordination with all other modules.
Reaction Zones: Fair Value Gaps and Order Blocks
The Sovereign Meridian identifies and tracks two types of institutional reaction zones:
Fair Value Gaps (FVG) are three-candle price imbalances where the market moved so aggressively that a gap was left in the price ladder. These gaps represent areas where one side of the market was overwhelmed, and price often returns to fill them. The indicator:
Detects bullish and bearish FVGs using the classic three-candle pattern
Filters out insignificant micro-gaps using an ATR-based minimum size threshold (adjusted by the sensitivity control)
Draws each FVG as a dotted-border box with directional coloring — teal for bullish, coral for bearish
Tracks fill status in real-time: when price returns to close the gap, the box fades to grey, indicating the imbalance has been resolved
Automatically manages zone count, removing the oldest zones when the configurable maximum is exceeded
Order Blocks (OB) are the last opposing candle before a strong directional move, confirmed by above-average volume. They represent price levels where institutional orders were placed and where resting orders may still exist. The indicator:
Detects bullish and bearish OBs using engulfing-style pattern recognition with a configurable strength multiplier
Requires volume confirmation — the signal candle must have volume exceeding the 20-bar average
Draws each OB as a solid-border box with directional coloring — azure/cobalt for bullish, coral/rose for bearish
Tracks mitigation: when price returns to the OB zone after sufficient bars have passed, the box fades and its border becomes dashed, indicating the zone has been tested
Manages zone count with automatic cleanup of the oldest zones
Liquidity Mapping
The indicator maps key liquidity features that institutional traders use to plan entries, exits, and targets:
Equal Highs (EQH) and Equal Lows (EQL): When two consecutive swing highs or swing lows form at nearly the same price level (within an ATR-based tolerance), the indicator identifies them as Equal Highs or Equal Lows. These levels are significant because they represent areas where stop orders tend to cluster — above equal highs (buy stops) and below equal lows (sell stops). Institutional traders often engineer price moves toward these levels to fill large orders. EQH/EQL levels are drawn as dashed lines that extend forward and are automatically removed when price sweeps through them.
Premium and Discount Zones: The range between the last swing high and swing low is divided at the equilibrium (50%) level. The upper half is labeled Premium — where sellers have a statistical edge. The lower half is labeled Discount — where buyers have a statistical edge. A dotted equilibrium line marks the midpoint. These zones help traders understand whether they are buying at a discount or selling at a premium relative to the current structural range.
Key Institutional Levels: Prior Day High, Prior Day Low, Prior Week High, and Prior Week Low are drawn as dashed reference lines with labels. These levels are fetched using anti-repaint methodology (no future data references) and represent the most-watched institutional reference points on any chart.
VWAP Deviation Bands
The indicator plots VWAP with two standard deviation bands above and below, creating a statistical framework for price position:
Inner Band (+/- 1 standard deviation): Price within this band is in the "normal" range relative to the volume-weighted average. This is the fair value zone where most trading activity occurs.
Outer Band (+/- 2 standard deviations): Price beyond the inner band but within the outer band is in an extended state. Price beyond the outer band is at a statistical extreme — more than two standard deviations from the volume-weighted mean.
Regime-Adaptive Coloring: The VWAP bands change color based on the current regime state. In a bullish regime, the bands are azure. In a bearish regime, they are coral. In neutral conditions, they are silver. This provides immediate visual context about the directional environment without requiring the trader to check the HUD.
Band Fills: The area between the inner bands is filled with a subtle tint, and the area between the inner and outer bands receives a lighter fill. This creates a visual "channel" that makes it easy to see where price sits relative to the institutional benchmark.
Institutional Signal Detection
The Sovereign Meridian detects six types of institutional events, organized in a strict priority hierarchy to prevent visual clutter:
Liquidity Grab (highest priority): Price sweeps beyond a swing level and closes back inside, with a wick significantly larger than the body. This is a classic stop-hunt pattern where institutional traders push price into a liquidity pool to fill orders, then reverse. These events are marked with gold labels and include a reference line and highlight box at the grab level.
Wyckoff Spring / Upthrust: Price sweeps below a swing low (Spring) or above a swing high (Upthrust) and closes back inside, confirmed by above-average volume. These are accumulation and distribution signals from Wyckoff methodology — among the most reliable reversal patterns in institutional trading.
Absorption: High volume with small price range — the Wyckoff "Effort vs Result" concept. When large volume produces minimal price movement, it indicates that institutional orders are being absorbed without moving the market. This often precedes a directional breakout as the absorption phase completes.
Volume-Confirmed Engulfing: Classic engulfing candle patterns where the current bar's body fully engulfs the prior bar's body, confirmed by volume exceeding the 20-bar average. These patterns indicate a shift in short-term control from buyers to sellers or vice versa.
Delta Surge: When the buy/sell volume ratio becomes heavily skewed in one direction, indicating strong one-sided institutional flow. This confirms directional conviction in the current move.
Change of Character (lowest priority): CHoCH events from the structure engine are also displayed as signals with reference lines, providing structural context alongside the order flow signals above.
Each signal type has its own color and label style for instant recognition. The cooldown system ensures a minimum number of bars between signals on the same side (bull/bear), and higher-priority signals reset the cooldown for lower-priority ones. This means you will never see a cluttered chart with overlapping labels — only the most significant event at any given moment is displayed.
The Structure Score
The proprietary Structure Score (0-100) synthesizes information from every module into a single number that represents the overall conviction level of the current market state. The score evaluates:
Whether a directional structural trend is established
Whether the swing pattern supports the trend (higher highs/higher lows or lower highs/lower lows)
How many active, unfilled Fair Value Gaps exist (more active FVGs = more institutional imbalance)
How many unmitigated Order Blocks exist (more active OBs = more institutional interest)
Whether current volume is above average (confirming participation)
Whether moving averages are aligned in a trending configuration
Whether the regime engine confirms a trending state
Whether the volume delta supports the directional bias
Each component contributes a weighted amount to the total score, capped at 100. The specific weights and caps for each component are proprietary. Scores above 70 indicate strong directional conviction with multiple confirming factors. Scores between 40-70 indicate moderate conditions. Below 40 indicates weak or conflicting signals.
The Institutional Bias
The HUD displays a weighted institutional bias reading (BULL / BEAR / LEAN BULL / LEAN BEAR / NEUTRAL) computed from the weighted sum of all currently active signals and conditions. Each signal type carries a different weight based on its historical reliability — liquidity grabs and Wyckoff events carry the highest weight, while delta surges carry the lowest. The regime state and moving average alignment provide baseline directional context. This gives traders an at-a-glance summary of which side has the institutional edge right now.
HUD Dashboard
The real-time HUD displays 16 metrics in a compact, color-coded table:
Regime state (Trend Up / Trend Down / Range / Squeeze / Expansion) with regime-specific color
Structure direction (Bullish / Bearish / Neutral)
SMA alignment state (Bull Aligned / Bear Aligned / Mixed)
RSI value with directional color coding
Structure Score (0-100) with green/gold/coral color coding
Volume ratio (current vs 20-bar average) with classification (Surge / High / Normal / Low)
Delta value with directional sign and color
Imbalance classification (BUY PRESSURE / SELL PRESSURE / Buyers / Sellers / Balanced)
Effort/Result ratio with Wyckoff absorption detection (ABSORB / High / Elevated / Normal)
VWAP band position (Above +2s / Above +1s / Upper Band / Lower Band / Below -1s / Below -2s)
Volatility state with Bollinger percentile (Squeeze / Expansion / Normal)
Active FVG and OB zone counts
Current Swing High and Swing Low price levels
Weighted Institutional Bias (BULL / BEAR / LEAN BULL / LEAN BEAR / NEUTRAL)
Visual Design — The Sovereign Theme
The indicator uses a custom "Sovereign" color palette — a desaturated, professional aesthetic built around muted blues, orchids, teals, corals, and golds on a dark graphite background. Every color choice carries meaning:
Azure / Cobalt: Bullish structure, VWAP in bullish regime, SMA 20
Coral / Rose: Bearish structure, bearish regime, bearish signals
Teal / Mint: Bullish reaction zones (FVG), EQL levels, discount zone
Gold / Amber: Liquidity grabs, squeeze state, equilibrium, warnings
Orchid / Violet: Absorption events, SMA 50, CHoCH signals
Sage / Emerald: Strong bullish signals, springs, high scores
Silver / Iron: Neutral states, mitigated zones, mixed conditions
Ice / Lavender: Key levels (PDH, PWH), reference information
The palette is intentionally desaturated compared to typical trading indicators. This reduces eye strain during extended chart sessions and ensures that when a bright signal does appear (gold liquidity grab, emerald spring), it immediately draws attention because it contrasts with the subdued baseline.
Anti-Repaint Design
The Sovereign Meridian is designed to produce signals that do not repaint:
All signal generation is gated behind confirmed bar close logic — signals only appear after the bar has closed, never during an open bar
Prior day and prior week levels are fetched with anti-repaint methodology (no future data references, no lookahead)
Pivot-based swing detection has an inherent offset equal to the lookback period, which is accounted for in the structure engine
The confirmed-bars-only toggle allows traders to verify the anti-repaint behavior by comparing real-time signals with historical ones
Configurable Inputs
The indicator provides organized input groups for customization:
Core System: Sensitivity control (1-3) that adjusts all detection thresholds simultaneously, and confirmed-bars-only toggle
Structure Engine: Swing lookback period, FVG visibility and maximum count, FVG minimum size filter, OB visibility and maximum count, OB strength multiplier
Reaction Zones: EQH/EQL visibility and tolerance, Premium/Discount zone visibility, swing level line visibility
Volatility Engine: Bollinger Band length and multiplier for squeeze/expansion detection
Visuals: VWAP bands, SMA ribbon, key levels, candle coloring, signal display with cooldown, HUD panel, displacement markers, regime background tint — all individually toggleable
How to Use the Sovereign Meridian
Step 1: Read the Regime
Check the HUD for the current regime state and the background tint. Trending regimes (azure or coral tint) favor directional trades. Squeeze (gold tint) means wait for a breakout. Range (no tint) favors mean-reversion approaches.
Step 2: Identify the Structure
Look at the structural trend direction in the HUD and the swing pattern on the chart. Are you seeing higher highs and higher lows, or lower highs and lower lows? BOS labels confirm trend continuation. CHoCH labels warn of potential reversals.
Step 3: Find Reaction Zones
Identify unfilled FVGs and unmitigated OBs in the direction of the structural trend. These are areas where price is likely to react. A bullish FVG in a bullish structure within a Trend Up regime is a high-probability long zone.
Step 4: Check the Score and Bias
A Structure Score above 70 with a BULL or BEAR institutional bias means multiple factors are aligned. This is when the highest-conviction trades occur. Scores below 40 or a NEUTRAL bias suggest waiting for clearer conditions.
Step 5: Use Signals for Timing
Liquidity grabs and Wyckoff springs/upthrusts at reaction zones provide entry timing. Absorption events warn that a move is being loaded. Delta surges confirm directional conviction.
Step 6: Manage with VWAP Bands
Use the VWAP deviation bands for position management. Price at +2 standard deviations in a long trade may be a good area to take partial profits. Price returning to the inner band after an extended move may be a re-entry opportunity.
Who This Indicator Is For
Traders who study institutional price action concepts (market structure, order flow, Wyckoff theory) and want a unified tool that connects these concepts
Traders who are tired of loading 4-5 separate indicators and mentally correlating their outputs
Traders who want a quantified Structure Score and institutional bias reading rather than subjective chart interpretation
Traders who value clean, professional visuals that reduce eye strain and highlight only the most significant events
Traders on any liquid instrument (forex majors, large-cap equities, crypto majors, futures) on timeframes of 5 minutes and above
Limitations and Honest Assessment
Swing detection has an inherent delay equal to the lookback period. Pivots are confirmed only after the right-side bars have formed. This means structure signals appear with a slight lag.
Volume-based features (OB confirmation, delta analysis, absorption detection) require reliable volume data. Instruments with poor volume reporting will produce less reliable signals.
FVG and OB zones are probabilistic reaction areas, not guaranteed reversal points. Price can and does move through zones without reacting.
The buy/sell volume split is estimated from candle structure, which is an approximation of true order flow. True tick-level delta requires exchange data not available in Pine Script.
The Structure Score is a heuristic composite, not a statistical model. It provides a useful summary but should not be the sole basis for trading decisions.
During low-liquidity periods (overnight sessions, holidays), all signals may be less reliable.
This indicator provides context and identifies high-probability zones and events. It does not predict the future and should be used as part of a broader trading plan with proper risk management.
Alert Conditions
The indicator includes 14 configurable alert conditions:
BOS Long / BOS Short — structural break of structure in either direction
CHoCH Long / CHoCH Short — change of character (potential reversal)
Bull / Bear Liquidity Grab — stop-hunt reversal events
Wyckoff Spring / Upthrust — accumulation and distribution signals
Absorption — institutional order absorption detected
Buy / Sell Delta Surge — strong one-sided volume flow
Bull / Bear Displacement — aggressive institutional candles
Regime Change — market regime transition
Why Closed Source
The Sovereign Meridian is published as invite-only with protected source because the proprietary value lies not in the individual concepts it employs — which are well-documented in institutional trading education — but in the specific way these concepts are unified, weighted, scored, and prioritized through a shared engine. The Structure Score algorithm, the signal priority hierarchy with its cooldown interaction rules, the adaptive sensitivity system, the multi-factor candle coloring cascade, and the weighted institutional bias calculation represent original engineering work that goes beyond standard implementations. Protecting the source preserves the integrity of these systems while the description above provides full transparency about the underlying principles, what the indicator does, and how traders can use it.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Market structure analysis, regime detection, and institutional signal identification are frameworks for understanding price behavior — they are not prediction systems. Signals do not guarantee future price movement. Past patterns do not guarantee they will repeat. Always use proper risk management and never risk more than you can afford to lose. The author makes no claims about guaranteed profitability and is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicador Pine Script®
Outside Bar & 2-Bar Reversal Alerts + SystemOutside Bar & 2-Bar Reversal — Price Action Reversal Detection with Integrated Trade Management
Hello friends and traders!
🔹 Introduction
This indicator — Outside Bar & 2-Bar Reversal — automatically identifies two of the most structurally sound price action reversal patterns and overlays a complete trade management system directly on your chart.
The patterns this indicator detects are rooted in a simple but powerful idea: momentum exhaustion followed by full absorption. When price makes an aggressive directional push and is then completely engulfed by the opposing side, it often signals that the prevailing move has run out of willing participants.
The indicator also includes an optional suite of confluence filters — VWAP, swing sweeps, and time-of-day — so you can isolate the highest-quality setups rather than trading every signal blindly.
I'll cover the pattern logic, the trade management system, and all filters in detail throughout this description.
🔹 The Premise
🔸 Why Reversal Candles Work
Price moves because of imbalance. When more aggressive buyers than sellers are active, price rises. When more aggressive sellers than buyers are active, price falls.
Reversal candle patterns are useful because they attempt to identify the moment that imbalance flips — where one side that was previously dominant is fully overcome by the other.
The key word is fully. A simple bearish candle after a bullish candle tells you very little. What's meaningful is when the opposing candle completely engulfs the prior move — taking out its low, closing above its open, and reaching above its high. That's not just a pause. That's a statement.
This is the foundation of both patterns this indicator detects.
🔸 What Is an Outside Bar?
An outside bar is a candle that completely engulfs the prior candle — its range exceeds the prior candle's range on both sides.
But not all outside bars are created equal. A random outside bar on a quiet consolidation bar means very little. The patterns this indicator targets require context and directionality before the signal fires.
Bullish Outside Bar — Full Conditions:
Candle 1 must be bearish — it closes below its open
Candle 1 must close below the prior candle's close — a genuine continuation of selling
Candle 1's low must be below the prior candle's low — it must make a lower low, showing directional commitment
Candle 2 (signal candle) must have a lower low than Candle 1 — extending the flush
Candle 2 must close above Candle 1's open — full absorption of the bearish candle
Candle 2 must have a higher high than Candle 1 — completing the engulf
The result: a setup where price made a committed bearish push, and then a single candle came in, swept below it, and closed above the entire prior move. Buyers didn't just show up — they overwhelmed every seller from the prior candle.
Bearish Outside Bar — Full Conditions:
The exact mirror. A committed bullish candle that makes a higher high, followed by a signal candle that sweeps above it and closes below its entire range. Sellers overwhelmed every buyer.
🔸 What Is a 2-Bar Reversal?
The 2-Bar Reversal is a related but distinct pattern. Rather than requiring full range engulfment, it focuses on close-to-close extremity.
Bullish 2-Bar Reversal:
Candle 1 closes entirely below the low of the candle before it — an aggressive, committed flush
Candle 2 closes above the open of Candle 1 — a full reclaim of the prior candle's starting point
The logic: if price closes below a prior candle's entire range, sellers were aggressive. If the very next candle reclaims all of that, buyers responded even more aggressively. The speed of the reversal is what makes this significant.
Bearish 2-Bar Reversal:
Candle 1 closes above the prior candle's high. Candle 2 closes below Candle 1's open. Immediate and full rejection of the breakout.
🔹 Integrated Trade Management
Every signal automatically places three levels on your chart so you never have to manually calculate a trade again.
🔸 Entry
The open of the candle immediately following the signal candle. You're not chasing — you're entering at the next structured open after confirmation is complete.
🔸 Stop Loss
The open of the signal candle itself. The reasoning: if price returns to where the signal candle opened, the reversal thesis is structurally compromised.
🔸 Take Profit
Fully user-adjustable R multiple. Default is 2R — meaning for every dollar risked, you're targeting two dollars of reward. Adjustable from 0.1R to any value via the settings panel.
🔸 Line Behavior
All three lines extend to the right in real time and automatically terminate the moment price hits either the TP or SL level. No manual cleanup. No cluttered leftover lines. Every historical trade remains visible on the chart so you can review setups at a glance.
🔹 Live Performance Table
A built-in stats table tracks every closed trade automatically:
Total Trades — all resolved trades
Wins — trades that reached the TP level
Losses — trades that hit the SL level
Win Rate — displayed as a percentage, color coded green above 50% and red below
Load any chart, any timeframe, any market — the table populates in real time and gives you an instant read on how the patterns have performed under your current filter settings.
🔹 Confluence Filters
Each filter is independently toggleable. Use one, all, or none — the indicator works standalone without any filters active.
🔸 VWAP Filter
VWAP (Volume Weighted Average Price) is widely used by institutional participants as an intraday benchmark. Price trading above VWAP is generally considered a bullish market structure for the session; below VWAP is bearish.
When enabled, this filter requires:
Bullish signals: the signal candle must close above VWAP
Bearish signals: the signal candle must close below VWAP
This keeps you aligned with the intraday institutional bias rather than trading reversals against the dominant order flow of the session.
🔸 Swing Sweep Filter
One of the most reliable contexts for a reversal pattern is when it occurs after a liquidity sweep — price briefly trading through a prior swing point before reversing. This is often where stop orders from trapped traders trigger, adding fuel to the reversal.
When enabled:
Bullish signals only show if the signal candle's low swept below a recent pivot low
Bearish signals only show if the signal candle's high swept above a recent pivot high
Both the lookback window and the pivot strength (number of bars required on each side to qualify as a swing) are fully adjustable.
🔸 Time Window Filter
Not all hours of the trading day are equal. The highest-quality price action signals tend to occur during periods of genuine institutional participation — typically the first few hours of the New York session when volume, spread, and volatility are all at their daily peak.
When enabled, signals are restricted to a user-defined time window. Default is 8:00 AM – 11:00 AM EST, covering the New York open. The start and end times are individually adjustable by hour and minute. Uses the America/New_York timezone, so EST/EDT daylight saving transitions are handled automatically.
🔹 Settings Overview
SettingDescriptionShow Bullish / Bearish SignalsToggle each direction independentlyShow Outside BarsToggle OB pattern on/offShow 2-Bar ReversalsToggle 2BR pattern on/offTake Profit R MultipleAdjustable TP target (default 2R)Show Trade LinesToggle entry/SL/TP linesLine ColorsIndependently customizableTime Window FilterOn/off + start/end timeVWAP FilterOn/offSwing Sweep FilterOn/off + lookback + pivot strength
🔹 Works On Any Market & Timeframe
The patterns are purely price-action based — no volume dependency, no indicator inputs. They apply equally to equities, futures, forex, and crypto. Most effective on intraday timeframes (1m–15m) during high-liquidity sessions, but the logic holds on higher timeframes for swing traders as well.
🔹 Closing Remarks
The Outside Bar and 2-Bar Reversal are not new concepts. Traders have been observing these patterns for decades. What this indicator adds is precision in definition — ensuring every signal meets a strict structural checklist rather than firing on any loosely engulfing candle — combined with a fully automated trade management overlay and a real-time performance table.
The filters exist because context matters. The same pattern in the middle of a choppy afternoon session, below VWAP, with no liquidity sweep, is a different proposition to the same pattern at the New York open, above VWAP, after a clean sweep of a prior swing low.
Use the filters to build a ruleset that matches your edge, and use the performance table to validate it.
Drop a comment below with the market and timeframe you're testing this on — always interested to see how different traders apply price action tools.
Indicador Pine Script®
EBP + FibThis indicator automatically detects bullish and bearish EBP candles, highlights them visually, and generates an inverted Fibonacci framework used to plan continuation trades with precision.
🔍 What This Indicator Does
This tool fully automates the EBP workflow:
1. Detects Bullish & Bearish EBP Candles
Bullish EBP: price sweeps prior lows and closes strongly above the previous open/close.
Bearish EBP: price sweeps prior highs and closes strongly below the previous open/close.
EBP candles often serve as high-probability directional anchors, defining short-term and medium-term bias.
2. Plots an Inverted Fibonacci Framework
Once an EBP candle forms, the script builds a custom inverted fib projection using the candle’s high/low as anchor points.
The levels used:
1.0 – EBP extreme
0.75 / 0.65 / 0.50 / 0.25 / 0.0 – retracement levels
-0.25 / -0.50 – continuation targets
3. Clean Labeling & Custom Styling
You can customize:
Level colors
Line weights & styles
Label positions (left, middle, right)
Label text size
Vertical spacing (to separate labels from lines)
Labels show the actual fib value for fast reference during execution.
4. Directional Bias Made Simple
The indicator colors EBP candles and displays fib levels that express the market’s expected path:
Bullish: price is expected to retrace into 0.50–0.65, hold above the 1.0 extreme, and extend toward negative extensions.
Bearish: identical logic mirrored downward.
This makes bias extremely easy to read on any timeframe (1m → 4H → HTF).
5. Built-in Alerts
The indicator includes alert conditions for:
Bullish EBP detected
Bearish EBP detected
___________________________
___________________________
📈 How Traders Use This Tool
This indicator is designed for traders who want a clean, systematic framework for trading EBP-based continuation setups.
Common execution models:
🔹 Bullish EBP
A 1H or 4H bullish EBP forms → bullish bias.
Wait for price to retrace into the 0.65 or 0.50 level.
Look for lower-timeframe confirmation (BOS, sweep + reclaim).
Target 0, -0.25, or -0.50.
🔹 Bearish EBP
Mirror the process above.
This workflow is widely used in algorithmic price action, continuation models, and liquidity-based trading.
___________________________
___________________________
✨ Ideal For
Liquidity-based traders
Smart money / ICT-fluent traders
Continuation model traders
Systematic backtesters
Intraday ES/NQ/MNQ/MES traders
Crypto scalpers using HTF bias
Indicador Pine Script®
Liquidity Grab Engulfing.This indicator highlights Liquidity Sweep Engulfing candles:
• Bullish: previous candle bearish, current candle sweeps the previous low and closes above the previous high.
• Bearish: previous candle bullish, current candle sweeps the previous high and closes below the previous low.
Use it as a price-action confirmation tool alongside your support/resistance, structure, and risk management. This script is for educational purposes only and does not constitute financial advice.
Indicador Pine Script®
Wick Ranges (GG)Simple data box that tracks candle wick largest, smallest, and average sizes by price within specified time ranges. Displays labels for upper and lower wicks of current candle.
Helpful if your entry model is entering on the close/open of momentum candles.
-GG
Indicador Pine Script®
Peaks and Troughs📄 Script Description – EN (English)
Peaks and Troughs (P&T) is a price action indicator that identifies confirmed swing highs (peaks) and swing lows (troughs) based on structural trend changes.
Key features:
Trend-break based peak and trough confirmation
Optional engulfing signal at confirmed swing points
Body-break based Mother Bar (Outside Bar) range marking
Clean chart output with only the latest active levels
Unified alert system using Any alert() function call
Designed for discretionary trading, market structure analysis and automation-ready alerting.
----------------------------------------------------
📄 Script Description – HU (Magyar)
A Peaks and Troughs (P&T) egy price action alapú indikátor, amely megerősített csúcs- (peak) és völgypontokat (trough) azonosít trendváltás alapján.
Főbb jellemzők:
Trendtörés alapú peak és trough meghatározás
Opcionális engulfing jelzés megerősített swing pontokon
Body-break alapú Mother Bar (Outside Bar) tartomány jelölés
Letisztult chart, mindig csak az aktuális szintekkel
Egységes riasztási rendszer (Any alert() function call)
Diszkrecionális kereskedéshez, market structure elemzéshez és automatizált riasztásokhoz optimalizálva.
Indicador Pine Script®
StO Price Action - Daily Outside BarShort Summary
- Outside Bar indicator with multiple range calculation algorithms
- Highlights where the current range fully engulfs the previous
- Works with Daily candles in Daily, H4, and H1 timeframes only
- Highlights the current bar when it engulfs the previous bar according to the selected method
Full Description
Overview
- Identifies bars where the current period's range fully engulfs the prior period's range
- Offers three algorithms for defining the engulfing range:
- High/Low: uses absolute high and low values
- Open/Close: considers candle direction (bull/bear) and compares opens and closes
- Open/Close II: stricter version with exclusive inequalities for engulfing
- Engulfing behavior is detected automatically and highlighted for easy recognition
- Works on multiple markets but restricted to D, H4, and H1 charts for accuracy
Controls
- Year lookback (YLB) configurable to filter older bars
- Custom background color for highlighting Outside Bars
- Simple toggle interface with minimal chart clutter
Visual Representation
- Highlights engulfing bars with configurable background color
- Color transparency adjustable for clarity
Usage
- Use to identify strong market momentum or potential reversals
- Helps spot high-probability setups based on engulfing price action
Notes
- Only compatible with Daily, H4, and H1 timeframes
- Non-repainting: once an Outside Bar is drawn, it will not adjust retroactively
- Best used as a market structure reference not a direct trade signal
Indicador Pine Script®
Engulfing Reversal PatternThe Engulfing Reversal Pattern indicator seeks out both bullish and bearish reversal patterns. This indicator offers the user numerous options to modify the indicator to their needs.
Key features:
Ability to adjust the size of the Engulfing candle in comparison to the prior candle
Ability to adjust the number of breakout candles
Indicator adapts to the Time Frame it is being used in
You can choose between identifying only Bearish patterns, only Bullish patterns or both.
Indicator Arrow size can be adjusted in size.
Indicador Pine Script®
CRT+ Advance Engulfing | @stefandimovCRT+ Lite implements institutional-style Candle Range Theory logic to identify displacement-driven engulfing structures with precision.
The script focuses on wick-based liquidity grabs, strict body closes, and optional higher-timeframe confirmation to highlight structurally valid bullish and bearish reversals.
Includes a Daily-only multi-market scanner and a compact dashboard for fast top-down analysis.
Designed for traders who prioritize structure, execution precision, and HTF alignment.
Indicador Pine Script®
Intraday Buy/Sell/Average Zones by Chaitu50cIntraday Buy/Sell/Average Zones by chaitu50c
Timeframe:
Tested on the 5-minute chart.
Recommended timeframe: 5-minute
What it does
This indicator marks intraday Buy (green) and Sell (red) zones made by strong close-confirmed breakouts. These zones act as support/resistance. If price later closes through a zone, the zone changes color from that bar forward (support ↔ resistance). It can flip more than once.
How zones form
Single breakout: an opposite-type candle closes beyond the previous candle’s high/low.
Double breakout: a base candle, then two opposite-type candles, and the second one closes beyond the base high/low.
Zone size
Buy zone: from the combo lowest low up to the nearest open/close of the combo.
Sell zone: from the combo highest high down to the nearest open/close of the combo.
Color shift (optional)
If price closes through a zone, it flips color at that bar and behaves as the other side (support ↔ resistance). Flips can happen again later.
Overlap control
When a new zone overlaps an existing same-color zone in the same session, choose:
Merge (combine), or
Suppress (ignore the new one).
Flipped zones use their current color for this.
Right edge & session
All zones extend to the right (your offset). Detection is limited to your chosen session, and you can show only the last N sessions.
---
How to trade (simple)
A) Initial breakout trade
When a new zone forms, that breakout itself can be a trade idea in the breakout direction, The stoploss will be the zone.
B) Zone breakout trade (flip)
If price later closes out of a zone and it changes color, that breakout is another trade opportunity in the new direction.
C) Retrace & average trade
When price retests a zone, wait for a confirmation candle in the zone’s favor
— bullish close for a green zone, bearish close for a red zone — then average entries inside/near the zone.
Place stops just beyond the opposite edge of the zone.
If the zone flips color, stop averaging; bias changed.
---
Key settings
Breakout type: Single and/or Double
Confirm on Close: strict mode (no intrabar preview) or allow intrabar preview that auto-removes if fail
Color Shift on Breaks: on/off
Same-Type Overlap: Merge/Suppress
Session, Sessions to Display, Right Offset, Colors, Max Zones
Reminder: Best results on the 5-minute timeframe (tested and recommended).
Indicador Pine Script®
DTLLC Time & PriceDTLLC Time and Price with Signals
This indicator is built for traders who understand ICT concepts and want a structured, visual way to align time-based price action with key market levels. By combining customizable trading windows, breakout logic, and daily reference points, it helps you identify high-probability trade opportunities while filtering out market noise.
Key Features
1. Dual Custom Time Ranges (Kill Zones)
Set two independent time ranges per day (start/end hour and minute).
Each range identifies the highest high and lowest low within its window.
Built-in breakout detection generates buy/sell signals when price moves beyond these levels.
2. Volatility Filtering
Adjustable volatility threshold based on True Range relative to ATR.
Filters out low-quality signals during choppy, low-volatility conditions.
3. ATR-Based Stop Loss
Custom ATR length and stop-loss multiplier settings.
Automatically plots ATR-based stop levels for triggered trades.
4. Daily Key Levels
Plots Previous Day High, Previous Day Low, and Midnight Open continuously on the chart.
Useful for spotting breakout and reversal opportunities in line with ICT market structure concepts.
5. Liquidity & Engulfing Candle Highlights
Highlights potential liquidity grab zones (yellow candles) when significant highs/lows are set within your lookback period.
Detects bullish (green) and bearish (red) engulfing patterns for added confluence.
6. Visual & Signal Tools
Buy/Sell signals plotted directly on chart (separate colors for Range 1 and Range 2). Continuous plotting of reference levels to maintain market context throughout the session.
Example Use Case:
A common ICT-inspired reversal setup:
Wait for price to sweep the Previous Day’s High or Low during your chosen time range.
Look for a buy or sell signal with volatility confirmation.
Manage risk using the ATR-based stop-loss plot.
Disclaimer: This script is for educational purposes only and is not financial advice. Trade responsibly and always test strategies before applying them in live markets.
Indicador Pine Script®
Engulfing + Sweep (Confirmed Only) v6 — bars onlyMarks bullish/bearish engulfing candles with liquidity sweeps and confirms them on the next candle — no repaint.
✳️ Features:
• 🟩 Bullish Engulfing + Low Sweep
• 🟥 Bearish Engulfing + High Sweep
• 🎛 Require opposite-color previous candle (optional)
• 📏 Min body-to-range filter
• 🔔 Alerts on confirmation candle
🎯 Best for:
• Price action & reversal traders
• Liquidity sweep confluence setups
Indicador Pine Script®
Candlestick Suite–(Phoenix) it colors the major Reversal candlesticks
BullEngulf or BearEngulf or Engulfing() -> DARK_ORANGE
PiercingLine or DarkCloudCover -> CYAN
BullishHarami or BearishHarami -> YELLOW
BullishInsideBar or BearishInsideBar -> WHITE
Indicador Pine Script®
Engulfing DashboardThis is an indicator that detects candles based on the **Engulfing system** I’ve studied — from **wick to wick**.
It determines whether it’s a Buy or Sell based on the **opening price** and how the candle moves.
Anyone familiar with the Engulfing system will know how to use it.
It’s especially useful for people who use only **one screen** and can’t constantly monitor multiple timeframes.
And don’t forget:
**Trend is your friend.**
Indicador Pine Script®
Bullish & Bearish Wick MarkerMarks bullish and bearish engulfing candles
Bullish engulfing candle:
when the low is lower than the previous candle low and the body close is higher than the previous candle body
Bearish engulfing cande:
when the high is higher than the previous candle high and the body close is lower than the previous candle body
Indicador Pine Script®
Multi Candle Engulfing Detector🔍 Multi Candle Engulfing Detector
This indicator identifies powerful engulfing candles that consume three or more previous candles — a signal often tied to strong market reversals or continuation moves.
🧠 Features
Detects candles that fully engulf the previous 3 or more candles
Optional filtering: only trigger when the engulfed candles are of the opposite color
Customizable engulf count for greater pattern control
Clear bullish and bearish signal labels on the chart
Alerts integrated: get notified the moment a setup forms
Background highlighting for enhanced visibility
⚙️ Settings
Minimum Number of Candles to Engulf: Default is 3, but can be adjusted
Require Opposite Color: When enabled, the engulfing candle must be opposite in color to the engulfed ones (e.g., green engulfing red)
📈 Use Cases
Spot strong reversal signals at tops and bottoms
Confirm breakout momentum on trend continuation
Use in confluence with other tools like volume or support/resistance
🚨 Alerts
Alerts fire when a bullish or bearish engulfing pattern is detected, allowing for mobile, email, or webhook notifications.
✅ Notes
This script is fully customizable and can be extended into a strategy or scanning tool. Feedback and suggestions are always welcome!
Indicador Pine Script®
Engulfing Candle with Streaks and CountIdentifies Engulfing Candles + The Number of Consecutive Signals + Identifies 3rd/4th Consecutive Signals + Keeps Count of Most Recent Number of Signals as Decided by User.
- Have coded in the latest version 6
- This script allows the tracking of engulfing candles over a user defined amount of time (candles).
- The script will signal every engulfing candle and its consecutive corresponding number across the entire chart.
- The Engulfing Count box in the bottom right counts how many bullish and bearish engulfing candles have occurred over the number decided by the user.
- The Engulfing Signal that prints is triggered when an opposite next candle prints and the body is over 100% larger than the previous candle. It does not need to "fully engulf" the previous candle, the coding has an allowance for an "equal to and greater/smaller than" the previous close price. This allows for signals were the open of the engulfing candle can be equal to the close of the previous opposite, however the engulfing still must reach an over 100% sizing of the previous to print a signal.
- Where a piercing candle occurs and the open price is within the body of the previous candle, this will void the equation and no matter how big the candle is, it will not trigger an engulfing signal as I was only looking for true engulfing candles.
- The script keeps count of the same consecutive signals no matter the timeframe.
- It will print the consecutive number above or below the signal (depending if bullish or bearish).
- To assist with trend identification the 3rd consecutive signal will print blue, and the 4th consecutive signal will print yellow (or I prefer to use the term "Gold"). This can help filter out the noise on lower timeframes to assist to see where the momentum is going, or if there are signals going against the trend to try trick traders.
- Back testing I found the 3rd and 4th signals are uncommon on higher timeframes and tend to act as fake-outs before the trend reverses.
- Overall a good tool to add to your trend analysis, either for additional confluence or to assist with reversal identification.
- Colors are set as default, but everything can be changed by the user as I didn't want to limit its possibilities.
*** Please note that this script does not take into any consideration candle wicks. Although it can be used with Heikin Ashi it is somewhat unreliable. This indicator is designed to be used with standard candles only ***
Indicador Pine Script®
Sweep Engulf CHoCH📖 Indicator Overview
The Sweep Engulf CHoCH indicator is designed to detect the Sweep + Engulf + CHoCH (Change of Character) pattern on price charts. This indicator helps traders identify bullish and bearish entry opportunities based on the last three candles forming this pattern.
📊 How the Indicator Works
The indicator analyzes specific conditions in the last three candles:
🔹 Bullish Entry (Buy Signal)
✔️ Candle 1 must be bearish (close < open )
✔️ Candle 2 must sweep the low of candle 1 (low < low )
✔️ Candle 2 must also engulf candle 1 (close > close )
✔️ Candle 3 must break structure (CHoCH) by closing above the open of candle 1 (close > open )
🔻 Bearish Entry (Sell Signal)
✔️ Candle 1 must be bullish (close > open )
✔️ Candle 2 must sweep the high of candle 1 (high > high )
✔️ Candle 2 must also engulf candle 1 (close < open )
✔️ Candle 3 must break structure (CHoCH) by closing below the open of candle 1 (close < open )
Indicador Pine Script®
Sweep Engulf 2 Candle🔍 Overview:
This script identifies Bullish Engulfing and Bearish Engulfing candlestick patterns on the chart. These formations are widely used in technical analysis to spot potential reversals in price action. The indicator helps traders quickly identify these patterns by marking them directly on the chart with small arrows.
📌 Features:
✅ Bullish Engulfing & Bearish Engulfing Detection
✅ Customizable Display Options (Enable/Disable Bullish or Bearish signals)
✅ Real-Time Alerts (Receive notifications when a pattern is formed)
✅ Optimized Marker Size (Smaller icons for better chart visibility)
📊 How It Works:
1. Bullish Engulfing Condition:
The second candle's low is lower than the first candle's low.
The second candle's close is higher than the first candle's open (if the first candle is bearish) OR higher than the first candle's close (if the first candle is bullish).
2. Bearish Engulfing Condition:
The second candle's high is higher than the first candle's high.
The second candle's close is lower than the first candle's close (if the first candle is bearish) OR lower than the first candle's open (if the first candle is bullish).
⚙️ How to Use:
Add the script to your TradingView chart.
Adjust settings to enable/disable Bullish or Bearish Engulfing patterns.
Enable alerts to receive real-time notifications when a pattern is detected.
Use this indicator to support your technical analysis and trade decisions.
📌 Notes:
This indicator is best used in combination with other technical analysis tools like support & resistance levels, trendlines, or volume analysis.
It works on all timeframes and asset
Indicador Pine Script®
Engulfing Candles (ATR-Based)This indicator detects Engulfing Patterns with an ATR-based filtering mechanism and trend confirmation. Unlike a basic engulfing pattern indicator that only checks if a current candle engulfs the previous one, this script incorporates trend detection using either the 50-period SMA alone or a combination of 50 and 200-period SMAs to ensure that signals align with the broader trend. The indicator identifies Bullish Engulfing patterns when a strong bullish candle engulfs a smaller bearish candle in a downtrend and Bearish Engulfing patterns when a strong bearish candle engulfs a smaller bullish candle in an uptrend. It also generates alerts and visually marks these patterns with labels ("BU" for bullish and "BE" for bearish) while highlighting the background accordingly.
What sets this indicator apart from a normal engulfing indicator is its ATR-based filtering system, which ensures that only significant engulfing candles are considered. Instead of accepting any engulfing pattern, the script measures candle body size relative to 1.5x ATR (configurable) to filter out weak signals. It also differentiates between long-bodied and small-bodied candles to confirm that the engulfing pattern represents real momentum shifts. This approach reduces false signals caused by small, insignificant candles and ensures that traders focus on high-probability reversal patterns. By integrating trend-based filtering and ATR-based confirmation, this indicator provides more reliable and context-aware engulfing signals than a standard engulfing pattern detector.
Indicador Pine Script®






















