PROTECTED SOURCE SCRIPT

ENIGMA 369

300
syot kilatsyot kilatENIGMA 369 is a unique Pine Script indicator that combines two complementary trading systems: Break of Structure (BOS) Detection and Session-Based Sniper Signals.

syot kilatsyot kilat

Designed to help traders identify market structure shifts and potential intraday setups, it overlays on the chart to highlight key levels and momentum-driven opportunities. The indicator’s originality lies in its integration of pattern-based BOS analysis (inspired by Smart Money concepts) with time- and trend-filtered Sniper signals, creating a cohesive tool for both swing and intraday trading.

syot kilatsyot kilat

Unlike standalone breakout or scalping indicators, ENIGMA 369 uses:
BOS Logic: A specific two-candle pattern sequence to detect structural shifts, filtered by ATR for significance.


Sniper Logic: Momentum-based signals during high-volatility sessions, optionally aligned with EMA trends.
This synergy allows traders to assess market direction strategically (via BOS) and time entries tactically (via Sniper), all within one indicator.

syot kilatsyot kilat
What It Does
ENIGMA 369 performs two distinct functions:
Break of Structure (BOS) Detection:
Identifies potential support/resistance levels using BullBear (bullish candle followed by bearish) and BearBull (bearish followed by bullish) candle pairs.
Confirms breakouts when price sustains above (bullish) or below (bearish) these levels for a set number of bars.
Draws horizontal lines at confirmed breakout levels, which persist until price crosses a user-defined buffer zone.
syot kilatsyot kilat

Sniper Momentum Signals:
Detects buy/sell setups during user-specified trading sessions (e.g., London/US), based on candle momentum (close relative to midpoint, higher highs/lower lows).
Optionally filters signals with an EMA to align with the broader trend.
Plots lines at the candle’s high/low and 50% wick levels, serving as reference points for entries or stops, removed when price crosses them.


