The "EBL - Enigma BOS Logic" indicator is a unique and powerful tool designed to identify and visualize Break of Structure (BOS) patterns in price action, a concept widely used in market structure analysis and Smart Money Concepts (SMC). Unlike generic trend-following or scalping tools, EBL focuses on pinpointing precise moments where market structure shifts occur—those critical points where price breaks key levels after specific candle formations. This indicator stands out by combining a selective candle-pair detection method with dynamic level management, noise filtration, and customizable visuals, making it adaptable to various trading styles, from scalping to swing trading.
What It Does
EBL identifies potential reversal or continuation setups by detecting two-candle patterns:
Bullish BOS: A bullish candle (close > open) followed by a bearish candle (close < open), with the high of the bullish candle stored as a key level.
Bearish BOS: A bearish candle (close < open) followed by a bullish candle (close > open), with the low of the bearish candle stored as a key level.
Once these levels are set, EBL waits for price to break above (bullish) or below (bearish) them, signaling a confirmed BOS. It then:
Draws horizontal lines at these levels to mark the structure.
Places arrows (▲ for bullish, ▼ for bearish) when the break is confirmed.
Adjusts or removes lines based on price action, using a buffer zone to filter out false breaks.
How It Works
The indicator’s logic is rooted in market structure analysis, specifically BOS, which occurs when price breaks a prior significant high or low, indicating a shift in supply/demand dynamics. Here’s the step-by-step process:
Candle Pair Detection:
EBL looks for a bullish candle followed by a bearish one (or vice versa). This pattern suggests a potential structure point where momentum may have peaked or bottomed temporarily.
A minimum candle size filter (based on ATR multiples) ensures only significant candles are considered, reducing noise from small, indecisive movements.
Level Storage:
The high of the bullish candle or low of the bearish candle is stored as a key level. These are the "structure points" traders watch for breaks.
Break Confirmation:
A bullish BOS is confirmed when price closes above the stored high, signaling potential bullish momentum.
A bearish BOS is confirmed when price closes below the stored low, indicating potential bearish momentum.
Dynamic Line Management:
Horizontal lines extend from the stored levels for a user-defined number of bars (default: 10).
If price respects the level (e.g., stays above a bullish line), the line extends further.
If price breaks through the level by a buffer zone (e.g., 0.1% of price), the line is deleted, indicating the structure is no longer valid.
Lines also adjust to exact retest points if price touches them without breaking.
Visuals and Alerts:
Arrows mark confirmed breaks, with customizable colors matching the lines (default: green for bullish, red for bearish).
Alerts notify users of confirmed BOS events, ideal for real-time trading.
Originality
EBL’s originality lies in its hybrid approach to BOS detection:
Selective Pattern Recognition: Unlike many indicators that rely on simple highs/lows or moving averages, EBL uses a specific two-candle sequence to define structure points, inspired by SMC principles but simplified for broader use.
Noise Reduction: The ATR-based candle size filter ensures only meaningful setups trigger, avoiding the clutter of generic breakout tools.
Adaptive Lines: The dynamic adjustment and buffer zone logic prevent premature invalidation, making it more practical than static level indicators.
User Control: Extensive customization options (colors, visibility, length, filters) cater to individual preferences, unlike rigid, one-size-fits-all tools.
Underlying Concepts
The calculations are grounded in market structure theory and price action analysis:
Break of Structure (BOS): A core SMC concept where price breaking a prior high or low signals a shift in market control (e.g., buyers overcoming sellers).
True Range (TR) and ATR: Used to position arrows and filter candle size, ensuring signals align with market volatility.
Buffer Zone: A percentage-based threshold (e.g., 0.1%) adds a layer of confirmation, preventing false breaks in choppy conditions.
This isn’t a generic trend detector or oscillator—it’s a precision tool for traders who analyze structure and trade breakouts or retests.
How to Use It
Add to Chart: Copy the script into TradingView’s Pine Editor and add it to your chart.
Customize Settings (via the gear icon):
Bullish/Bearish Line Color: Match your chart theme (default: green/red).
Show Arrows/Lines: Toggle visuals based on preference (default: both on).
Horizontal Line Length: Set how long lines extend (default: 10 bars).
Min Candle Size: Increase (e.g., 1.0) for stricter setups, decrease (e.g., 0.3) for more signals (default: 0.5 ATR).
Buffer Zone %: Adjust sensitivity to invalidation (default: 0.1%).
Interpret Signals:
Bullish BOS (▲): Look for buying opportunities or trend continuation when price breaks above a stored high.
Bearish BOS (▼): Consider selling or shorting when price breaks below a stored low.
Watch lines for retests—price often returns to test these levels before continuing.
Set Alerts: Right-click the indicator, select "Add Alert," and choose "Bullish BOS Confirmed" or "Bearish BOS Confirmed" for real-time notifications.
Best Timeframes: Works on any timeframe, but shines on 5m–1h for scalping/day trading or 4h–D for swing trading.
Trading Tips
Confluence: Combine EBL with support/resistance, Fibonacci levels, or volume to confirm signals.
Volatility: Test on volatile assets (e.g., crypto, forex) for clearer BOS patterns; adjust Min Candle Size for quieter markets.
Risk Management: Use BOS breaks as entry points, with stops below/above the structure level.
Why Use EBL?
If you’re tired of vague trend indicators or overcomplicated systems, EBL offers a clear, structure-based approach to spotting high-probability setups. It’s not just another breakout tool—it’s a disciplined, customizable way to trade market shifts with confidence.