Accumulation Swing Index The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
在脚本中搜索"Futures"
Accumulation Swing Index (ASI) The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
Hull DMI - MattesHull DMI - Mattes
A Directional Movement Index enhanced with Hull Moving Average smoothing for refined trend detection.
This indicator reimagines the classic Directional Movement Index (DMI) by incorporating Hull Moving Average (HMA) smoothing on high and low prices. It calculates the +DI and -DI components based on changes in these hulled values, then derives the ADX for trend strength. The core plot displays the difference between +DI and -DI, colored to indicate bullish (blue) or bearish (purple) dominance when ADX is rising. Additionally, it overlays colored candles on the price chart to visually represent the prevailing trend direction.
Key Features:
Hull-Smoothed Inputs: Applies HMA to highs and lows before computing directional changes, reducing noise and lag compared to standard DMI.
Customizable Lengths: Adjustable periods for HMA, DI, and ADX smoothing to suit various timeframes and assets.
Trend Visualization: Plots DI difference with dynamic coloring and overlays trend-colored candles for at-a-glance analysis.
Alert Conditions: Built-in alerts for long (bullish) and short (bearish) signals when conditions shift.
How It Differs from Standard DMI/ADX:
Unlike the traditional DMI, which uses raw price changes and true range, this version employs Hull Moving Averages on highs and lows for smoother, more responsive directional calculations. This minimizes whipsaws in choppy markets while preserving sensitivity to genuine trends. The ADX is integrated to filter signals, ensuring color changes and alerts only occur during strengthening trends, setting it apart from basic oscillator-based indicators. Why It's Useful:
Enhanced Trend Identification: The HMA smoothing provides clearer signals in volatile environments, helping traders spot emerging trends earlier.
Visual Clarity: Colored DI plot and candle overlays make it easy to interpret market bias without cluttering the chart.
Versatility: Suitable for stocks, forex, crypto, and more; excels in trend-following strategies or as a filter for other systems.
Risk Management Aid: By focusing on ADX-confirmed moves, it reduces false signals, potentially improving win rates in systematic trading.
This Hull DMI variant offers several practical advantages that can directly improve trading decisions and performance:
Reduced Lag with Smoother Signals: By applying Hull Moving Average smoothing to highs and lows, the indicator responds faster to genuine trend changes than the standard DMI while filtering out much of the noise that causes false signals in ranging or choppy markets. Traders get earlier entries into trending moves without excessive whipsaws.
Built-in Trend Strength Filter: The optional ADX confirmation (enabled by default) ensures bullish signals and blue coloring only activate when trend strength is increasing (ADX rising). This helps traders avoid entering long positions during weakening or sideways trends, focusing capital on higher-probability setups.
Clear Visual Bias at a Glance: The single oscillator line (+DI – -DI) centered on zero, combined with dynamic blue/purple coloring and full candle overlay on the price chart, instantly shows the dominant trend direction. No need to interpret multiple lines—traders can quickly assess market bias across multiple charts or timeframes.
Versatile Across Markets and Styles: Works effectively on stocks, forex, futures, and cryptocurrencies. Trend-following traders can use it standalone for entries/exits, swing traders can use it for bias confirmation, and scalpers/day traders benefit on lower timeframes due to the reduced lag.
Improved Risk Management: By prioritizing ADX-confirmed directional moves, the indicator naturally filters low-conviction setups. This can lead to higher win rates and better risk-reward ratios when used systematically, especially when combined with proper stop-loss placement below/above recent swings.
Easy Integration: Built-in alert conditions and simple long/short logic make it straightforward to incorporate into automated strategies, watchlists, or as a confirming filter alongside other indicators (e.g., moving averages, RSI, volume profile).
Customizable Sensitivity: Separate inputs for Hull length, DI period, and ADX smoothing allow traders to optimize the indicator for specific assets, volatility regimes, or personal trading horizons—making it adaptable rather than one-size-fits-all.
Signals & Interpretation
The oscillator plots the difference between +DI and -DI (positive = bullish dominance, negative = bearish).
Bullish Signal (Long): +DI crosses above -DI, and (if ADX confirmation enabled) ADX is rising — triggers blue coloring, candle overlay, and long alert.
Bearish Signal (Short): -DI crosses above +DI — triggers purple coloring, candle overlay, and short alert.
Zero line acts as neutrality; crossings indicate potential trend shifts.
Best used in trending markets; ADX rising filter helps avoid whipsaws.
// Example Usage in Strategy
strategy("Hull DMI Strategy Example", overlay=true)
if L
strategy.entry("Long", strategy.long)
if S
strategy.entry("Short", strategy.short)
Great Inventions Require great care
Disclaimer: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Past performance is not indicative of future results. Always backtest thoroughly on your specific assets and timeframes, and consult a qualified financial advisor before making trading decisions. The author assumes no responsibility for any losses incurred from its use.
Market Regime | NY Session Killzones Indicator [ApexLegion]Market Regime | NY Session Killzones Indicator
Introduction and Theoretical Background
The Market Regime | NY Session Killzones indicator is designed exclusively for New York market hours (07:00-16:00 ET). Unlike universal indicators that attempt to function across disparate global sessions, this tool employs session-specific calibration to target the distinct liquidity characteristics of the NY trading day: Pre-Market structural formation (08:00-09:30), the Morning breakout window (09:30-12:00), and the Afternoon Killzone (13:30-16:00)—periods when institutional order flow exhibits the highest concentration and most definable technical structure. By restricting its operational scope to these statistically significant time windows, the indicator focuses on signal relevance while filtering the noise inherent in lower-liquidity overnight or extended-hours trading environments.
I. TECHNICAL RATIONALE: THE PRINCIPLE OF CONTEXTUAL FUSION
1. The Limitation of Acontextual Indicators
Traditional technical indicators often fail because they treat every bar and every market session equally, applying static thresholds (e.g., RSI > 70) without regard for the underlying market structure or liquidity environment. However, institutional volume and market volatility are highly dependent on the time of day (session) and the prevailing long-term risk environment.
This indicator was developed to address this "contextual deficit" by fusing three distinct yet interdependent analytical layers:
• Time and Structure (Macro): Identifying high-probability trading windows (Killzones) and critical structural levels (Pre-Market Range, PDH/PDL).
• Volatility and Scoring (Engine): Normalizing intraday momentum against annual volatility data to create an objective, statistically grounded AI Score.
• Risk Management (Execution): Implementing dynamic, volatility-adjusted Stop Loss (SL) and Take Profit (TP) parameters based on the Average True Range (ATR).
2. The Mandate for 252-Day Normalization (Z-Score)
What makes this tool unique is its 252-day Z-Score normalization engine that transforms raw momentum readings into statistically grounded probability scores, allowing the same indicator to deliver consistent, context-aware signals across any timeframe—from 1-minute scalping to 1-hour swing trades—without manual recalibration.
THE PROBLEM OF SCALE INVARIANCE
A high Relative Strength Index (RSI) reading on a 1-minute chart has a completely different market implication than a high RSI reading on a Daily chart. Simple percentage-based thresholds (like 70 or 30) do not provide true contextual significance. A sudden spike in momentum may look extreme on a 5-minute chart, but if it is statistically insignificant compared to the overall volatility of the last year, it may be a poor signal.
THE SOLUTION: CROSS-TIMEFRAME Z-SCORE NORMALIZATION
This indicator utilizes the Pine Script function request.security to reference the Daily timeframe for calculating the mean (μ) and standard deviation (σ) of a momentum oscillator (RSI) over the past 252 trading days (one year).
The indicator then calculates the Z-Score (Z) for the current bar's raw momentum (x): Z = (x - μ) / σ
Core Implementation: float raw_rsi = ta.rsi(close, 14) // x
= request.security(syminfo.tickerid, "D",
, // σ (252 days)
lookahead=barmerge.lookahead_on)
float cur_rsi_norm = d_rsi_std != 0 ? (raw_rsi - d_rsi_mean) / d_rsi_std : 0.0 // Z
This score provides an objective measurement of current intraday momentum significance by evaluating its statistical extremity against the yearly baseline of daily momentum. This standardized approach provides the scoring engine with consistent, global contextual information, independent of the chart's current viewing timeframe.
II. CORE COMPONENTS AND TECHNICAL ANALYSIS BREAKDOWN
1. TIME AND SESSION ANALYSIS (KILLZONES AND BIAS)
The indicator visually segments the trading day based on New York (NY) trading sessions, aligning the analysis with periods of high institutional liquidity events.
Pre-Market (PRE)
• Function: Defines the range before the core market opens. This range establishes structural support and resistance levels (PMH/PML).
• Technical Implementation: Uses a dedicated Session input (ny_pre_sess). The High and Low values (pm_h_val/pm_l_val) within this session are stored and plotted for structural reference.
• Smart Extension Logic: PMH/PML lines are automatically extended until the next Pre-Market session begins, providing continuous support/resistance references overnight.
NY Killzones (AM/PM)
• Function: Highlights high-probability volatility windows where institutional liquidity is expected to be highest (e.g., NY open, lunch, NY close).
• Technical Implementation: Separate session inputs (kz_ny_am, kz_ny_pm) are utilized to draw translucent background fills, providing a clear visual cue for timing.
Market Regime Bias
• Function: Determines the initial directional premise for the trading day. The bias is confirmed when the price breaks either the Pre-Market High (PMH) or the Pre-Market Low (PML).
• Technical Implementation: Involves the comparison of the close price against the predefined structural levels (check_h for PMH, check_l for PML). The variable active_bias is set to Bullish or Bearish upon confirmed breakout.
Trend Bar Coloring
• Function: Applies a visual cue to the bars based on the established regime (Bullish=Cyan, Bearish=Red). This visual filter helps mitigate noise from counter-trend candles.
• Technical Implementation: The Pine Script barcolor() function is tied directly to the value of the determined active_bias.
2. VOLATILITY NORMALIZED SCORING ENGINE
The internal scoring mechanism accumulates points from multiple market factors to determine the strength and validity of a signal. The purpose is to apply a robust filtering mechanism before generating an entry.
The score accumulation logic is based on the following factors:
• Market Bias Alignment (+3 Points): Points are awarded for conformance with the determined active_bias (Bullish/Bearish).
• VWAP Alignment (+2 Points): Assesses the position of the current price relative to the Volume-Weighted Average Price (VWAP). Alignment suggests conformity with the average institutional transaction price.
• Volume Anomaly (+2 Points): Detects a price move accompanied by an abnormally high relative volume (odd_vol_spike). This suggests potential institutional participation or significant order flow.
• VIX Integration (+2 Points): A score derived from the CBOE VIX index, assessing overall market stability and stress. Stable VIX levels add points, while high VIX levels (stress regimes) remove points or prevent signal generation entirely.
• ML Probability Score (+3 Points): This is the core predictive engine. It utilizes a Log-Manhattan Distance Kernel to compare the current market state against historical volatility patterns. The script implements a Log-linear distance formula (log(1 + |Δ|) ). This approach mathematically dampens the impact of extreme volatility spikes (outliers), ensuring that the similarity score reflects true structural alignment rather than transient market noise.
Core Technical Logic (Z-Score Normalization)
float cur_rsi_norm = d_rsi_std != 0 ? (raw_rsi - d_rsi_mean) / d_rsi_std : 0.0
• Technical Purpose: This line calculates the Z-Score (cur_rsi_norm) of the current momentum oscillator reading (raw_rsi) by normalizing it against the mean (d_rsi_mean) and standard deviation (d_rsi_std) derived from 252 days of Daily momentum data. If the standard deviation is zero (market is perfectly flat), it safely returns 0.0 to prevent division by zero runtime errors. This allows the AI's probability score to be based on the current signal's significance within the context of the entire trading year.
3. EXECUTION AND RISK MANAGEMENT (ATR MODEL)
The indicator utilizes the Average True Range (ATR) volatility model. This helps risk management scale dynamically with market volatility by allowing users to define TP/SL distances independently based on the current ATR.
Stop Loss Multiplier (sl_mult)
• Function: Sets the Stop Loss (SL) distance as a configurable multiple of the current ATR (e.g., 1.5 × ATR).
• Technical Logic: The price level is calculated as: last_sl_price := close - (atr_val * sl_mult). The mathematical sign is reversed for short trades.
Take Profit Multiplier (tp_mult)
• Function: Sets the Take Profit (TP) distance as a configurable multiple of the current ATR (e.g., 3.0 × ATR).
• Technical Logic: The price level is calculated as: last_tp_price := close + (atr_val * tp_mult). The mathematical sign is reversed for short trades.
Structural SL Option
• Function: Provides an override to the ATR-based SL calculation. When enabled, it forces the Stop Loss to the Pre-Market High/Low (PMH/PML) level, aligning the stop with a key institutional structural boundary.
• Technical Logic: The indicator checks the use_struct_sl input. If true, the calculated last_sl_price is overridden with either pm_h_val or pm_l_val, dependent on the specific trade direction.
Trend Continuation Logic
• Function: Enables signal generation in established, strong trends (typically in the Afternoon session) based on follow-through momentum (a new high/low of the previous bar) combined with a high Signal Score, rather than exclusively relying on the initial PMH/PML breakout.
• Technical Logic: For a long signal, the is_cont_long logic specifically requires checks like active_bias == s_bull AND close > high , confirming follow-through momentum within the established regime.
Smart Snapping & Cleanup (16:00 Market Close)
• Function: To maintain chart cleanliness, all trade boxes (TP/SL), AI Prediction zones, Killzone overlays (NY AM/PM), and Liquidity lines (PDH/PDL) are automatically "snapped" and cut off precisely at 16:00 NY Time (Market Close).
• Technical Logic: When is_market_close condition is met (hour == 16 and minute == 0), the script executes cleanup logic that:
◦ Closes active trades and evaluates final P&L
◦ Snaps all TP/SL box widths to current bar
◦ Truncates AI Prediction ghost boxes at market close
◦ Cuts off NY AM/PM Killzone background fills
◦ Terminates PDH/PDL line extensions
◦ Prevents visual clutter from extending into post-market sessions
4. LIQUIDITY AND STRUCTURAL ANALYSIS
The indicator plots key structural levels that serve as high-probability magnet zones or areas of potential liquidity absorption.
• Pre-Market High/Low (PMH/PML): These are the high and low established during the configured pre-market session (ny_pre_sess). They define the primary structural breakout level for the day, often serving as the initial market inflection point or the key entry level for the morning session.
• PDH (Previous Day High): The high of the calendar day immediately preceding the current bar. This represents a key Liquidity Pool; large orders are often placed above this level, making it a frequent target for stop hunts or liquidity absorption by market makers.
• PDL (Previous Day Low): The low of the calendar day immediately preceding the current bar. This also represents a key Liquidity Pool and a high-probability reversal or accumulation point, particularly during the Killzones.
FIFO Array Management
The indicator uses FIFO (First-In-First-Out) array structures to manage liquidity lines and labels, automatically deleting the oldest objects when the count exceeds 500 to comply with drawing object limits.
5. AI PREDICTION BOX (PREDICTIVE MODEL)
Function: Analyzes AI scores and volatility to project predicted killzone ranges and duration with asymmetric directional bias.
A. DIRECTIONAL BIAS (ASYMMETRIC EXPANSION)
The prediction model calculates directional probability using the ML kernel's 252-day Normalized RSI (Z-Score) and Relative Volume (RVOL). The prediction box dynamically adjusts its range based on this probability to provide immediate visual feedback on high-probability direction.
Bullish Scenario (ml_prob > 1.0):
• Upper Range: Expands significantly (1.5x multiplier) to show the aggressive upside target
• Lower Range: Tightens (0.5x multiplier) to show the invalidation level
• Visual Intent: The box is visibly skewed upward, immediately communicating bullish bias without requiring numerical analysis.
Bearish Scenario (ml_prob < -1.0):
• Upper Range: Tightens (0.5x multiplier) to show the invalidation level
• Lower Range: Expands significantly (1.5x multiplier) to show the aggressive downside target
• Visual Intent: The box is visibly skewed downward, immediately communicating bearish bias.
Neutral Scenario (-1.0 < ml_prob < 1.0):
Both ranges use balanced multipliers, creating a symmetrical box that indicates uncertainty.
B. DYNAMIC VOLATILITY BOOSTER (SESSION-BASED ADAPTATION)
The prediction box adjusts its volatility multiplier based on the current session and market conditions to account for intraday volatility patterns.
AM Session (Morning: 07:00-12:00):
• Base Multiplier: 1.0x (Neutral Base)
• Logic: Morning sessions often contain false breakouts and noise. The base multiplier starts neutral to avoid over-projecting during consolidation.
• Trend Booster: Multiplier jumps to 1.5x when:
Price > London Session Open AND AI is Bullish (ml_prob > 0), OR
Price < London Session Open AND AI is Bearish (ml_prob < 0)
• Logic: When the London trend (typically 03:00-08:00 NY time) aligns with the AI model's directional conviction, the indicator aggressively targets higher volatility expansion. This filters for "institutional follow-through" rather than random morning chop.
PM Session (Afternoon: 13:00-16:00):
• Fixed Multiplier: 1.8x
• Logic: The PM session, particularly the 13:30-16:00 ICT Silver Bullet window, often contains the "True Move" of the day. A higher baseline multiplier is applied to emphasize this session's significance over morning noise.
Safety Floor:
A minimum range of 0.2% of the current price is enforced regardless of volatility conditions.
• Purpose: Maintains the prediction box visibility during extreme low-volatility consolidation periods where ATR might collapse to near-zero values.
Volatility Clamp Protection:
Maximum volatility is capped at three times the current ATR value. During flash crashes, circuit breaker halts, or large overnight gaps, raw volatility calculations can spike to extreme levels. This clamp prevents prediction boxes from expanding to unrealistic widths.
Technical Implementation:
f_get_ai_multipliers(float _prob) =>
float _abs_prob = math.abs(_prob)
float _range_mult = 1.0
float _dur_mult = 1.0
if _abs_prob > 30
_range_mult := 1.8
else if _abs_prob > 10
_range_mult := 1.2
else
_range_mult := 0.7
C. PRACTICAL INTERPRETATION
• Wide Upper Range + Tight Lower Range: Strong bullish conviction. The model expects significant upside with limited downside risk.
• Tight Upper Range + Wide Lower Range: Strong bearish conviction. The model expects significant downside with limited upside.
• Symmetrical Range: Neutral/uncertain market. Wait for directional confirmation before entry.
• Large Box (Extended Duration): High-confidence prediction expecting sustained movement.
• Small Box (Short Duration): Low-confidence or choppy conditions. Expect quick resolution.
III. PRACTICAL USAGE GUIDE: METHODOLOGY AND EXECUTION
A. ESTABLISHING TRADING CONTEXT (THE THREE CHECKS)
The primary goal of the dashboard is to filter out low-probability trade setups before they occur.
• Timeframe Selection: Although the core AI is normalized to the Daily context, the indicator performs optimally on intraday timeframes (e.g., 5m, 15m) where session-based volatility is most pronounced.
• PHASE Check (Timing): Always confirm the current phase. The highest probability signals typically occur within the visually highlighted NY AM/PM Killzones because this is when institutional liquidity and volume are at their peak. Signals outside these zones should be treated with skepticism.
• MARKET REGIME Check (Bias): Ensure the signal (BUY/SELL arrow) aligns with the established MARKET REGIME bias (BULLISH/BEARISH). Counter-bias signals are technically allowed if the score is high, but they represent a higher risk trade.
• VIX REGIME Check (Risk): Review the VIX REGIME for overall market stress. Periods marked DANGER (high VIX) indicate elevated volatility and market uncertainty. During DANGER regimes, reducing position size or choosing a wider SL Multiplier is advisable.
B. DASHBOARD INTERPRETATION (THE REAL-TIME STATUS DISPLAY)
The indicator features a non-intrusive dashboard that provides real-time, context-aware information based on the core analytical engines.
PHASE: (PRE-MARKET, NY-AM, LUNCH, NY-PM)
• Meaning: Indicates the current institutional session time. This is derived from the customizable session inputs.
• Interpretation: Signals generated during NY-AM or NY-PM (Killzones) are generally considered higher-probability due to increased institutional participation and liquidity.
MARKET REGIME: (BULLISH, BEARISH, NEUTRAL)
• Meaning: The established directional bias for the trading day, confirmed by the price breaking above the Pre-Market High (PMH) or below the Pre-Market Low (PML).
• Interpretation: Trading with the established regime (e.g., taking a BUY signal when the regime is BULLISH) is the primary method. NEUTRAL indicates that the PMH/PML boundary has not yet been broken, suggesting market ambiguity.
VIX REGIME: (STABLE, DANGER)
• Meaning: A measure of overall market stress and stability, based on the CBOE VIX index integration. The thresholds (20.0 and 35.0 default) are customizable by the user.
• Interpretation: STABLE indicates stable volatility, favoring momentum trades. DANGER (VIX > 35.0) indicates extreme stress; signals generated in this environment require caution and often necessitate smaller position sizing.
SIGNAL SCORE: (0 to 10+ Points)
• Meaning: The accumulated score derived from the VOLATILITY NORMALIZED AI SCORING ENGINE, factoring in bias, VWAP alignment, volume, and the Z-Score probability.
• Interpretation: The indicator generates a signal when this score meets or exceeds the Minimum Entry Score (default 3). A higher score (e.g., 7+) indicates greater statistical confluence and a stronger potential entry.
AI PROBABILITY: (Bull/Bear %)
• Meaning: Directional probability derived from the ML kernel, expressed as a percentage with Bull/Bear label.
• Interpretation: Higher absolute values (>20%) indicate stronger directional conviction from the ML model.
LIVE METRICS SECTION:
• STATUS: Shows current trade state (LONG, SHORT, or INACTIVE)
• ENTRY: Displays the entry price for active trades
• TARGET: Shows the calculated Take Profit level
• ROI | KILL ZONE:
◦ For Active Trades: Displays real-time P&L percentage during NY session hours.
◦ At Market Close (16:00 NY): Since this is a NY session-specific indicator, any active position is automatically evaluated and closed at 16:00. The final result (VALIDATED or INVALIDATED) is determined based on whether the trade reached profit or loss at market close.
◦ Result Persistence: The killzone result (VALIDATED/INVALIDATED) remains displayed on the dashboard until the next NY AM KILLZONE session begins, providing a clear performance reference for the previous trading day.
Note: If a trade is still trending at 16:00, it will be force-closed and evaluated at that moment, as the indicator operates strictly within NY trading hours.
C. SIGNAL GENERATION AND ENTRY LOGIC
The indicator generates signals based on two distinct technical setups, both of which require the accumulated SIGNAL SCORE to be above the configured Minimum Entry Score.
Breakout Entry
• Trigger Condition: Price closes beyond the Pre-Market High (PMH) or Low (PML).
• Rationale: This setup targets the initial directional movement for the day. A breakout confirms the institutional bias by decisively breaking the first major structural boundary, making the signal high-probability.
Continuation Entry
• Trigger Condition: The market is already in an established regime (e.g., BULLISH), and the price closes above the high (or below the low) of the previous bar, while the SIGNAL SCORE remains high. Requires the Allow Trend Continuation parameter to be active.
• Rationale: This setup targets follow-through trades, typically in the afternoon session, capturing momentum after the morning's direction has been confirmed. This filters for sustainability in the established trend.
Execution: Execute the trade immediately upon the close of the bar that prints the BUY or SELL signal arrow.
D. MANAGING RISK AND EXITS
1. RISK PARAMETER SELECTION
The indicator immediately draws the dynamic TP/SL zones upon entry.
• Volatility-Based (Recommended Default): By setting the SL Multiplier (e.g., 1.5) and the TP Multiplier (e.g., 3.0), the indicator enforces a constant, dynamically sized risk-to-reward ratio (e.g., 1:2 in this example). This helps that risk management scales proportionally with the current market volatility (ATR).
• Structural Override: Selecting the Use Structural SL parameter fixes the stop-loss not to the ATR calculation, but to the more significant structural level of the PMH or PML. This is utilized by traders who favor institutional entry rules where the stop is placed behind the liquidity boundary.
2. EXIT METHODS
• Hard Exit: Price hits the visual TP or SL box boundary.
• Soft Exit (Momentum Decay Filter): If the trade is active and the SIGNAL SCORE drops below the Exit Score Threshold (default 3), it indicates that the momentum supporting the trade has significantly collapsed. This serves as a momentum decay filter, prompting the user to consider a manual early exit even if the SL/TP levels have not been hit, thereby preserving capital during low-momentum consolidation.
• Market Close Auto-Exit: At 16:00 NY time, any active trade is automatically closed and classified as VALIDATED (profit) or INVALIDATED (loss) based on current price vs. entry price.
IV. PARAMETER REFERENCE AND CONFIGURATION
A. GLOBAL SETTINGS
• Language (String, Default: English): Selects the language for the dashboard and notification text. Options: English, Korean, Chinese, Spanish, Portuguese, Russian, Ukrainian, Vietnamese.
B. SESSION TIMES (3 BOX SYSTEM)
• PRE-MARKET (Session, Default: 0800-0930): Defines the session range used for Pre-Market High/Low (PMH/PML) structural calculation.
• REGULAR (Morning) (Session, Default: 0930-1200): Defines the core Morning trading session.
• AFTERNOON (PM) (Session, Default: 1300-1600): Defines the main Afternoon trading session.
• Timezone (String, Default: America/New_York): Sets the timezone for all session and time-based calculations.
C. NY KILLZONES (OVERLAYS)
• Show NY Killzones (Bool, Default: True): Toggles the translucent background fills that highlight high-probability trading times (Killzones).
• NY AM Killzone (Session, Default: 0700-1000): Defines the specific time window for the first key liquidity surge (Open overlap).
• NY PM Killzone (Session, Default: 1330-1600): Defines the afternoon liquidity window, aligned with the ICT Silver Bullet and PM Trend entry timing.
• Allow Entry in Killzones (Bool, Default: True): Enables or disables signal generation specifically during the defined Killzone hours.
• Activate AI Prediction Box (Bool, Default: True): Toggles the drawing of the predicted target range boxes on the chart.
D. CORE SCORING ENGINE
• Minimum Entry Score (Int, Default: 3): The lowest accumulated score required for a Buy/Sell signal to be generated and plotted.
• Allow Trend Continuation (Bool, Default: True): Enables the secondary entry logic that fires signals based on momentum in an established trend.
• Force Ignore Volume (Bool, Default: False): Overrides the volume checks in the scoring engine. Useful for markets where volume data is unreliable or nonexistent.
• Force Show Signals (Ignore Score) (Bool, Default: False): Debug mode that displays all signals regardless of score threshold.
• Integrate CBOE:VIX (Bool, Default: True): Enables the connection to the VIX index for market stress assessment.
• Stable VIX (<) (Float, Default: 20.0): VIX level below which market stress is considered low (increases score).
• Stress VIX (>) (Float, Default: 35.0): VIX level above which market stress is considered high (decreases score/flags DANGER).
• Use ML Probability (Bool, Default: True): Activates the volatility-normalized AI Z-Score kernel. Disabling this removes the cross-timeframe normalization filter.
• Max Learning History (Int, Default: 2000): Maximum number of bars stored in the ML training arrays.
• Normalization Lookback (252 Days) (Int, Default: 252): The number of DAILY bars used to calculate the Z-Score mean and standard deviation (representing approximately 1 year of data).
E. RISK MANAGEMENT (ATR MODEL)
• Use Structural SL (Bool, Default: False): Overrides the ATR-based Stop Loss distance to use the Pre-Market High/Low as the fixed stop level.
• Stop Loss Multiplier (x ATR) (Float, Default: 1.5): Defines the Stop Loss distance in multiples of the current Average True Range (ATR).
• Take Profit Multiplier (x ATR) (Float, Default: 3.0): Defines the Take Profit distance in multiples of the current Average True Range (ATR).
• Exit Score Threshold (<) (Int, Default: 3): The minimum score below which an active trade is flagged for a Soft Exit due to momentum collapse.
F. VISUAL SETTINGS
• Show Dashboard (Bool, Default: True): Toggles the real-time data panel.
• Show NY Killzones (Bool, Default: True): Toggles killzone background fills.
• Show TP/SL Zones (Bool, Default: True): Toggles the drawing of Take Profit and Stop Loss boxes.
• Show Pre-Market Extensions (Bool, Default: True): Extends PM High/Low lines across the entire chart for support/resistance reference.
• Activate AI Prediction Box (Bool, Default: True): Enable or disable the predictive range projection.
• Light Mode Optimization (Bool, Default: True): Toggles dashboard and plot colors for optimal visibility on white (light) chart backgrounds.
• Enforce Trend Coloring (Bool, Default: True): Forces candle colors based on Market Regime (Bullish=Cyan, Bearish=Pink) to emphasize trend direction.
• Label Size (String, Default: Normal): Options: Tiny, Small, Normal.
G. LIQUIDITY POOLS (PDH/PDL)
• Show Liquidity Lines (Bool, Default: True): Toggles the display of the Previous Day High (PDH) and Low (PDL) lines.
• Liquidity High Color (Color, Default: Green): Color setting for the PDH line.
• Liquidity Low Color (Color, Default: Red): Color setting for the PDL line.
🔔 ALERT CONFIGURATION GUIDE
The indicator is equipped with specific alert conditions.
How to Set Up an Alert:
Click the "Alert" (Clock icon) in the top TradingView toolbar.
Select "Market Regime NY Session " from the Condition dropdown menu.
Choose one of the specific trigger conditions below depending on your strategy:
🚀 Available Alert Conditions
1. BUY (Long Entry)
Trigger: Fires immediately when a confirmed Bullish Setup is detected.
Conditions: Market Bias is Bullish (or valid Continuation) + Signal Score ≥ Minimum Entry Score.
Usage: Use this alert to open new Long positions or close existing Short positions.
2. SELL (Short Entry)
Trigger: Fires immediately when a confirmed Bearish Setup is detected.
Conditions: Market Bias is Bearish (or valid Continuation) + Signal Score ≥ Minimum Entry Score.
Usage: Use this alert to open new Short positions or close existing Long positions.
V. IMPORTANT TECHNICAL LIMITATIONS
⚠️ Intraday Only (Timeframe Compatibility)
This indicator is strictly designed for Intraday Timeframes (1m to 4h).
Daily/Weekly Charts: The session logic (e.g., "09:30-16:00") cannot function on Daily bars because a single bar encompasses the entire session. Session boxes, TP/SL zones, and AI prediction boxes will NOT draw on the Daily timeframe. Only the PDH/PDL liquidity lines remain visible on Daily charts. This is expected behavior, not a limitation.
Maximum Supported Timeframe: All visual components (session boxes, killzone overlays, TP/SL zones, AI prediction boxes) are displayed up to the 4-hour timeframe. Above this timeframe, only PDH/PDL lines and the dashboard remain functional.
⚠️ Drawing Object Limit (Max 500)
A single script can display a maximum of 500 drawing objects (boxes/lines) simultaneously.
On lower timeframes (e.g., 1-minute), where many signals and session boxes are generated, older history (typically beyond 10-14 days) will automatically disappear to make room for new real-time data.
For deeper historical backtesting visualization, switch to higher timeframes (e.g., 15m, 1h).
The indicator implements FIFO array management to comply with this limit while maintaining the most recent and relevant visual data.
VI. PRACTICAL TRADING TIPS AND BEST PRACTICES
• Killzone Confirmation: The highest statistical validity is observed when a high-score signal occurs directly within a visible NY AM/PM Killzone. Use the Killzones as a strict time filter.
• Liquidity Awareness (PDH/PDL): Treat the Previous Day High (PDH) and Low (PDL) lines as magnets. If your dynamic Take Profit (TP) is placed just above PDH, consider adjusting your target slightly below PDH or utilizing the Soft Exit, as liquidity absorption at these levels often results in sudden, sharp reversals that stop out a trade just before the target is reached.
• VIX as a Position Sizer: During DANGER VIX regimes, the resulting high volatility means the ATR value will be large. It is prudent to either reduce the SL Multiplier or, more commonly, reduce the overall position size to maintain a constant currency risk exposure per trade.
• Continuation Filter Timing: Trend Continuation signals are most effective during the Afternoon (PM) session when the morning's directional breakout has had time to establish a strong, clear, and sustainable trend. Avoid using them in the initial AM session when the direction is still being contested.
• 16:00 Market Close Rule: All trades, boxes, and lines are automatically cleaned up at 16:00 NY time. This prevents overnight chart clutter and maintains visual clarity.
VII. DISCLAIMER & RISK WARNINGS
• Educational Purpose Only
This indicator, including all associated code, documentation, and visual outputs, is provided strictly for educational and informational purposes. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments.
• No Guarantee of Performance
Past performance is not indicative of future results. All metrics displayed on the dashboard (including "ROI" and trade results) are theoretical calculations based on historical data. These figures do not account for real-world trading factors such as slippage, liquidity gaps, spread costs, or broker commissions.
• High-Risk Warning
Trading cryptocurrencies, futures, and leveraged financial products involves a substantial risk of loss. The use of leverage can amplify both gains and losses. Users acknowledge that they are solely responsible for their trading decisions and should conduct independent due diligence before executing any trades.
• Software Limitations
The software is provided "as is" without warranty. Users should be aware that market data feeds on analysis platforms may experience latency or outages, which can affect signal generation accuracy.
Daytrading Suite v6.4: Neon TPO + FVG + IB Lines (Stable)Here is the complete **Trading Manual & Strategy Guide** for the **Master Daytrading Suite (Neon + IB Edition)**.
This guide explains exactly **when** to trade and **how** to execute trades using the tools in the script.
---
# 📘 MASTER TRADING MANUAL (Neon + IB)
### 1. THE BASICS
* **Best Assets:** BTCUSDT & ETHUSDT (Futures).
* **Best Timeframe:** 5 Minutes (Entry) / 15 Minutes (Trend).
* **Key Session:** New York Session (High Volatility).
* **Golden Rule:** Never go **LONG** inside a Red Supply Zone. Never go **SHORT** inside a Green Demand Zone.
---
### 2. THE INDICATORS (Legend)
| Indicator | Color | Function | How to use |
| --- | --- | --- | --- |
| **Supply Zone** | 🟥 **Red Box** | Resistance | Look for Short setups here. |
| **Demand Zone** | 🟩 **Green Box** | Support | Look for Long setups here. |
| **Golden Pocket** | 🟧 **Orange** | Retracement | The "Sweet Spot" for trend entries (Fib 0.618). |
| **VWAP** | 🔵 **Blue Line** | Trend Anchor | Price > VWAP = Bullish. Price < VWAP = Bearish. |
| **Initial Balance (IB)** | 🟨 **Yellow Box** | Opening Range | Breakout above = Bullish. Breakdown below = Bearish. |
| **FVG (Gap)** | 🟩/🟥 **Tiny Box** | Trigger | **Green FVG** = Entry Signal for Longs. **Red FVG** = Entry Signal for Shorts. |
---
### 3. STRATEGY A: The Trend Pullback (High Win Rate)
*Use this when the market is trending smoothly.*
#### ✅ HOW TO ENTER A LONG (BUY) POSITION
1. **Trend Check:** Price is trading **ABOVE** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to drop back down (pullback).
3. **The Zone:** Price touches the **Green Demand Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Green FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Long. Stop Loss below the recent low. Take Profit at the next Red Zone.
#### 🔻 HOW TO ENTER A SHORT (SELL) POSITION
1. **Trend Check:** Price is trading **BELOW** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to rally up (pullback).
3. **The Zone:** Price touches the **Red Supply Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Red FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Short. Stop Loss above the recent high. Take Profit at the next Green Zone.
---
### 4. STRATEGY B: The IB Breakout (Volatility)
*Use this specifically after the first hour of the New York Session (approx. 10:30 NY time).*
* **The Setup:** Look at the **Yellow Box (Initial Balance)** which marks the high/low of the first hour.
* **Bullish Breakout:** If a candle closes **above** the Yellow Box + Price is above VWAP → **Go Long**.
* **Bearish Breakdown:** If a candle closes **below** the Yellow Box + Price is below VWAP → **Go Short**.
* **The Trap (Fakeout):** If price breaks out but immediately falls back inside the Yellow Box, close the trade immediately.
---
### 5. DAILY ROUTINE (Checklist)
1. **Open TradingView:** Switch to the **15m Chart**.
2. **Check Context:** Where are we? Are we near a big Red Box (Supply) or Green Box (Demand)?
3. **Check Trend:** Is price above or below the Blue VWAP line?
4. **Wait for the Open:** Let the first hour of New York pass (to form the Yellow IB Box).
5. **Set Alerts:** Right-click the chart and set alerts for "IB Breakout" or "Golden Pocket".
6. **Execute:** Switch to the **5m Chart** to find your entry trigger (FVG).
---
### 6. RISK MANAGEMENT RULES
* **Stop Loss:** NEVER trade without one. Place it just outside the FVG box or the Zone.
* **Risk per Trade:** 1% to 2% of your account maximum.
* **No Trade Zone:** If the price is "chopping" (moving sideways) inside the Yellow IB Box, **do not trade**. Wait for a breakout.
Volume Level Monitor table Volume Level Monitor table and NQ/ES Futures PRO system
Features:
1. Volume Monitor Table (Top Left)
Level: Shows HIGH/MEDIUM/LOW with color coding
RED = High volume (≥150% of MA)
YELLOW = Medium volume
BLUE = Low volume (≤70% of MA)
vs MA: Current volume as percentage of moving average
Volume: Real-time volume display
MA: 20-period volume moving average
2. Enhanced Volume Calculations
Volume percentage relative to MA
CVD (Cumulative Volume Delta) calculation
Volume level classification with thresholds
4. Additional Volume Alerts
Alert when volume reaches HIGH threshold
Alert when volume drops to LOW threshold
5. Display Control
New toggle: "Show Volume Monitor Table" in Display settings
Can be turned on/off independently
How to Use:
Volume Monitor helps you:
HIGH Volume (Red): Confirms breakouts, strong moves, potential reversals
LOW Volume (Blue): Avoid choppy periods, wait for confirmation
MEDIUM Volume (Yellow): Normal trading conditions
Best Practice:
Combine Volume Monitor with main dashboard signals
Look for HIGH volume on entry signals for best confirmation
Avoid trading during LOW volume periods (reduces false signals)
The two tables work together: Main dashboard for trade signals, Volume Monitor for volume context!
The SHIFT - Signal Harmonic Inflection Flow Tracker🔄 THE SHIFT — SIGNAL HARMONIC INFLECTION FLOW TRACKER
Precision reversal detection at the exact moment price shifts direction.
📐 CORE CONCEPT: THE INFLECTION POINT
Every sustained price move begins with a single moment — the instant price crosses from one phase to another. THE SHIFT captures this exact inflection point by combining two essential confirmations:
1. The Phase Cross
Price crossing the EMA ribbon midpoint represents a structural change in market bias. The ribbon midpoint is calculated as the average of EMA 21 and EMA 55, creating a dynamic equilibrium zone. When price decisively crosses this level, it signals a potential phase transition.
2. The Confirming Wick
Not every ribbon cross leads to continuation. THE SHIFT filters for quality by requiring the crossing candle to show directional commitment through its wick structure:
✓ Bullish SHIFT: Lower wick ≥ 25% of bar range (buyers absorbed selling pressure)
✓ Bearish SHIFT: Upper wick ≥ 25% of bar range (sellers absorbed buying pressure)
This dual confirmation eliminates weak crosses that occur during sideways chop.
⚙️ HOW IT WORKS
The EMA Ribbon
Five exponential moving averages (8, 13, 21, 34, 55) form an adaptive ribbon that expands during trends and contracts during consolidation. The ribbon serves multiple purposes:
✓ Visual trend identification through color gradient
✓ Dynamic support/resistance zones
✓ Phase boundary definition via ribbon midpoint
Phase Detection
The indicator tracks three distinct market phases:
✓ VELOCITY BULLISH — Price confirmed above ribbon midpoint
✓ VELOCITY BEARISH — Price confirmed below ribbon midpoint
✓ EQUILIBRIUM — Price oscillating around midpoint without confirmation
Phase confirmation requires price to remain on one side of the ribbon for a user-defined number of bars (default: 2), preventing false signals from single-bar noise.
Market Pressure Index (MPI)
MPI quantifies the balance between buying and selling pressure within each bar by analyzing where price closes relative to its range, weighted by volume. This provides momentum context for phase transitions:
✓ Positive MPI confirms bullish pressure
✓ Negative MPI confirms bearish pressure
✓ Strong readings (above threshold) indicate conviction
Consensus Grading System
Each SHIFT signal receives a quality grade (A+, A, B, C) based on five factors:
✓ Phase Strength — EMA alignment plus MPI strength
✓ Trend Alignment — All EMAs properly stacked
✓ Volume Confirmation — Above-average participation
✓ Momentum Convergence — MPI confirms direction
✓ Structure Respect — Price at value area
Higher grades indicate stronger confluence and potentially higher-probability setups.
📊 VISUAL SYSTEM
SHIFT Labels
✓ ▲ SHIFT — Bullish phase flip detected
✓ ▼ SHIFT — Bearish phase flip detected
Labels appear at the exact bar where the phase transition occurs.
Entry Zones
When a qualified SHIFT fires, a colored box appears showing:
✓ Entry zone boundaries
✓ Signal direction (LONG/SHORT)
✓ Wick percentage that triggered the signal
✓ Quality grade
Dynamic Trade Management
THE SHIFT tracks three profit targets (T1, T2, T3) and stop levels with intelligent visual feedback:
✓ Target Lines — Display as dashed lines during active trade
✓ Target Hit — Line turns GREEN with "✓ T1/T2/T3" label
✓ Target Fade — Hit targets progressively fade and disappear after user-defined bars
✓ Stop Hit — Line turns RED with "❌ STOPPED OUT" label
This visual system keeps your chart clean while providing clear feedback on trade progress.
Background Shading
Subtle background color indicates current phase:
✓ Green tint — Bullish phase
✓ Red tint — Bearish phase
✓ Yellow tint — Equilibrium
🧠 SHIFT ASSISTANT — INTELLIGENT COACHING PANEL
The SHIFT Assistant provides real-time contextual guidance that adapts to market conditions:
MARKET READ
Current market assessment:
✓ "💪 Strong bullish trend in play"
✓ "📈 Bullish momentum building"
✓ "🔥 Compression detected - breakout imminent"
✓ "⚖️ Equilibrium - wait for SHIFT"
ACTION
Specific guidance for current situation:
✓ "🟢 SHIFT LONG - Wick confirmed buyers"
✓ "📊 Halfway to T1 - Hold with conviction"
✓ "✅ T1 Hit - Consider partials, move stop to entry"
✓ "👀 Bullish shift but weak wick - skip"
✓ "⏸️ No setup - Patience pays"
CAUTION
Risk warnings when applicable:
✓ "⚠️ Bearish divergence forming - caution on new longs"
✓ "🌊 Volatility expanding - widen mental stops"
INSIGHT
Additional observations:
✓ "✨ Perfect bullish SHIFT setup"
✓ "📊 EMAs fully stacked - trend mature"
✓ "💎 Grade A+ conditions"
TRADE STATUS
When in an active trade:
✓ Current P&L percentage
✓ Bars in trade
✓ Risk buffer remaining (ATR to stop)
📋 MAIN DASHBOARD
The dashboard displays comprehensive real-time information:
Phase Status
✓ Current phase (Velocity Bullish/Bearish/Equilibrium)
✓ Phase strength (Strong/Moderate/Weak)
✓ MPI reading
Consensus Breakdown
✓ Visual progress bar showing consensus score
✓ Individual check status for all five factors
✓ Current quality grade
Wick & Shift Status
✓ Current wick type and percentage
✓ Whether a SHIFT is occurring on current bar
Three Laws Display
✓ Law 1: Direction (SHIFT BULL/BEAR or No Shift)
✓ Law 2: Confirmation (Wick Confirms or Weak Wick)
✓ Law 3: Quality (Grade passes filter or not)
All three laws must be satisfied for a signal to fire.
⚙️ INPUT PARAMETERS
SHIFT Core Engine
✓ MPI Period (14) — Lookback for Market Pressure Index calculation
✓ MPI Sensitivity (1.5) — Amplification factor for pressure readings
✓ Phase Confirmation Bars (2) — Bars required on one side of ribbon to confirm phase
✓ Strong Momentum Threshold (0.5) — MPI level considered "strong"
EMA Ribbon
✓ Show EMA Ribbon — Toggle ribbon visibility
✓ EMA Fast/2/Core/4/Slow (8/13/21/34/55) — Individual EMA periods
Signal Settings
✓ Show Signals — Toggle signal generation
✓ Minimum Signal Grade (B) — Filter signals below this quality threshold
✓ Min Wick Ratio (0.25) — Minimum wick size as percentage of bar range to confirm shift
✓ Show Entry Zones/Stops/Targets — Toggle visual elements
✓ Stop Loss ATR (1.5) — Stop distance in ATR multiples
✓ Zone Width (15) — How many bars entry zones extend forward
✓ Target Fade Duration (8) — Bars before hit targets disappear
Assistant & Dashboard
✓ Position and size options for both panels
✓ Independent show/hide toggles
Visual
✓ Customizable colors for bullish, bearish, neutral, target hit, and stop hit
✓ Background and label transparency controls
🎯 RECOMMENDED USAGE
Best Timeframes
✓ 5-minute to 1-hour for intraday trading
✓ 4-hour to Daily for swing trading
✓ Adjust Min Wick Ratio lower (0.20) on higher timeframes where wicks tend to be smaller
Best Markets
✓ Liquid instruments with clear trending behavior
✓ Futures, Forex, and large-cap equities
✓ Avoid during major news events when price action becomes erratic
Signal Filtering
✓ Grade A+ and A signals have highest confluence
✓ Grade B signals are acceptable with additional confirmation
✓ Grade C signals should generally be skipped
✓ Use the Assistant's ACTION guidance to understand why signals fire or don't fire
Trade Management
✓ T1 at 1× risk (1:1 R) — Consider taking partials
✓ T2 at 2× risk (2:1 R) — Move stop to breakeven
✓ T3 at 3× risk (3:1 R) — Full target, close remaining position
✓ Watch for phase invalidation (opposite SHIFT) as hard stop signal
🔔 ALERTS
THE SHIFT includes comprehensive alert conditions:
✓ SHIFT Long — Bullish entry signal
✓ SHIFT Short — Bearish entry signal
✓ T1/T2/T3 Hit — Target reached notifications
✓ Stopped Out — Stop level breached
✓ Shift Bullish/Bearish — Phase flip events (with or without trade signal)
Dynamic alerts include grade and wick percentage information for complete context.
📝 DEVELOPMENT NOTES
THE SHIFT emerged from extensive research into what makes reversal signals reliable versus unreliable. The key insight was that most failed reversals lack wick confirmation — the candle crosses a level but shows no evidence that the opposing force actually stepped in.
By requiring both the structural cross (price through ribbon midpoint) AND the wick confirmation (evidence of absorption), THE SHIFT filters out the low-quality signals that plague simpler crossover systems.
The intelligent Assistant panel was designed to function as a trading coach, helping traders understand not just WHEN to trade but WHY conditions are or aren't favorable. This educational component helps develop intuition over time.
⚠️ RISK DISCLAIMER
This indicator is a technical analysis tool designed to identify potential trading opportunities. It does not guarantee profits and should not be used as the sole basis for trading decisions.
Past performance of any trading system or methodology is not necessarily indicative of future results. Trading involves substantial risk of loss and is not suitable for all investors.
Always use proper risk management, position sizing appropriate to your account, and never risk more than you can afford to lose. Paper trade any new system extensively before committing real capital.
The developer makes no claims about win rates, profit factors, or expected returns. Your results will vary based on market conditions, timeframe selection, and execution.
🎯 SUMMARY
THE SHIFT provides a unified approach to reversal detection:
✓ Simple Logic — Phase cross + wick confirmation = signal
✓ Quality Grading — Consensus scoring filters for best setups
✓ Visual Clarity — Dynamic trade management keeps charts clean
✓ Intelligent Coaching — Assistant explains market conditions in real-time
✓ Complete System — Entry, targets, stops, and management in one indicator
One objective. One system. Catch the shift.
"The market speaks in inflection points. THE SHIFT translates."
Taking you to school. — Dskyz , Trade with insight. Trade with anticipation.
5 Layer Script P5 ICT Identifier Package (Sessions + Narrative)This script is a session-based market narrative framework designed to help traders understand where price is likely seeking liquidity and alignment, rather than focusing on isolated entries.
This script mainly identifies and labels the Asia, London, and New York trading sessions, providing structure for how price behavior evolves throughout the day. It is intended to be used as a context and timing tool.
How it works
-Automatically maps Asia, London, and New York sessions
-Highlights session ranges and transitions
-Helps visualize accumulation, expansion, and distribution phases
-No repainting once a session is completed
How to use it
-Use Asia to observe range formation and liquidity build-up
-Use London for expansion, manipulation, or early continuation
-Use New York for confirmation, continuation, or reversal (IMPORTANT)
-Align session behavior with:
Higher-timeframe bias
Midpoint equilibrium levels
Fair Value Gaps
Signal or Potential Reversal confirmations
Best practices
-Avoid treating sessions as directional signals
-Focus on session objectives, not candle patterns
-Most effective on futures, indices, and liquid FX pairs
-Works best when combined with higher-timeframe structure
This package is intentionally narrative-driven and non-mechanical, allowing traders to frame intraday price action within a repeatable session logic rather than reactive decision-making.
ADDITIONAL: If youve made it this far i will tell you a cheat code to this specific script. Once you alligned your standard time for the sessions you will notice that if you set the sessions to close properly i recommend asking Chatgpt or any other AI tool, you will notice that the sessions end a few hours earlier for NY. You should see a label pop up for the NY just like the Asia and London session. That signal will tell you the next potential move only if you utilize the ICT killzones cheatsheet, easy to find on google images and I will attach it here if possible. its definetly mixed up but thats just market structure, only one you should pay attention to take a trade is the end of the NY session if adjusted properly. over 90% success rate following this strategy. I will add the link for the full cheat sheet below
www.scribd.com
ICT Macros FuturesAll Macros Detected:
Early / Pre Market
- 02:33 – 03:10 (NY)
- 04:03 – 04:30
- 05:20 – 05:40
- 05:50 – 06:10
- 07:50 – 08:10
- 08:20 – 08:40
Cash Open / Morning
- 08:50 – 09:10
- 09:20 – 09:40
- 09:50 – 10:10
Midday / Lunch
- 10:50 – 11:10
- 11:50 – 12:10
- 12:00 – 13:30 (Lunch Hour)
Afternoon
- 13:10 – 13:40
- 14:20 – 14:40
- 15:15 – 15:45
- 15:50 – 16:10
ORB Breakout Strategy with VWAP and Volume FiltersOverview
This strategy implements the classic Opening Range Breakout (ORB) methodology, a well-documented approach in trading literature that has been used by institutional and retail traders for decades. The strategy identifies the high and low of the first 15 minutes of the trading session, then trades breakouts with defined risk management.
This implementation includes multiple customizable filters (VWAP, Volume, Candle Strength) that traders can enable, disable, and tune to find configurations that work for their specific markets and trading style.
How It Works
Opening Range Calculation
The strategy captures the high and low of the first N bars after the session open (default: 3 bars on a 5-minute chart = 15 minutes). These levels become the breakout triggers for the session.
Entry Logic
Long Entry: When a bar closes above the ORB High and all enabled filters pass
Short Entry: When a bar closes below the ORB Low and all enabled filters pass
Exit Logic
Take Profit: Configurable multiple of the ORB range (default: 1x = full range beyond breakout level)
Stop Loss: Opposite side of the ORB range
Breakeven: Optional stop adjustment to entry price when trade reaches configurable profit threshold
Session Close: All positions automatically closed at end of trading session
Configurable Filters
All filters can be independently enabled or disabled:
1. VWAP Filter
Requires price above/below session-anchored VWAP
Requires VWAP slope confirmation (configurable lookback and minimum slope)
Purpose: Align trades with intraday trend direction
2. Volume Filter
Requires minimum volume on the breakout bar
Purpose: Confirm institutional participation in the breakout
3. Candle Strength Filter
Requires close in upper/lower portion of the bar range
Purpose: Filter out weak breakouts with poor conviction
Strategy Properties
Initial Capital - $50.000USD
Position Size - 1 contract (fixed)
Commission - $4.00 per contract
Slippage - 2 ticks
Margin - 1%
Pyramiding - Disabled
Backtest Results (NQ)
Recent Performance (Jan 2025 - Jan 2026)
Total Trades - 243
Win Rate - 39.09%
Profit Factor - 1.03
Net P&L - $3,581 (+7.16%)
Max Drawdown - $25,447 (39.96%)
Long-Term Performance (2010 - 2026)
Total Trades - 1699
Win Rate - 37.61%
Profit Factor - 0.756
Net P&L - ($49,632) (-99.26%)
Max Drawdown - $50,262 (99.27%)
Important: Long-term results show negative expectancy with default settings. This strategy is published as a research framework, not a ready-to-trade system. Users are encouraged to experiment with different configurations to find their edge.
Settings Guide
Main Settings
ORB Bars: Number of bars for opening range (3 = 15 min on 5-min chart)
Trading Session: Time window for trading (e.g., 0930-1200 for morning only)
Timezone: Your market's timezone
Take Profit: Multiple of ORB range for target
Breakeven Trigger: Distance to move stop to entry
Max Trades Per Day: Daily trade limit
VWAP Filter
Use VWAP Filter: Enable/disable
VWAP Slope Lookback: Bars to measure VWAP direction
Min VWAP Slope: Minimum slope threshold
Volume Filter
Use Volume Filter: Enable/disable
Min Breakout
Volume: Minimum contracts required
Candle Strength Filter
Use Candle Strength Filter: Enable/disable
Min Candle Strength: Required close position (0.7 = top/bottom 30%)
Research Suggestions
This strategy provides a foundation for exploring ORB-based approaches. Consider testing:
Different ORB periods: 5, 10, 15, or 30 minutes
Session variations: Morning only (0930-1200), afternoon, or full day
Direction bias: Long-only or short-only based on daily trend
Filter combinations: Different mixes of VWAP, volume, and candle filters
Take profit ratios: 0.5x, 1x, 1.5x, or 2x ORB range
Market regimes: Performance may vary in trending vs ranging markets
Different instruments: Test on ES, NQ, MNQ, or other futures
Visual Elements
Orange Background: ORB forming period
Green Background: Active trading session
Green Line: ORB High level
Red Line: ORB Low level
VWAP Line: Green = upslope, Red = downslope, Gray = flat
White Line: Trade entry price
Lime Line: Take profit level
Red Line: Stop loss level
Orange Line: Breakeven trigger level
Blue Background: Breakeven activated
Triangles: Entry signals (only appear when trade executes)
Limitations
Negative long-term expectancy: Default settings do not produce profitable results over extended periods
Parameter sensitivity: Results highly dependent on filter settings and market conditions
Market regime dependent: May perform differently in trending vs choppy markets
Commission impact: Frequent trading accumulates significant transaction costs
Curve fitting risk: Optimized settings may not persist in future markets
Disclaimer
This strategy is provided for educational and research purposes only. It does not constitute financial advice.
Past performance does not guarantee future results
Backtested results may not reflect actual trading conditions
The long-term backtest shows significant negative returns
Always paper trade before risking real capital
Never risk more than you can afford to lose
Conduct your own research and due diligence
This is a research framework designed for traders to explore and customize, not a plug-and-play trading system.
Liquidation Map [Alpha Extract]A sophisticated liquidity distribution visualization system that identifies potential liquidation zones through pivot-based detection and renders them as an interactive histogram with cumulative distance-to-liquidation curves. Utilizing multi-exchange volume aggregation and ATR-scaled pocket detection, this indicator delivers institutional-grade liquidity mapping with real-time histogram display showing relative concentration of long and short liquidation levels across configurable price ranges. The system's box-based rendering architecture combined with cumulative distribution overlays provides comprehensive visual assessment of asymmetric liquidity positioning for strategic trade planning.
🔶 Advanced Multi-Exchange Aggregation Framework
Implements intelligent ticker detection and multi-source volume aggregation across major exchanges including Binance, Bybit, KuCoin, OKX, and MEXC for accurate liquidity weight calculations. The system automatically identifies base currency (BTC, ETH, SOL) from chart ticker, retrieves volume data from matching perpetual contracts across multiple venues, and aggregates into composite volume metric for enhanced pocket weighting accuracy.
🔶 Pivot-Based Liquidation Pocket Detection
Features sophisticated swing point identification using configurable pivot width with ATR-scaled vertical zone construction for volatility-adaptive pocket sizing. The system detects pivot highs for short liquidation zones (placed above swing) and pivot lows for long liquidation zones (placed below swing), applying 200-period ATR with percentage multipliers to determine pocket heights that adjust to market volatility conditions.
🔶 Interactive Histogram Visualization Engine
Provides real-time box-based histogram rendering in indicator pane with configurable bin counts (up to 400 columns) and adjustable height, displaying liquidity concentration across fixed percentage range above and below current price. The system calculates bin sizes from view range, accumulates pocket weights into price bins, and renders vertical bars with gradient color intensity reflecting relative liquidity concentration at each price level.
🔶 Cumulative Distance Overlay System
Implements innovative cumulative distribution curves showing aggregate liquidity distance from current price for both long (left) and short (right) positions. The system calculates running totals of pocket weights from current price outward in both directions, normalizes against maximum span, and overlays line segments showing how much total liquidity exists at various distances, enabling instant assessment of liquidation cascade potential.
🔶 Dynamic Price Range Adaptation
Features fixed percentage-based view window that maintains consistent price range visualization across all timeframes and instruments, automatically centering histogram on current price with configurable +/- percentage bounds. The system recalculates histogram bins and pocket distributions on each bar close, ensuring visualization adapts to price movement while maintaining interpretable scale regardless of volatility regime.
🔶 Touch Detection and Weight Adjustment
Provides intelligent pocket state tracking that identifies when price trades through liquidation zones and applies configurable weight multipliers to touched pockets for historical context. The system monitors price interaction with pocket midpoints, marks pockets as "hit" when violated, and optionally increases their visual weight (default 5x) to emphasize historical liquidation levels while distinguishing from untouched future zones.
🔶 Gradient Intensity Color System
Implements sophisticated color gradient engine that modulates bar opacity from transparent to opaque based on relative liquidity concentration within each bin. The system normalizes bin values against maximum liquidity, applies color interpolation from faded to vivid hues, and distinguishes long liquidation zones (cyan) from short liquidation zones (yellow/gold) with current price column highlighted in red for instant orientation.
🔶 Performance-Optimized Rendering Architecture
Utilizes efficient box and line object management with dynamic allocation based on histogram configuration, implementing intelligent cleanup and reuse to maintain smooth performance. The system includes adaptive line budget calculations that adjust segment density for cumulative curves based on available object limits, ensuring consistent operation even with maximum histogram resolution settings.
🔶 Asymmetric Distribution Analysis
Calculates separate cumulative distributions for long and short liquidation zones split at current price, enabling identification of imbalanced liquidity positioning. The system normalizes distributions against respective maximums and overlays both curves on single histogram, allowing traders to instantly assess whether more liquidation risk exists above (shorts vulnerable) or below (longs vulnerable) current price levels.
🔶 Configurable Label and Scale System
Provides price axis labeling with adjustable frequency to reduce clutter while maintaining reference points, displaying price values at regular column intervals with configurable offset positioning. The system includes current price label showing exact value and percentile position within view range, offering both absolute price reference and relative positioning context for distribution interpretation.
🔶 Historical Pocket Persistence Framework
Maintains rolling window of liquidation pockets up to 3000 bars with automatic expiration management and optional preservation of touched zones for historical analysis. The system tracks pocket creation time, monitors age against lookback limits, and manages array cleanup to prevent memory overflow while retaining relevant historical liquidation levels for pattern recognition and support/resistance validation.
This indicator delivers sophisticated liquidity distribution analysis through histogram visualization and cumulative distance curves that reveal asymmetric positioning of potential liquidation levels. Unlike simple liquidation heatmaps that show absolute levels, the Liquidation Map's cumulative distribution overlays instantly communicate how much total liquidity exists at various distances from current price, enabling assessment of cascade potential. The system's multi-exchange volume aggregation, touch-weighted historical zones, and fixed-range visualization make it essential for traders seeking strategic positioning around institutional liquidity clusters in cryptocurrency futures markets. The histogram format enables instant identification of price levels where concentrated liquidations may trigger significant volatility or reversal events, while the asymmetric distribution curves reveal whether market structure favors upside or downside cascades.
Nexus Momentum Flow [JOAT]
Nexus Momentum Flow - ADX-Based Trend Strength Analysis
Introduction and Purpose
Nexus Momentum Flow is an open-source oscillator indicator that combines the ADX (Average Directional Index) with directional movement indicators (+DI/-DI) to create a comprehensive trend strength and direction analysis tool. The core problem this indicator solves is that ADX alone tells you trend strength but not direction, while +DI/-DI alone tells you direction but not strength. Traders need both pieces of information together.
This indicator addresses that by combining ADX strength classification with directional bias into a single confluence score, making it easy to identify when strong trends exist and which direction they favor.
Why These Components Work Together
1. ADX (Average Directional Index) - Measures trend strength regardless of direction. Values above 25 indicate trending; below 20 indicate ranging.
2. +DI (Positive Directional Indicator) - Measures upward price movement strength.
3. -DI (Negative Directional Indicator) - Measures downward price movement strength.
4. Confluence Score - Combines ADX strength with DI bias to create a single actionable metric.
The combination works because:
ADX filters out ranging markets where DI crossovers produce whipsaws
DI relationship provides direction when ADX confirms trend
Confluence score simplifies the analysis into one number
How the Calculation Works
float directionBias = diPlus - diMinus
float confluenceScore = (adx / 100) * directionBias
The confluence score is positive when +DI > -DI (bullish) and negative when -DI > +DI (bearish), with magnitude scaled by ADX strength.
Trend State Classification
EXTREME - ADX > 50 (very strong trend)
STRONG - ADX 35-50 (strong trend)
TRENDING - ADX 25-35 (moderate trend)
RANGING - ADX < 25 (no clear trend)
Dashboard Information
Status - Current trend state (EXTREME/STRONG/TRENDING/RANGING)
Direction - BULLISH or BEARISH based on DI relationship
ADX - Current ADX value
DI Bias - Difference between +DI and -DI
Confluence - Combined score with directional context
How to Use This Indicator
For Trend Following:
1. Wait for ADX to show TRENDING or higher
2. Check direction matches your trade bias
3. Enter on pullbacks when confluence remains positive/negative
4. Exit when ADX drops to RANGING
For Avoiding Whipsaws:
1. Do not trade DI crossovers when ADX shows RANGING
2. Only trust directional signals when ADX confirms trend
3. Use RANGING periods for mean-reversion strategies instead
For Trend Exhaustion:
1. Watch for EXTREME ADX readings
2. Extreme trends often precede reversals
3. Consider taking profits when ADX reaches extreme levels
Input Parameters
ADX Length (14) - Period for ADX calculation
DI Length (14) - Period for directional indicators
ADX Smoothing (14) - Smoothing period for ADX
Trend Threshold (25) - ADX level for trend confirmation
Strong Threshold (35) - ADX level for strong trend
Extreme Threshold (50) - ADX level for extreme trend
Timeframe Recommendations
Daily/4H: Best for swing trading trend analysis
1H: Good for intraday trend following
15m: More signals but requires faster reaction
Limitations
ADX is a lagging indicator - trends are confirmed after they start
DI crossovers can whipsaw even with ADX filter
Works best in markets that trend clearly
May miss early trend entries due to confirmation requirement
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Trend analysis does not guarantee profitable trades. Always use proper risk management.
- Made with passion by officialjackofalltrades
Fractal Wave Hunter [JOAT]
Fractal Wave Hunter - Multi-Method Fractal Detection System
Introduction and Purpose
Fractal Wave Hunter is an open-source overlay indicator that identifies key reversal patterns using multiple fractal detection methods. The core problem this indicator solves is that different fractal methods catch different types of reversals. Williams' classic 5-bar fractal is reliable but slow; Hougaard's 4-bar method is faster but noisier. Using only one method means missing valid signals that the other would catch.
This indicator addresses that by combining both methods plus HOLP/LOHP detection, giving traders a comprehensive view of potential reversal points.
Why These Methods Work Together
Each fractal method has different characteristics:
1. 4-Bar Fractal (Hougaard Method) - Faster detection, identifies momentum shifts when close exceeds recent highs/lows. Best for catching early reversals.
2. Classic 5-Bar Fractal (Williams) - Traditional pivot detection requiring the middle bar to be the highest/lowest of 5 bars. Best for identifying significant swing points.
3. HOLP/LOHP - High of Low Period and Low of High Period signals identify when price makes a new extreme within a defined lookback. Best for trend exhaustion detection.
By combining these methods, traders can:
Use 4-bar fractals for early entry signals
Use 5-bar fractals for confirmation and stop placement
Use HOLP/LOHP for trend exhaustion warnings
How the Detection Works
4-Bar Fractal (Hougaard):
bool fractal4BuyBase = close > high and close > high
bool fractal4SellBase = close < low and close < low
Classic 5-Bar Fractal:
bool fractalHigh = high > high and high > high and high > high and high > high
bool fractalLow = low < low and low < low and low < low and low < low
Signal Types
4B (4-Bar Buy) - Close exceeds high and high - early bullish signal
4S (4-Bar Sell) - Close below low and low - early bearish signal
FH (Fractal High) - Classic 5-bar swing high - confirmed resistance
FL (Fractal Low) - Classic 5-bar swing low - confirmed support
HOLP - High of low period - potential bullish exhaustion
LOHP - Low of high period - potential bearish exhaustion
Dashboard Information
4-Bar Fractal - Count of bullish/bearish 4-bar fractals
Classic Fractal - Count of 5-bar fractal highs/lows
HOLP/LOHP - Reversal signal counts
Total Signals - Combined pattern count
How to Use This Indicator
For Counter-Trend Entries:
1. Wait for 4-bar fractal signal at key support/resistance
2. Confirm with 5-bar fractal forming nearby
3. Enter with stop beyond the fractal point
For Stop Placement:
1. Use 5-bar fractal highs/lows as stop-loss references
2. These represent confirmed swing points that should hold if trend continues
For Trend Analysis:
1. Track swing structure using fractal highs and lows
2. Higher fractal lows = uptrend structure
3. Lower fractal highs = downtrend structure
Input Parameters
Show 4-Bar Fractals (true) - Toggle Hougaard method signals
Show Classic Fractals (true) - Toggle Williams method signals
Show HOLP/LOHP (true) - Toggle exhaustion signals
ATR Filter (false) - Only show signals during volatile conditions
Swing Lines (true) - Connect significant swing points
Timeframe Recommendations
1H-Daily: Best for reliable fractal detection
15m-30m: More signals but higher noise
Weekly: Fewer but more significant fractals
Limitations
5-bar fractals have inherent 2-bar lag (need confirmation)
4-bar fractals can produce false signals in choppy markets
HOLP/LOHP signals work best at trend extremes
Not all fractals lead to significant reversals
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Fractal detection does not guarantee reversals. Always use proper risk management.
- Made with passion by officialjackofalltrades
Stop Loss Hunting Zones This Pine Script indicator identifies and visualizes potential "stop loss hunting zones" on charts. It marks price levels where institutional traders or market makers might trigger retail stop losses before reversing direction, helping traders avoid false breakouts and better time their entries.
Key Features:
Four Types of Detection Zones-
1.Swing Zones (Red/Green): Identifies swing highs and lows using pivot point analysis where stop losses typically cluster above resistance and below support levels.
2.Breakout Zones (Orange): Detects consolidation periods and marks levels where false breakouts might occur, trapping traders who enter too early.
3.Wick Trap Zones (Purple): Highlights candles with disproportionately large wicks relative to body size, indicating potential stop loss raids with quick reversals.
4.Volume Reversal Zones (Blue): Identifies high-volume reversal patterns where price briefly touches a level before sharply reversing, suggesting stop loss absorption.
Customizable Parameters:
Swing Lookback: Period for pivot point detection (5-100 bars)
Swing Threshold: Minimum percentage move to qualify as a swing (0.5-10%)
Volume Threshold: Multiplier for detecting unusual volume (1-5x average)
Wick Ratio: Minimum wick-to-total range ratio for trap detection (0.3-0.9)
ATR Settings: Length and multiplier for zone buffer calculation
Zone Management: Maximum zones per type and minimum distance between zones
Display Options: Toggle individual zone types, heatmap intensity, labels, and transparency
Visual Features:
Heatmap Mode: Colour intensity reflects how often price has tested each zone
Smart Zone Management: Prevents chart cluttering by limiting zones and removing those too close together
Dynamic Labels: Clear zone identification with customizable display
Adjustable Transparency: Control zone visibility (10-90%)
How It Works:
The indicator uses ATR-based buffers to create zones around detected levels. It tracks price history to calculate "intensity" scores for the heatmap feature, helping identify the most significant hunting zones. The algorithm ensures zones are meaningful by enforcing minimum distances and limiting total zones displayed.
Avoid placing stop losses at obvious levels where hunting is likely
Identify potential reversal points for counter-trend trades
Recognize false breakout patterns before they complete
Time entries after stop loss hunts are absorbed
Technical Details:
Maximum 500 boxes, lines, and labels for comprehensive zone tracking
Compatible with all timeframes
Works on any market (stocks, forex, crypto, futures)
Real-time detection as new bars confirm
This indicator is designed for traders who want to understand where institutional players might target retail stop losses and use that information to their advantage. Please boost & follow for more. Happy trading !!
Disclaimer: This indicator is for educational and informational purposes only. It should not be considered financial advice. Always perform your own analysis and risk management before trading.
Cody Order Block FinderCody Order Block Finder
Free Telegram Trading Community t.me
Overview
A professional order block detection indicator that identifies institutional supply and demand zones on any timeframe. This tool helps traders spot key reversal areas where institutional orders are likely placed, providing strategic levels for limit order entries.
Key Features
🔍 Smart Order Block Detection
Bullish Order Blocks: Identifies the last bearish candle before consecutive bullish candles
Bearish Order Blocks: Identifies the last bullish candle before consecutive bearish candles
Configurable Sensitivity: Adjust the number of consecutive candles required (1-50 periods)
Minimum Move Filter: Set percentage threshold to filter only significant moves
🎨 Visual Customization
Multiple Color Schemes: Choose from DARK, BRIGHT, or NEON themes
Customizable Display: Show/hide bullish/bearish channels
Line Extension: Extend OB lines to current bar for better visibility
Historical View: Toggle between showing all historical OBs or only the latest ones
📊 Advanced Filtering
OB Size Filter: Set minimum and maximum order block size as percentage of price
ATR Filter: Filter OBs based on Average True Range multiples
OB Strength Indicator: Color-coded OBs based on subsequent price move strength
Wick/Body Selection: Choose to mark OBs using whole candle range or body only
🔔 Alert System
Real-time Alerts: Get notified immediately when new order blocks form
Customizable Messages: Set your own alert messages
Once-per-OB Option: Prevent alert spam with single alert per OB
📈 Display Features
Three-Line Channels: Shows high, low, and average levels for each OB
Visual Shapes: Clear triangle markers above/below candles
Info Panel: Displays latest OB statistics in a clean table format
Data Window Info: View OB levels in TradingView's data window
How to Use
Setup
Add indicator to your chart
Configure periods (default: 5) - higher values = fewer but stronger OBs
Set minimum % move (default: 0%) to filter significant moves
Choose color scheme for your preference
Trading Applications
Limit Order Placement: Place buy limits at bullish OB lows, sell limits at bearish OB highs
Stop Loss Reference: Set stops beyond OB extremes
Reversal Confirmation: Use OBs as confluence with other indicators
Support/Resistance: OB levels often act as future support/resistance
Advanced Tips
Combine with volume profile for higher probability zones
Use on higher timeframes (4H, Daily) for more significant levels
Look for OBs at key Fibonacci levels for added confluence
Monitor price reactions when revisiting OBs
Technical Details
Programming Language: Pine Script v6
Overlay: Yes (draws directly on price chart)
Max Lines: 500 (prevents chart clutter)
Timeframe Compatibility: All timeframes (1min to Monthly)
Market Compatibility: Forex, Stocks, Crypto, Futures
Input Parameters
Basic Settings
Relevant Periods: Number of consecutive candles required (1-50)
Min. Percent move: Minimum % move to validate OB (0.0-100.0)
Color Scheme: DARK, BRIGHT, or NEON color themes
Display Options
Show latest Bullish/Bearish Channel: Toggle channel display
Extend OB lines to right: Extend lines to current bar
Show all historical OBs: Display all OBs or only latest
Use whole range: Use High/Low or Open/Close for OB marking
Advanced Filters
Min/Max OB size (%): Filter by order block size
Use ATR filter: Filter based on volatility
Show OB Strength: Color code by subsequent move strength
Alert Configuration
Create alerts directly from the indicator by clicking "Create Alert" button on chart:
Bullish OB alerts when green triangle appears
Bearish OB alerts when red triangle appears
Includes price and OB level information
Best Practices
Higher Timeframes First: Start on daily/4H to identify major levels
Multiple Confluence: Combine with trend lines, Fibonacci, or moving averages
Patience: Wait for price to return to OB levels for entries
Risk Management: Always use appropriate position sizing and stops
Support & Updates
For updates and support, visit the script page. The indicator is regularly maintained for optimal performance across all markets and timeframes.
Perfect for: Swing traders, position traders, institutional traders, and anyone looking to trade with the "smart money" flow using order flow concepts.
Trading Styles: Works with all styles - scalping, day trading, swing trading, and investing.
Experience Level: Suitable for beginners to advanced traders with clear visual cues and customizable settings.
Eclipse Multi-Oscillator [JOAT]Eclipse Multi-Oscillator - Unified Momentum Confluence System
Introduction and Purpose
Eclipse Multi-Oscillator is an open-source indicator that combines four classic oscillators (RSI, Stochastic, CCI, and Williams %R) into a single unified view with confluence detection. The core problem this indicator solves is oscillator disagreement: traders often see RSI oversold while Stochastic is neutral, or CCI overbought while Williams %R is mid-range. This creates confusion about the true momentum state.
This indicator addresses that by displaying all four oscillators together and counting how many agree on overbought or oversold conditions, providing a clear confluence score that cuts through the noise.
Why These Four Oscillators Work Together
Each oscillator measures momentum differently, and their combination provides a more complete picture:
1. RSI (Relative Strength Index) - Measures the magnitude of recent price changes. Best at identifying momentum exhaustion.
2. Stochastic - Compares closing price to the high-low range. Best at identifying where price is within its recent range.
3. CCI (Commodity Channel Index) - Measures price deviation from statistical mean. Best at identifying unusual price movements.
4. Williams %R - Similar to Stochastic but inverted. Provides confirmation of Stochastic readings.
When 3 or more of these oscillators agree on overbought or oversold, the signal is significantly more reliable than any single oscillator alone.
How Confluence Scoring Works
The indicator counts how many oscillators are in extreme territory:
int obCount = 0
if rsi > rsiOB
obCount += 1
if stochK > stochOB
obCount += 1
if cci > cciOB
obCount += 1
if willRScaled > stochOB
obCount += 1
bool strongOverbought = obCount >= 3
bool strongOversold = osCount >= 3
The confluence score ranges from -4 (all oversold) to +4 (all overbought), with 0 being neutral.
Signal Types
Strong Oversold - 3+ oscillators below oversold threshold (potential bounce)
Strong Overbought - 3+ oscillators above overbought threshold (potential pullback)
OB/OS Exit - RSI leaving extreme zone with Stochastic confirmation (potential reversal)
Divergence - Price makes new high/low while RSI does not (potential reversal warning)
Dashboard Information
RSI/Stoch K/CCI/Will %R - Current values with zone status (OB/OS/MID)
Confluence - Overall bias (STRONG OS, STRONG OB, Lean Bull/Bear, Neutral)
OB Count - How many oscillators are overbought (0-4)
OS Count - How many oscillators are oversold (0-4)
How to Use This Indicator
For Reversal Trading:
1. Wait for Strong Oversold (3+ oscillators agree)
2. Look for bullish candlestick pattern or support level
3. Enter long with stop below recent low
4. Take profit when confluence returns to neutral or overbought
For Trend Confirmation:
1. Check confluence direction matches your trade bias
2. Avoid longs when confluence is strongly overbought
3. Avoid shorts when confluence is strongly oversold
For Divergence Trading:
1. Watch for "D" labels indicating RSI divergence
2. Bullish divergence at support = potential long
3. Bearish divergence at resistance = potential short
Input Parameters
RSI Length (14) - Period for RSI calculation
Stochastic K/D Length (14/3) - Periods for Stochastic
CCI Length (20) - Period for CCI
Williams %R Length (14) - Period for Williams %R
OB/OS Thresholds - Customizable levels for each oscillator
Timeframe Recommendations
15m-1H: Good for intraday momentum analysis
4H-Daily: Best for swing trading confluence
Very short timeframes may produce noisy signals
Limitations
All oscillators can remain in extreme territory during strong trends
Confluence does not predict direction, only identifies extremes
Divergence detection is simplified and may miss some patterns
Works best in ranging or moderately trending markets
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied.
This indicator does not constitute financial advice. Oscillator confluence does not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Candle Intelligence🔹 Candle Intelligence (IM-CI)
Candle Intelligence (IM-CI) is a context-only intraday market behavior indicator designed to help traders understand how price is behaving, not where to buy or sell.
This tool classifies individual candles, detects short-term behavioral patterns, and displays a non-blocking market state to improve decision awareness during live trading.
⚠️ IM-CI does NOT generate buy/sell signals.It is strictly intended for market context, confirmation, and study.
🔍 What This Indicator Does
🧠 Candle Intelligence Layer
Each candle is classified based on volatility-adjusted behavior using ATR:
Strong expansion candles
Normal directional candles
Weak / neutral candles
These classifications are shown as compact candle codes (optional) to quickly read price behavior without clutter.
📐 Pattern Recognition (Context Only)
IM-CI detects short, non-predictive behavioral patterns, such as:
Compression
Absorption
Momentum bursts
Distribution
These patterns are displayed as soft zones, not signals, helping traders visually study how price reacts around key moments.
Cooldown logic is used to prevent repetitive pattern noise.
🌐 Market State Engine
The indicator continuously evaluates recent candle behavior and VWAP positioning to describe the current market condition, such as:
Expansion
Extended
Distribution
Balanced
This state is shown in a small HUD panel and is designed to:
Reduce emotional over-trading
Identify unsuitable market conditions
Improve alignment with higher-probability environments
⚙️ Key Features
ATR-aware candle classification
VWAP extension detection
Timeframe-adaptive candle code visibility
Non-repainting logic
Clean, lightweight HUD panel
Designed for intraday futures & index trading
🛠 How to Use
Use IM-CI as a context filter, not a trigger
Combine with your own execution system
Avoid trading during Extended or unclear states
Best suited for lower timeframes (1–5 min)
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice and should not be used as a standalone trading system.
All trading decisions remain the sole responsibility of the user.
Momentum Clarity Engine📘 Description - Momentum Clarity Engine
Momentum Clarity Engine (MC-Engine) is a visual momentum-context indicator designed to help traders clearly identify trend direction, momentum strength, and low-quality market conditions using a disciplined combination of MACD and RSI.
Rather than generating buy or sell signals, MC-Engine focuses on clarity and risk control by visually classifying price action into intuitive momentum states and highlighting periods where trading conditions are unfavorable.
🔍 How it works
The indicator combines:
MACD Histogram → momentum direction and strength
RSI → bullish vs bearish pressure balance
Based on this confluence, price candles are colored to reflect market state:
Strong Bullish Momentum → Dark Green (solid)
Weak Bullish Momentum → Light Green (transparent)
Strong Bearish Momentum → Dark Red (solid)
Weak Bearish Momentum → Light Red (transparent)
No-Trade Zone → Muted Orange (high transparency)
Candle opacity dynamically adapts to MACD histogram strength, allowing traders to visually sense when momentum is expanding, weakening, or lacking conviction.
🟠 No-Trade Zone (Key Feature)
The No-Trade zone highlights periods of:
Low momentum
RSI balance / indecision
Choppy or transitional price action
These conditions often result in poor risk-reward.
The muted orange color is intentionally designed to encourage patience and discipline.
✅ How to use MC-Engine
MC-Engine is best used as a trade filter and context tool, not as a standalone strategy.
Common use cases:
Confirming trend strength before entries
Avoiding trades during low-momentum chop
Filtering breakouts and pullbacks
Intraday trading on 1-minute to 15-minute charts
Futures, indices, equities, and crypto markets
Recommended to pair with:
Market structure
Trendlines
VWAP
Support & resistance
Higher-timeframe context
⚠️ Important Notes
This indicator does not provide buy or sell signals
No repainting or future-looking logic
Designed for educational and analytical purposes only
Always apply proper risk management
🧠 Philosophy
The goal is not to trade more —
the goal is to trade when conditions are clear.
Momentum Clarity Engine helps traders participate during strong momentum and stand aside during uncertainty.
Trend Speed Analyzer with Entries (Zeiierman)📈 Trend Speed Analyzer with Entry Signals (Zeiierman – Modified)
🔹 Overview
This indicator is a trend-following momentum system built around an adaptive (dynamic) moving average and a proprietary trend speed / wave strength engine.
It is designed to identify high-quality continuation entries after price confirms direction, not to predict tops or bottoms.
Best suited for:
Index futures (ES, NQ)
ETFs (SPY, QQQ)
Strongly trending stocks
Intraday or swing trading
🔹 Core Concepts
1️⃣ Dynamic Trend Line (Adaptive EMA)
Instead of using a fixed EMA length, this script dynamically adjusts:
EMA length based on normalized price movement
EMA responsiveness using an accelerator factor
Result:
Fast reaction during strong trends
Smooth behavior during choppy markets
Fewer false flips compared to traditional EMAs
This trend line acts as the primary regime filter.
2️⃣ Trend Speed & Wave Analysis
The indicator tracks trend speed, which represents cumulative directional pressure over time.
It also records:
Bullish wave sizes
Bearish wave sizes
Average vs maximum wave strength
Bull/Bear dominance
These statistics are displayed in an optional table to help assess:
Market bias
Momentum asymmetry
Whether the current move is weak, average, or exceptional
🔹 Entry Signal Logic (One Signal per Trend Shift)
Signals are not spammy.
Only one entry signal is allowed per crossover.
Long Entry Conditions
A long signal is generated when:
Price crosses above the dynamic trend line
A bullish candle forms
The candle body is at least X% of ATR (filters weak/doji candles)
The entire candle body is above the trend line
(Optional) Trend speed is positive
Short Entry Conditions
A short signal is generated when:
Price crosses below the dynamic trend line
A bearish candle forms
The candle body is at least X% of ATR
The entire candle body is below the trend line
(Optional) Trend speed is negative
📌 Once a signal fires, no additional signals will appear until a new crossover occurs.
🔹 What this indicator is NOT
❌ Not a mean-reversion system
❌ Not a prediction tool
❌ Not meant for sideways markets
This tool assumes structure → confirmation → continuation.
🔹 How to Trade It (Suggested Use)
Use higher timeframes (5m–30m) for cleaner signals
Trade in the direction of higher-timeframe bias
Combine with:
VWAP
Key levels (PDH / PDL / PMH / PML)
Market session context
🔹 Customization
Adjust Maximum Length for smoother vs faster trends
Adjust Accelerator Multiplier for sensitivity
Enable/disable speed filter for stricter momentum confirmation
ATR candle filter removes weak signals automatically
⚠️ Disclaimer
This indicator provides technical signals only and does not include trade management, stops, or targets.
Always apply proper risk management.
Aurora Volatility Bands [JOAT]Aurora Volatility Bands - Dynamic ATR-Based Envelope System
Introduction and Purpose
Aurora Volatility Bands is an open-source overlay indicator that creates multi-layered volatility envelopes around price using ATR (Average True Range) calculations. The core problem this indicator solves is that static bands (like fixed percentage envelopes) fail to adapt to changing market conditions. During high volatility, static bands are too tight; during low volatility, they're too wide.
This indicator addresses that by using ATR-based dynamic bands that automatically expand during volatile periods and contract during quiet periods, providing contextually appropriate support/resistance levels at all times.
Why These Components Work Together
The indicator combines three analytical approaches:
1. Triple-Layer Band System - Inner (1x ATR), Outer (2x ATR), and Extreme (3x ATR) bands provide graduated levels of significance
2. Volatility State Detection - Compares current ATR to historical average to classify market regime
3. Multiple MA Types - Allows customization of the center line calculation method
These components complement each other:
The triple-layer system gives traders multiple reference points - inner bands for normal moves, outer for significant moves, extreme for rare events
Volatility state detection tells you WHEN bands are expanding or contracting, helping anticipate breakouts or mean-reversion
MA type selection lets you match the indicator to your trading style (faster EMA vs smoother SMA)
How the Calculation Works
The bands are calculated using ATR multiplied by configurable factors:
float atr = ta.atr(atrPeriod)
float innerUpper = centerMA + (atr * innerMult)
float outerUpper = centerMA + (atr * outerMult)
float extremeUpper = centerMA + (atr * extremeMult)
Volatility state is determined by comparing current ATR percentage to its historical average:
float atrPercent = (atr / close) * 100
float avgAtrPercent = ta.sma(atrPercent, volatilityLookback)
float volatilityRatio = atrPercent / avgAtrPercent
bool isExpanding = volatilityRatio > 1.2 // 20%+ above average
bool isContracting = volatilityRatio < 0.8 // 20%+ below average
Signal Types
Band Touch - Price reaches inner, outer, or extreme bands
Mean Reversion - Price returns to center after touching outer/extreme bands
Breakout - Sustained move beyond outer bands during volatility expansion
Dashboard Information
Volatility - Current state (EXPANDING/CONTRACTING/NORMAL)
Vol Ratio - Current volatility vs average (e.g., 1.5x = 50% above average)
ATR - Current ATR value
ATR % - ATR as percentage of price
Zone - Current price position (EXTREME HIGH/UPPER ZONE/CENTER ZONE/etc.)
Position - Price position as percentage within band structure
Width - Total band width as percentage of price
Using SMA in settings:
How to Use This Indicator
For Mean-Reversion Trading:
1. Wait for price to touch outer or extreme bands
2. Check that volatility state is NORMAL or CONTRACTING (not expanding)
3. Look for reversal candlestick patterns at the band
4. Enter toward center MA with stop beyond the band
For Breakout Trading:
1. Wait for volatility state to show EXPANDING
2. Look for price closing beyond outer bands
3. Enter in direction of breakout
4. Use the band as trailing stop reference
For Volatility Analysis:
1. Monitor volatility ratio for regime changes
2. CONTRACTING often precedes large moves (squeeze)
3. EXPANDING confirms trend strength
Using VWMA and Mean Reversion Signal/MR:
Input Parameters
ATR Period (14) - Period for ATR calculation
Inner/Outer/Extreme Multipliers (1.0/2.0/3.0) - Band distance from center
MA Type (EMA) - Center line calculation method
MA Period (20) - Period for center line
Volatility Comparison Period (20) - Lookback for volatility state
Timeframe Recommendations
15m-1H: Good for intraday mean-reversion
4H-Daily: Best for swing trading and breakout identification
Weekly: Useful for position trading and major level identification
Limitations
ATR-based bands lag during sudden volatility spikes
Mean-reversion signals can fail in strong trends
Breakout signals may whipsaw in ranging markets
Works best on liquid instruments with consistent volatility patterns
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Band touches do not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
Photon Price Action Scanner [JOAT]Photon Price Action Scanner - Multi-Pattern Recognition with Adaptive Filtering
Introduction and Purpose
Photon Price Action Scanner is an open-source overlay indicator that automates the detection of 15+ candlestick patterns while filtering them through multiple confirmation layers. The core problem this indicator solves is pattern noise: raw candlestick pattern detection produces too many signals, most of which fail because they lack context. This indicator addresses that by combining pattern recognition with trend alignment, volume-weighted strength scoring, velocity confirmation, and an adaptive neural bias filter.
The combination of these components is not arbitrary. Each filter addresses a specific weakness in standalone pattern detection:
Trend alignment ensures patterns appear in favorable market structure
Volume-weighted strength filters out weak patterns with low conviction
Velocity confirmation identifies momentum behind the pattern
Neural bias filter adapts to recent price behavior to avoid counter-trend signals
What Makes This Indicator Original
While candlestick pattern scanners exist, this indicator's originality comes from:
1. Multi-Layer Filtering System - Patterns must pass through trend, strength, velocity, and neural bias filters before generating signals. This dramatically reduces false positives compared to simple pattern detection.
2. Adaptive Neural Bias Filter - A custom momentum-adjusted EMA that learns from recent price action using a configurable learning rate. This is not a standard moving average but an adaptive filter that accelerates during trends and smooths during consolidation.
3. Pattern Strength Scoring - Each pattern receives a strength score based on volume ratio and body size, allowing traders to focus on high-conviction setups rather than every pattern occurrence.
4. Smart Cooldown System - Prevents signal overlap by enforcing minimum bar spacing between pattern labels, keeping charts clean even when "Show All Patterns" is enabled.
How the Components Work Together
Step 1: Pattern Detection
The indicator scans for 15 candlestick patterns using precise mathematical definitions:
// Example: Bullish Engulfing requires the current bullish candle to completely
// engulf the previous bearish candle with a larger body
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
// Example: Three White Soldiers requires three consecutive bullish candles
// with each opening within the previous body and closing higher
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Step 2: Strength Calculation
Each detected pattern receives a strength score combining volume and body size:
float volRatio = avgVolume > 0 ? volume / avgVolume : 1.0
float bodySize = math.abs(close - open) / close
float baseStrength = (volRatio + bodySize * 100) / 2
This ensures patterns with above-average volume and large bodies score higher than weak patterns on low volume.
Step 3: Trend Alignment
Patterns are checked against the trend direction using an EMA:
float trendEMA = ta.ema(close, i_trendPeriod)
int trendDir = close > trendEMA ? 1 : close < trendEMA ? -1 : 0
Bullish patterns in uptrends and bearish patterns in downtrends receive priority.
Step 4: Neural Bias Filter
The adaptive filter uses a momentum-adjusted EMA that responds to price changes:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
if na(neuralValue)
neuralValue := src
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
The learning rate (lr) controls how quickly the filter adapts. Higher values make it more responsive; lower values make it smoother.
Step 5: Velocity Confirmation
Price velocity (rate of change) must exceed the average velocity for strong signals:
float velocity = ta.roc(close, i_trendPeriod)
float avgVelocity = ta.sma(velocity, i_trendPeriod)
bool velocityBull = velocity > avgVelocity * 1.5
Step 6: Signal Classification
Signals are classified based on how many filters they pass:
Strong Pattern : Pattern + strength threshold + trend alignment + neural bias + velocity
Ultra Pattern : Strong pattern + gap in same direction + velocity confirmation
Watch Pattern : Pattern detected but not all filters passed
Detected Patterns
Classic Reversal Patterns:
Bullish/Bearish Engulfing - Complete body engulfment with larger body
Hammer - Long lower wick (2x body), small upper wick, bullish context
Shooting Star - Long upper wick (2x body), small lower wick, bearish context
Morning Star - Three-bar bullish reversal with small middle body
Evening Star - Three-bar bearish reversal with small middle body
Piercing Line - Bullish candle closing above midpoint of previous bearish candle
Dark Cloud Cover - Bearish candle closing below midpoint of previous bullish candle
Bullish/Bearish Harami - Small body contained within previous larger body
Doji - Body less than 10% of total range (indecision)
Advanced Patterns (Optional):
Three White Soldiers - Three consecutive bullish candles with rising closes
Three Black Crows - Three consecutive bearish candles with falling closes
Tweezer Top - Equal highs with reversal candle structure
Tweezer Bottom - Equal lows with reversal candle structure
Island Reversal - Gap isolation creating reversal structure
Dashboard Information
The dashboard displays real-time analysis:
Pattern - Current detected pattern name or "SCANNING..."
Bull/Bear Strength - Volume-weighted strength scores
Trend - UPTREND, DOWNTREND, or SIDEWAYS based on EMA
RSI - 14-period RSI for momentum context
Momentum - 10-period momentum reading
Volatility - ATR as percentage of price
Neural Bias - BULLISH, BEARISH, or NEUTRAL from adaptive filter
Action - ULTRA BUY/SELL, BUY/SELL, WATCH BUY/SELL, or WAIT
Visual Elements
Pattern Labels - Abbreviated codes (BE=Engulfing, H=Hammer, MS=Morning Star, etc.)
Neural Bias Line - Adaptive trend line showing filter direction
Gap Boxes - Cyan boxes highlighting price gaps
Action Zones - Dashed boxes around strong pattern areas
Velocity Markers - Small circles when velocity confirms direction
Ultra Signals - Large labels for highest conviction setups
How to Use This Indicator
For Reversal Trading:
1. Wait for a pattern to appear at a key support/resistance level
2. Check that the Action shows "BUY" or "SELL" (not just "WATCH")
3. Confirm the Neural Bias aligns with your trade direction
4. Use the strength score to gauge conviction (higher is better)
For Trend Continuation:
1. Identify the trend using the Trend row in the dashboard
2. Look for patterns that align with the trend (bullish patterns in uptrends)
3. Ultra signals indicate the strongest continuation setups
For Filtering Noise:
1. Keep "Show All Patterns" disabled to see only filtered signals
2. Increase "Pattern Strength Filter" to see fewer, higher-quality patterns
3. Enable "Velocity Confirmation" to require momentum behind patterns
Input Parameters
Scan Sensitivity (1.0) - Overall detection sensitivity multiplier
Pattern Strength Filter (3) - Minimum strength score for strong signals
Trend Period (20) - EMA period for trend determination
Show All Patterns (false) - Display all patterns regardless of filters
Advanced Patterns (true) - Enable soldiers/crows/tweezer detection
Gap Analysis (true) - Enable gap detection and boxes
Velocity Confirmation (true) - Require velocity for strong signals
Neural Bias Filter (true) - Enable adaptive trend filter
Neural Period (50) - Lookback for neural bias calculation
Neural Learning Rate (0.12) - Adaptation speed (0.01-0.5)
Timeframe Recommendations
1H-4H: Best balance of signal frequency and reliability
Daily: Fewer but more significant patterns
15m-30m: More signals, requires tighter filtering (increase strength threshold)
Limitations
Pattern detection is mechanical and does not consider fundamental context
Neural bias filter may lag during rapid trend reversals
Gap detection requires clean price data without after-hours gaps
Strength scoring favors high-volume patterns, which may miss valid low-volume setups
- Made with passion by officialjackofalltrades
Black-Scholes Gamma Scalping Strategy# Black-Scholes Gamma Scalping Strategy
## Overview
This strategy applies options market-making principles to spot/futures trading using the Black-Scholes pricing model. It simulates the behavior of a delta-hedged straddle position, generating buy and sell signals based on how a market maker would hedge their gamma exposure.
---
## The Concept: Gamma Scalping
Professional options traders who hold long straddles (long call + long put at the same strike) profit when the underlying moves significantly in either direction. Here's why:
- A straddle has **positive gamma**, meaning its delta increases as price rises and decreases as price falls
- To stay delta-neutral, traders must **buy after dips** and **sell after rallies**
- If **realized volatility > implied volatility**, the profits from these hedging trades exceed the daily theta (time decay) cost
This strategy captures that edge by:
1. Calculating theoretical Greeks using Black-Scholes
2. Monitoring when delta deviates from neutral
3. Trading to "hedge" back to neutral — buying weakness, selling strength
---
## Black-Scholes Greeks Calculated
| Greek | Symbol | What It Measures |
|-------|--------|------------------|
| Delta | Δ | Directional exposure |
| Gamma | Γ | Rate of delta change |
| Vega | ν | Sensitivity to volatility |
| Theta | Θ | Time decay per day |
All Greeks are calculated in real-time using the standard Black-Scholes formula with configurable inputs for strike, expiration, implied volatility, and risk-free rate.
---
## Entry Signals
**Long Entry** (buy the underlying):
- Price drops significantly (gamma scalp trigger), OR
- Straddle delta falls below the lower hedge band
- Volatility filter confirms favorable regime (HV > IV)
**Short Entry** (sell the underlying):
- Price rises significantly (gamma scalp trigger), OR
- Straddle delta rises above the upper hedge band
- Volatility filter confirms favorable regime
---
## Volatility Regime Filter
The strategy compares **Historical Volatility (HV)** to **Implied Volatility (IV)**:
- **HV/IV > 1.2** → Long volatility regime (gamma scalping profitable) → Trading enabled
- **HV/IV < 0.8** → Short volatility regime (theta wins) → Trading paused or reversed
- **Between** → Neutral, proceed with caution
This filter helps avoid trading when market conditions don't favor the strategy.
---
## Key Inputs
**Option Parameters:**
- Strike Offset % — Distance from ATM (0 = at-the-money)
- Days to Expiration — Synthetic option tenor (affects gamma magnitude)
- Implied Volatility — Your estimate of fair IV
- Risk-Free Rate — For BS calculation
**Trading Parameters:**
- Gamma Scalp Threshold — ATR multiple to trigger trades
- Delta Hedge Band % — How far delta must deviate to signal
- Volatility Regime Filter — Enable/disable HV/IV filter
**Risk Management:**
- Stop Loss / Take Profit (ATR multiples)
- Max Drawdown % — Pauses trading if exceeded
- Max Concurrent Positions
---
## How to Use
1. **Set Implied Volatility** to match current market IV (check options chain or VIX for reference)
2. **Adjust Days to Expiration** — Shorter = higher gamma, more signals; Longer = smoother
3. **Tune the Hedge Band** — Tighter bands = more trades; Wider = fewer, larger moves
4. **Enable Volatility Filter** for trend-following vol regimes, disable for pure mean-reversion
**Best suited for:**
- Range-bound or choppy markets
- High realized volatility environments
- Liquid instruments with tight spreads
**Avoid using when:**
- Strong directional trends (gamma scalping loses to delta)
- Volatility is collapsing
- Low liquidity / wide spreads
---
## Information Table
The on-chart table displays real-time:
- Current strike price
- Straddle Delta, Gamma, Vega, Theta
- Historical vs Implied Volatility
- HV/IV Ratio
- Current volatility regime
---
## Alerts
Built-in alert conditions for:
- Long entry signals
- Short entry signals
- Max drawdown protection triggered
---
## Disclaimer
This strategy is provided for **educational purposes only**. It demonstrates how Black-Scholes option pricing theory can be applied to generate trading signals.
- Past performance does not guarantee future results
- Backtest results may not reflect live trading conditions
- Always use proper position sizing and risk management
- Paper trade extensively before using real capital
**No financial advice is given or implied.**
---
## Credits
Based on the Black-Scholes-Merton option pricing model (1973) and gamma scalping techniques used by professional options market makers.
---
*If you find this useful, please leave a like or comment. Suggestions for improvements are welcome!*






