How It Works
ENIGMA 369 relies on price action, market timing, and trend context to generate signals. Here’s how each component operates:
BOS Logic:
Pattern Detection: Scans for two-candle patterns where the first candle is significant (size exceeds an ATR-based threshold) and the second opposes it. For example, a BullBear pair marks the first candle’s high as a potential resistance.
ATR Filter: Uses the Average True Range (default: 14 periods) to ensure the first candle’s range or body is substantial, reducing noise. Users can adjust the ATR multiplier (default: 0.5).
Confirmation: Requires price to close above/below the stored level for a user-defined number of bars (default: 1) to confirm a breakout.
Line Management: Plots green (bullish) or red (bearish) lines at confirmed levels, extending for a set number of bars (default: 10). Lines are deleted if price crosses a buffer (percentage of price or ATR-based, default: 0.1).
Visualization: Optionally highlights pattern candles with transparent green/red backgrounds.
Sniper Logic:
Momentum Signals: Identifies buy signals when a candle closes above its midpoint (high+low)/2 and has a lower low than the prior candle, indicating potential bullish momentum. Sell signals require a close below the midpoint and a higher high.
Session Filter: Limits signals to user-defined London/US session hours (default: 1-23 UTC, adjustable to specific hours like 7-11 UTC for London).
EMA Filter: Optionally uses a 50-period EMA (adjustable) to ensure buy signals occur in uptrends (rising EMA) and sell signals in downtrends (falling EMA).
Line Plotting: Draws blue lines for buy signals (at the low and 50% of the lower wick) and orange lines for sell signals (at the high and 50% of the upper wick). Lines extend right until price crosses them, managed via arrays for efficiency.
Dynamic Removal: Lines are automatically deleted when price breaches them, reflecting changing market conditions.
Why Combine BOS and Sniper?
The integration of BOS and Sniper logic is purposeful and synergistic:
BOS provides a strategic view by identifying structural shifts, helping traders understand the market’s directional bias (e.g., bullish after a confirmed high breakout).
Sniper offers tactical entry points within these trends, focusing on high-volatility sessions where momentum is likely to drive clear moves.
Together, they enable traders to align short-term trades with long-term structure, reducing the risk of trading against the trend. For example, a trader can wait for a bullish BOS confirmation before taking Sniper buy signals, enhancing setup reliability.
This combination is original because it merges Smart Money-inspired BOS detection with a session-based momentum system, a pairing not commonly found in single indicators. It avoids redundant mashups by ensuring each component serves a distinct yet complementary role.
How to Use It
Setup:
Apply ENIGMA 369 to a TradingView chart (Pine Script v5). The chart shown here uses a clean H1 candlestick setup to highlight BOS and Sniper outputs clearly.
Customize settings:
BOS:
ATR Period (default: 14), Min Candle Size (default: 0.5x ATR): Adjust for pattern sensitivity.
Confirmation Bars (default: 1): Set for faster/slower breakouts.
Buffer Type (Percentage/ATR), Buffer Zone Value (default: 0.1): Control line deletion.
Show Lines (default: true), Highlight Candle Pairs (default: false): Enable visuals.
Customize line colors (green/red) and width/length.
Sniper:
London/US Start/End Hours: Set to match your asset’s volatility (e.g., 7-11 UTC for London forex).
EMA Filter (default: true), EMA Period (default: 50): Enable for trend alignment.
Customize line styles (Solid/Dotted/Dashed) and colors (blue/orange) to distinguish from BOS.
Suggested timeframes: H1-H4 for BOS (swing trading), M5-M15 for Sniper (intraday).
Trading with BOS:
Monitor for green (bullish) or red (bearish) lines indicating confirmed breakouts.
Use lines as support/resistance:
Bullish BOS: Consider longs above the line, with stops below the line or buffer.
Bearish BOS: Consider shorts below the line, with stops above the line or buffer.
Line deletion signals a potential reversal or level invalidation.
Trading with Sniper:
Look for blue (buy) or orange (sell) lines during active sessions:
Buy: Enter long at the low or 50% wick line, with stops below the low and targets at resistance.
Sell: Enter short at the high or 50% wick line, with stops above the high and targets at support.
Use EMA filter to avoid counter-trend signals.
Lines disappear when crossed, indicating the setup’s completion or invalidation.
Alerts:
Set alerts for:
“Bullish/Bearish BOS Confirmed” for structural shifts.
“Sniper Buy/Sell Alert” for intraday setups.
Combine with volume, key levels, or news for confirmation.
Best Practices:
Use BOS to confirm trend direction before taking Sniper signals.
Test settings on your asset/timeframe via backtesting.
Apply stop-losses and risk-reward ratios (e.g., 1:2) for discipline.
The chart example shows BOS lines (green/red) and Sniper lines (blue/orange) on an H1 chart, ensuring clarity.
Underlying Concepts
Market Structure (BOS): Identifies turning points where supply/demand shifts, using two-candle patterns to mark significant levels, similar to order block concepts.
Momentum and Timing (Sniper): Targets entries during high-liquidity sessions, using candle midpoint and wick analysis to capture momentum-driven moves.
Trend Context: EMA ensures signals align with the market’s direction, reducing false positives.
Price Action: Both systems rely on raw price behavior, avoiding lagging oscillators for timely signals.
Limitations
BOS may lag in fast markets; reduce confirmation bars for scalping.
Sniper signals depend on session settings; ensure alignment with your asset’s volatility.
Multiple lines may clutter charts; adjust colors/styles for clarity.
Not a standalone system; combine with other analysis for best results.
Disclaimer
ENIGMA 369 is a tool to identify potential trading setups, not a guaranteed profit system. Past performance does not predict future results. Backtest thoroughly and use with proper risk management.
Conclusion
ENIGMA 369 offers a structured approach to trading by combining BOS’s structural insights with Sniper’s precise, session-based entries. Its unique integration makes it suitable for traders seeking to align strategic and tactical decisions. Customize it to your style, test it rigorously, and use it to enhance your market analysis.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.