Expansion Setup: Entries & structure + AlertsThis is a specific market condition often called a Broadening Formation or an Expansion Move, where volatility increases enough to break both the previous structural low and then immediately break the previous structural high (or vice versa).
1. LL to HH: A New Lower Low is formed, followed immediately by a New Higher High.
2. HH to LL: A New Higher High is formed, followed immediately by a New Lower Low.
3. Entry Levels: When a setup is detected (LL ➔ HH or HH ➔ LL), the script now draws two specific entry lines extending forward:
The "Breaker" Level: The previous structure point that was broken. (Often a safe retest entry).
The 50% Retracement: The midpoint of the expansion move (The "Equilibrium" or "Discount" entry).
Forecasting
AI Signal Pro (MVP) | @GexProNew: AI Signal Preview (Free)
We’re excited to introduce a free AI-powered signal layer — now embedded directly in the Gamma Levels indicator — to help you spot high-conviction trade setups in real time.
This intelligent overlay analyzes gamma regime alignment, volume surges, and momentum shifts to surface only the highest-quality opportunities — no noise, no spam.
What You Get (Free)
Smart Trigger Logic: Only activates when Gamma Flip, Call Wall, and Put Support align with price action
Confidence Scoring: Clear % rating (e.g., "AI Confidence: 82%") so you know when to trust the signal
Actionable Levels: Auto-calculated entry, stop, and target based on gamma structure
Regime-Aware: Respects Positive/Negative Gamma environments — no counter-trend false signals
What’s Not Included (Free Version)
No LLM reasoning — no natural-language trade rationale
No real options data — uses price/volume proxies (not live OI or GEX)
No directional scoring — no Vanna/Charm-weighted conviction engine
No 0DTE or multi-expiry logic
Think of this as the “teaser” — a glimpse of what’s possible when AI meets institutional options flow.
Ready for the Full AI Engine?
→ Upgrade to GEX Pro and unlock:
Real-time options chain ingestion (OI, volume, strikes, expiries)
LLM-powered trade rationale — “Why this setup works now” in plain English
Institutional Conviction Score™ — 5-factor model (GEX slope, Vanna flow, vol skew, etc.)
0DTE-optimized signals with volume-priority gamma weighting
API access & trade ideas — auto-generated setups with risk metrics
Stop reacting. Start anticipating — where the smart money is positioned before the move.
Try GEX Pro — gexpro.asiaquant.com
TrendMaster [Scalping-Algo]═══════════════════════════════════════════════════════════════
📈 TrendMaster
═══════════════════════════════════════════════════════════════
🔹 WHAT IS IT?
A smarter Supertrend that filters out fake signals in choppy markets.
No more whipsaws. No more overtrading. Just clean entries.
🔹 HOW IT WORKS
🟢 GREEN line below price = BULLISH (look for longs)
🔴 RED line above price = BEARISH (look for shorts)
Signals only appear when:
✓ ADX > 20 (market is trending)
✓ Minimum 5 bars since last signal (no rapid flips)
🔹 SETTINGS
| Setting | Default | Range |
|-------------|---------|------------|
| ATR Period | 12 | 10-14 |
| Factor | 3.0 | 2.5-3.5 |
| Min ADX | 20 | 15-25 |
| Min Bars | 5 | 3-8 |
Lower ADX = more signals (noisier)
Higher ADX = fewer signals (cleaner)
═══════════════════════════════════════════════════════════════
🎯 SCALPING STRATEGY
═══════════════════════════════════════════════════════════════
▶ LONG SETUP
1. Wait for 🟢 ▲ signal
2. Enter next candle
3. SL: Below green line
4. TP: 1.5-2R
▶ SHORT SETUP
1. Wait for 🔴 ▼ signal
2. Enter next candle
3. SL: Above red line
4. TP: 1.5-2R
═══════════════════════════════════════════════════════════════
💡 PRO TIPS
═══════════════════════════════════════════════════════════════
✅ DO:
• Use on 5m, 15m, 1H
• Trade with the trend
• Combine with S/R levels
• Risk 1% per trade
• Wait for clean signal
❌ DON'T:
• Trade flat markets
• Chase after big moves
• Ignore HTF trend
• Overtrade
═══════════════════════════════════════════════════════════════
⚡ QUICK REFERENCE
═══════════════════════════════════════════════════════════════
GREEN LINE = BUY ZONE | RED LINE = SELL ZONE
▲ = Long entry | ▼ = Short entry
Line = Stop loss | Line = Stop loss
════════════════════════════════════════════
👍 Like if useful
💬 Comment your results
🔔 Follow for more
Smart Trader,Episode 1, by Ata Sabanci | Unified Matrix⚠️ **CRITICAL: READ BEFORE USING** ⚠️
This strategy is **100% VOLUME-BASED** and requires **Lower Timeframe (LTF) intrabar data** for accurate calculations. Please understand the following limitations before using:
**📊 DATA ACCURACY LEVELS:**
• **1T (Tick)** — Most accurate, real volume distribution per tick
• **1S (1 Second)** — Reasonably accurate approximation
• **15S (15 Seconds)** — Good approximation, longer historical data available
• **1M (1 Minute)** — Rough approximation, maximum historical data range
**⚠️ BACKTEST & REPLAY LIMITATIONS:**
• TradingView's Strategy Tester uses historical LTF data which may be limited depending on your subscription plan
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
**💡 A NOTE ON TOOLS:**
Successful trading requires proper tools. Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable signals. Consider this when evaluating your trading infrastructure.
**WHY "EPISODE 1"?**
This strategy is titled "Episode 1" because it focuses exclusively on **Highest Buyers (HB)** — a single but powerful concept in volume analysis.
**The Philosophy:**
A single high-volume buying event can tell us a story about market psychology:
• Where did the biggest buyers enter?
• How much of their power remains?
• Are sellers consuming their advantage?
• At what rate is the balance shifting?
By focusing on just ONE aspect of volume analysis, traders can deeply understand how a buying surge affects future price action before moving to more complex multi-factor analysis.
**The Reality:**
This script alone is approximately **2000 lines of code** — and it only analyzes buyers. A comprehensive system covering all aspects (sellers, combined analysis, multi-timeframe correlation) would be significantly larger and computationally heavier. Breaking this into focused modules allows for:
• Deeper understanding of each component
• Lighter, more responsive scripts
• Educational progression from simple to complex
**OVERVIEW**
Smart Trader EP1 is a volume-based trading strategy that tracks the balance of power between buyers and sellers through the lens of the **Highest Buyers event**. Unlike traditional indicators that rely on price patterns or mathematical formulas, this strategy analyzes *actual volume flow* to identify who is in control of the market.
The core philosophy is simple: **markets move when one side (buyers or sellers) exhausts their power while the opposing side accumulates strength.** By measuring this power shift in real-time, the strategy identifies high-probability entry and exit points.
**HOW IT WORKS**
**1. Volume Engine**
The strategy splits each candle's volume into buying volume and selling volume using intrabar data. In *Intrabar (Precise)* mode, it uses actual tick-by-tick or second-by-second data to calculate the exact buy/sell distribution. In *Geometry* mode, it approximates based on candle structure (close position within the range).
**2. Event Detection**
Within the lookback window, the strategy identifies key events:
• **HB (Highest Buyers)** — The candle with maximum buying volume (potential resistance when exhausted)
• **HS (Highest Sellers)** — The candle with maximum selling volume (potential support when exhausted)
• **LB (Lowest Buyers)** — The candle with minimum buying volume (buyer absence)
• **LS (Lowest Sellers)** — The candle with minimum selling volume (seller absence)
These events create dynamic support and resistance levels based on actual volume, not arbitrary price levels.
**3. Power Tracking (Attrition Model)**
For the Highest Buyers event (HB), the strategy tracks:
• **Start Power (X)** — The initial buying volume at the HB event
• **Consumed Power (Y)** — How much selling volume has accumulated since the event
• **Remaining Power (Z)** — Start Power minus Consumed Power (X - Y)
• **Opponent Dominance** — When Remaining Power goes negative (Z < 0), sellers have overtaken buyers
Think of it like a battle: buyers establish a position (HB), and sellers gradually consume their power. When buyers' power is exhausted (Remaining Power ≤ 0), sellers have taken control.
**4. Depletion Markers**
Visual markers appear on the chart when power reaches critical thresholds:
• **🔋** — Buyers consumed 100% (Remaining = 0)
• **🚨** — Buyers consumed 200% (Opponent Dominance = 100%)
• **🪫** — Sellers consumed 100%
• **⚠️** — Sellers consumed 200%
**5. Cumulative Delta**
Beyond tracking power at specific events, the strategy calculates the cumulative buy volume minus sell volume since the HB event. This shows the *net flow* of money:
• **Positive Delta** — More buying than selling since HB (bullish pressure)
• **Negative Delta** — More selling than buying since HB (bearish pressure)
**6. Trend Channel**
A 5-point linear regression channel identifies the current trend:
• **UPTREND** — Both upper and lower channel lines slope upward
• **DOWNTREND** — Both lines slope downward
• **RANGING** — Mixed or flat slopes
The strategy also tracks where the HB event occurred within this channel (TOP, UPPER, MIDDLE, LOWER, BOTTOM) to contextualize the signal.
**7. Nearest Event Analysis**
The strategy identifies which event is closest to the current candle and analyzes the price action *after* that event:
• How many bullish vs bearish candles followed?
• Does post-event momentum confirm or contradict the event type?
This prevents false signals when, for example, a bearish event occurs but is immediately followed by strong bullish candles.
**SIGNAL LOGIC**
**🟢 LONG Signal Conditions:**
• Uptrend with positive cumulative delta and buyers accumulating
• At channel bottom/lower with strong buyer power remaining
• After a bearish event (HS) with bullish post-event momentum (reversal signal)
• Ranging market with positive delta and strong power
**🔴 SHORT Signal Conditions:**
• Downtrend with negative cumulative delta and sellers in control
• Opponent Dominance (buyer power exhausted) with bearish momentum
• Buyer Trap: HB at TOP in uptrend but power exhausted and delta negative
• After a bullish event (HB) with bearish post-event momentum (trap signal)
**⏳ NO_TRADE Conditions:**
• Conflicting signals (e.g., bearish event but bullish post-momentum)
• Ranging market without clear direction
• Mixed power readings
• Price position contradicts signal direction
**STRATEGY EXECUTION**
**Entry Rules:**
• Enter LONG when signal is "LONG" and conditions are valid
• Enter SHORT when signal is "SHORT" and conditions are valid
• **Pyramid**: Up to 2 entries allowed in the same direction (configurable)
• Each entry uses 10% of equity by default
• Only one entry per confirmed candle (prevents multiple fills)
**Stop Loss (Event Line Based):**
• **LONG positions**: Stop Loss placed below the HS line (seller support level)
• **SHORT positions**: Stop Loss placed above the HB line (buyer resistance level)
• A small buffer percentage is added to prevent premature stops
**Take Profit (Event Line Based):**
• **LONG positions**: Take Profit near the HB line (buyer resistance target)
• **SHORT positions**: Take Profit near the HS line (seller support target)
• A small buffer percentage ensures realistic fill expectations
**Exit Rules:**
• Exit LONG when signal changes to SHORT
• Exit SHORT when signal changes to LONG
• **NO_TRADE signal = HOLD** (do not exit, wait for clear direction)
• SL/TP orders remain active regardless of signal changes
**SETTINGS GUIDE**
**⚙️ General Settings:**
• *Calculation Method* — Choose between Intrabar (Precise) or Geometry (approximation)
• *Intrabar Resolution* — LTF for volume data (1T, 1S, 15S, 1M)
• *Lookback Length* — Window for scanning events (10-150 bars)
• *Timezone Offset* — Adjust clock display to your local time
**📊 Matrix Display Settings:**
• *Show Unified Matrix* — Toggle the information dashboard
• *Show Event Lines* — Toggle horizontal lines at event prices
• *Panel Size/Position* — Customize dashboard appearance
• *Projection Bars* — Extend event lines into the future
• *Depletion Threshold* — Percentage for depletion markers (default: 100%)
**🏷️ Rank Labels Settings:**
• *Show Rank Labels (HB/HS)* — Display labels on highest volume candles
• *Show Low Labels (LB/LS)* — Display labels on lowest volume candles
• *Ranks Count* — Number of rankings to display (1-5)
**📐 Trend Channel Settings:**
• *Show Trend Channel* — Toggle the 5-point regression channel
• *Line Color/Fill/Width/Style* — Customize channel appearance
**🎯 Trade Signal Settings:**
• *Long: Min Remaining Power %* — Minimum buyer power for LONG signal (default: 50%)
• *Short: Max Remaining Power %* — Maximum power for SHORT signal (default: 30%)
• *Opponent Dominance Threshold* — When to consider power "exhausted" (default: 0%)
• *Max Decay Angle* — Maximum consumption rate for valid entries (default: 60°)
**📈 Strategy Execution Settings:**
• *Enable Strategy* — Turn automatic trading on/off
• *Allow LONG/SHORT* — Enable or disable specific directions
• *Max Pyramid Entries* — Maximum entries in same direction (1-3)
• *SL Buffer %* — Distance below/above event line for stop loss (default: 0.15%)
• *TP Buffer %* — Distance from event line for take profit (default: 0.05%)
**VISUAL ELEMENTS**
**Chart Labels:**
• **#1 HB** — Highest Buyers (rank label on candle high)
• **#1 HS** — Highest Sellers (rank label on candle low)
• **#1 LB** — Lowest Buyers (rank label on candle high)
• **#1 LS** — Lowest Sellers (rank label on candle low)
• **🔋 / 🚨** — Buyer power depletion markers
• **🪫 / ⚠️** — Seller power depletion markers
**Event Lines:**
• **Blue horizontal lines** — HB price levels (buyer entry points)
• **Red horizontal lines** — HS price levels (seller entry points)
• **Cyan lines** — LB price levels
• **Orange lines** — LS price levels
• **Dashed extensions** — Projected levels into future bars
**Trend Channel:**
• **Orange lines** — Upper and lower channel boundaries (5-point regression)
• **Orange fill** — Channel area (90% transparency)
**Matrix Dashboard (6 rows):**
• Row 1: Header with symbol, LTF setting, and local clock
• Row 2: Volume snapshot (Total, Buy, Sell, Delta)
• Row 3: Column headers
• Row 4: Highest Buyers data (Age, Start Power, Consumed, Remaining, Decay, ETA)
• Row 5: Highest Sellers data
• Row 6: Signal Evaluation (Trend, Zone, Nearest Event, Signal, Reason)
**Strategy Markers:**
• **Green triangle up** — LONG entry
• **Red triangle down** — SHORT entry
• **Faded triangles** — Pyramid entries
• **Colored lines** — SL (red) and TP (green) levels when in position
**BEST PRACTICES**
**For Maximum Accuracy:**
1. Use **1T (tick)** or **1S** intrabar resolution when available
2. Trade liquid markets with good volume data (crypto majors, forex majors, high-volume stocks)
3. Use smaller lookback length (20-30) to ensure all bars have valid LTF data
4. Monitor the "Intrabar Valid Bars" counter in the matrix header
5. If you see data warnings, reduce lookback or increase LTF resolution
**For Longer Backtests:**
1. Use **15S or 1M** intrabar resolution for more historical data
2. Increase lookback length if needed
3. Understand that accuracy decreases with higher LTF settings
4. Consider using Geometry mode for very long backtests (approximation but always available)
**Understanding the Signals:**
• Pay attention to the signal *reasoning* shown in the matrix — it explains WHY
• **NO_TRADE** means the system sees conflicting factors — respect this caution
• Event lines act as dynamic S/R — they update as new volume events occur
• Cumulative Delta (Δ) often provides early warning of trend changes
**Risk Management:**
• The default 10% per entry with max 2 pyramids = 20% maximum exposure
• Event-line-based SL/TP provides logical levels based on actual volume events
• Always verify signals with your own analysis before trading
**INTERPRETING THE MATRIX**
**Power Status Examples:**
• *Remaining Power: 75%* — Buyers still have most of their strength
• *Remaining Power: 25%* — Buyers nearly exhausted, watch for reversal
• *Opponent Dominance: -50%* — Sellers have consumed 150% of buyer power (strong bearish)
**Decay Angle:**
• *Low angle (0-30°)* — Slow consumption, power lasting longer
• *High angle (60-90°)* — Rapid consumption, expect quick exhaustion
**ETA to Parity:**
• Shows estimated bars until Remaining Power reaches zero
• *"Overtaken"* with 🚨 means sellers have already dominated
**LIMITATIONS & DISCLAIMER**
**Technical Limitations:**
• Requires sufficient historical LTF data (varies by TradingView plan and symbol)
• Intrabar (Precise) mode may show invalid data warnings on symbols with limited history
• Strategy tester may not have access to the same LTF data as live trading
• Maximum 500 lines and 500 labels (TradingView platform limits)
**Important Notes:**
• This strategy focuses on **Highest Buyers only** — it does not analyze all market factors
• Past performance does not guarantee future results
• Volume data quality varies significantly between symbols and exchanges
• The strategy's signals are analytical tools, not trading recommendations
**Risk Disclaimer:**
This strategy is provided for **educational and informational purposes only**. Trading involves substantial risk of loss and is not suitable for all investors.
• Always use proper risk management
• Never risk more than you can afford to lose
• Backtest results may differ significantly from live trading
• You are solely responsible for your trading decisions
**TECHNICAL SPECIFICATIONS**
• Pine Script Version: 6
• Calculation: calc_on_every_tick=true, use_bar_magnifier=true
• Default Capital: 10,000
• Default Position Size: 10% of equity
• Maximum Lines: 500
• Maximum Labels: 500
• External Library: TradingView/ta/10 (for requestUpAndDownVolume)
*Smart Trader EP1 — Understanding Volume, One Event at a Time*
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.
Direction Bias [ Scalping-Algo ]======================================================================
// 📊 Direction Bias
// ======================================================================
//
// 🎯 What this indicator does:
// This indicator colors your candles based on the current market bias.
// 🟢 Green bars = bullish momentum
// 🔴 Red bars = bearish momentum
// ⚪ Gray bars = choppy or undecided market
//
// ⚙️ How it works:
// It uses a range filter that adapts to volatility. When price pushes
// above the filter and keeps moving up, you get green bars. When price
// drops below and continues down, you get red bars. The filter smooths
// out the noise so you don't get whipsawed on every little move.
//
// 📈 How to trade with it:
//
// 1️⃣ Follow the color
// 🟢 Green bars = look for longs only
// 🔴 Red bars = look for shorts only
// ⚪ Gray bars = stay out or reduce size
//
// 2️⃣ Entry timing
// ✅ Wait for color change from gray to green/red
// ✅ Enter on pullbacks while color stays the same
// ❌ Don't chase if you're late to the move
//
// 3️⃣ Exit signals
// 💡 When bars turn gray, tighten your stop or take profits
// 🔄 Color flip to opposite = close the trade
//
// 4️⃣ Best practices
// ⏱️ Works best on 1m to 15m charts for scalping
// 📍 Use with support/resistance levels for better entries
// 🚫 Don't trade against the color, even if you "feel" a reversal
// 📊 Combine with volume for confirmation
//
// 🔧 Settings:
// • Period: Higher = smoother but slower reaction (default 10)
// • Multiplier: Higher = less sensitive to small moves (default 4.0)
// • Adjust based on the asset you're trading
//
// 🔔 Alerts:
// Set alerts for "Bull" and "Bear" to get notified when bias changes.
Kernel Filter Histogram (RBF)The Kernel Filter Histogram (RBF) is a regime-detection and edge-confirmation tool built on Gaussian (RBF) kernel regression.
It is designed to identify when market conditions are favorable for participation and when traders should stay defensive.
Instead of reacting to price noise, this indicator measures the normalized slope of a smoothed kernel regression curve, converts it into a z-score, and displays it as a histogram representing directional edge pressure.
What It Measures
Underlying market regime (bullish, bearish, or neutral)
Strength and quality of directional momentum
Statistical edge expansion vs compression
When trend continuation is more likely vs chop
How It Works
Applies Nadaraya–Watson kernel regression using a Gaussian (RBF) kernel
Calculates the slope of the regression curve
Normalizes slope using ATR for cross-instrument consistency
Converts the result into a z-score to measure statistical deviation
Smooths the output into a readable histogram + signal line
Uses an optional threshold gate to filter low-quality conditions
Reading the Histogram
Green bars → Bullish regime / positive edge
Red bars → Bearish regime / negative edge
Gray bars → Neutral / low-edge environment
Above zero → Bullish pressure dominates
Below zero → Bearish pressure dominates
Threshold gating allows you to require minimum edge strength before treating signals as actionable.
Best Use Cases
Trade filter (only take longs when bullish, shorts when bearish)
Regime confirmation for existing strategies
Momentum quality assessment
Avoiding chop and low-probability setups
Multi-timeframe alignment tool
What This Is (and Is Not)
✔ IS: A high-quality regime and edge filter
✔ IS: Designed for professional trading systems
✔ IS: Instrument-agnostic and timeframe-agnostic
✖ NOT: A buy/sell signal generator
✖ NOT: A lagging moving average
✖ NOT: A beginner indicator
Recommended Usage
Use this indicator as a gatekeeper:
Only execute setups when the histogram confirms favorable regime conditions
Combine with your entry trigger, not instead of it
Works exceptionally well with trend-following, momentum, and mean-expansion systems
15-Minute High Low Short LinesThis indicator plots short horizontal lines showing the **high** and **low** of the most recently completed 15-minute candle, regardless of the chart's timeframe.
Key Features:
- Lines start exactly at the open time of the previous completed 15-minute bar
- Lines extend forward for a user-defined number of minutes (default: 60 minutes = 1 hour ahead)
- Only the latest lines are displayed (old lines are automatically removed for a clean chart)
- Fully customizable: line colors, width, and extension length
- Non-repainting and works perfectly on any timeframe (1m, 5m, 1h, daily, etc.)
- Ideal for marking recent 15-minute range levels for breakout or support/resistance trading
Great for intraday traders who want quick visual reference to the prior 15-minute high and low without clutter.
ORB Asia London NYThis script plots the highs & lows of all three market sessions Asia, London, and NY. in UTC The time frames can be adjusted to you're own ORB strategy.
The time period of opening range & the max timeframe to display it on can be adjusted from the settings.
So for eg. if want to use 15m NY ORB to trade, then set "NY time " as 14:30-14:45
The Setup Factory - Swing Data TSF - Swing data
Useful intraday updated data for swing traders
Interpretation and summary:
1. 20D Avg $ Vol: The average daily dollar volume (Price × Volume) over the last 20 trading days.
2. Live $ Vol: The total dollar volume accumulated during the current daily bar so far.
3. Relative Vol %: Today's volume progress compared to the average amount of volume typically accumulated by this exact minute over the last 20 days.
4. Projected Vol %: A prediction of the final daily volume total, calculated by applying today's current rate of outperformance (Buzz) to the full-day average.
5. Continuous Volume Buzz: The percentage difference between today's current volume and the historical average for this specific time window (e.g., how far "ahead of schedule" the stock is).
6. Volume Pace (15m): A comparison of the last 15 minutes of volume against the average 15-minute speed of the day so far (excluding the opening 15-minute surge).
7. Daily ATR %: The 14-day average daily price range (volatility) expressed as a percentage of the current stock price.
8. Dist. Today Low: The percentage distance between the current price and today’s lowest point.
9. Dist. Prior Low: The percentage distance between the current price and yesterday’s lowest point.
5 Layer Script P4 Potential Reversals Package This script is a context based potential reversal framework designed to highlight areas where directional risk may shift, not to predict exact tops or bottoms.
The script focuses on identifying exhaustion, failed continuation, and structural hesitation after price has completed an expansion or interacted with key higher-timeframe levels. It is intended to alert traders to possible inflection zones, where confirmation should be actively monitored.
How it works
-Detects conditions associated with loss of momentum or displacement failure
-Highlights potential reversal zones only after price interaction occurs
-Requires context and confirmation — no blind reversal signals
-No repainting once a zone or marker is confirmed
How to use it
-Use as an early warning tool, not an entry system
-Best applied after: Liquidity runs, Range extremes and Higher timeframe midpoint or boundary interaction
Look for confirmation such as:
-Market structure shifts
-Reaction at FVGs
-Signal Package confirmation
Entries should be executed on lower timeframes with risk defined but can be utilized on bigger timeframes as a swing if confirmed
Best practices
-Counter-trend setups require strong higher-timeframe confluence
-Not every highlighted zone will result in a reversal
-Works best during active sessions when liquidity is present
-Avoid using during low-volume or compressed ranges
This package is intentionally non-predictive and confirmation-dependent, designed to keep traders aligned with risk awareness rather than anticipation. However some signals can be treated as entries if "YOUVE IDENTIFIED THE RISK"- Mark Douglas
Predictive ZLEMA NavigatorThis is an advanced trend-following indicator that combines Zero-Lag Exponential Moving Averages (ZLEMA) with predictive crossover analysis to identify high-probability trade entries with exceptional timing precision.
Key Features:
1. Zero-Lag Technology
Utilizes ZLEMA calculation to eliminate the inherent lag found in traditional EMAs
Provides faster response to price movements while maintaining smooth trend identification
Default periods (34/89) align with Fibonacci sequence for natural market rhythm detection
2. Predictive Crossover System
Unique algorithm forecasts upcoming Golden Cross and Death Cross events before they occur
Displays estimated bars until next crossover, giving traders advance preparation time
Helps avoid late entries by signaling trend changes up to 200 bars in advance
3. Visual Direction Arrows
Color-coded projection arrows show the momentum trajectory of both fast and slow ZLEMAs
Adjustable projection length allows customization for different trading timeframes
Instantly identifies whether trends are strengthening or weakening
4. Multi-Layer Signal Confirmation
Clear crossover points marked with circles and confirmation ticks
Dynamic fill coloring between MAs for instant trend bias recognition
Bullish signals (green/blue) and bearish signals (orange/red) prevent confusion
Performance Characteristics:
Strengths:
Reduced Whipsaws: ZLEMA's lag reduction minimizes false signals in ranging markets
Early Detection: Predictive algorithm provides 10-50 bar advance warning of trend changes
Versatile Application: Works across all timeframes (1-minute to daily) and asset classes
Visual Clarity: Clean interface prevents information overload while maintaining comprehensive data
Optimal Use Cases:
Swing trading on 4H-Daily timeframes
Trend confirmation for breakout strategies
Portfolio rotation timing based on momentum shifts
Works exceptionally well on trending assets (crypto, indices, trending stocks)
Trading Approach:
Enter long on Golden Cross confirmation with upward direction arrows
Exit or reverse on Death Cross with downward momentum projection
Use prediction labels to scale into positions before actual crossover
Combine with volume analysis for enhanced confirmation
Built-in Alert System: Automated notifications for both bullish and bearish crossovers ensure you never miss a trading opportunity.
This indicator bridges the gap between reactive and predictive trading, giving you the speed of ZLEMA with the foresight of trend projection analysis.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice.Happy Trading
5-Layer Script Strategy P1 Midpoint Package (4H / D / W) This script is a multi timeframe framework that utilizes the 4H, Daily, and the Weekly timeframes. This Indicator automatically tracks the midpoints averages of those candles of the mentioned timeframes . This allows traders to actively see the markets momentum and opportunities for when the market reverses. These points acts as reaction levels and NOT ENTRY SIGNALS. This is a identity that helps identify direction and works with the other 4 Layers.
HOW IT WORKS
-Higher timeframe ranges are calculated using midpoints
-Midpoints persist until the candle closes
-No repainting either.
HOW TO USE THIS STRATEGY
-Start from the higher timeframe and work your way to the smaller ones
-Look for reactions and rejections rather than blind entries.
Weekly = bias is a swing
Daily = session to session directional bias
4HR = intraday framework to locate entries
WARNING
Not everyone uses the same settings therefore its natural to have multiple pieces, look through them and fix it to meet your expectations if need to.
MEGA Sector Rotation CRYPTOCAP - 7 Narrativas 1 H### MEGA Sector Rotation CRYPTOCAP - 7 Narratives
**Description for publishing on TradingView:**
This advanced indicator lets you visualize in real time the **rotation of narratives** within the crypto market through 7 key sectors, normalized for perfect side-by-side comparison.
Each line represents the **historical relative strength** (min-max normalization over 5000 bars) of a specific narrative, based on TradingView's official aggregated market caps (CRYPTOCAP) and custom sums. The lines oscillate between 0 and 100, with clear crossovers signaling when a sector is gaining or losing momentum relative to the others.
**The 7 narratives included:**
1. **Layer1** (pink) – Aggregated market cap of major Layer 1 blockchains.
2. **Memecoins** (bright green) – Official MEME.C sector (PEPE, SHIB, WIF, BONK, etc.).
3. **AI** (orange) – Artificial Intelligence and Big Data narrative.
4. **Exchanges** (purple) – Exchange tokens (centralized and decentralized).
5. **DeFi Total** (cyan) – Full aggregated market cap of the DeFi ecosystem.
6. **RWA Custom** (brown) – Custom sum of Real World Assets: ONDO + LINK + CFG + SYRUP.
7. **Privacy** (dark orange) – Custom sum of privacy coins: XMR + ZEC + DASH.
**Quick interpretation:**
- Line >80 and rising → Narrative is **HOT** (strong bullish rotation).
- Line <20 → Narrative is **COLD** (losing strength).
- Bullish crossovers → Money rotating into that sector.
- Transparent fills between lines to highlight leadership zones.
**Features:**
- Optimized for **lower timeframes** (5m, 15m, 1H, 4H) → ideal for day trading and scalping narratives.
- Works on any TF thanks to 5-minute resolution data.
- Thick lines, vibrant colors, and horizontal references (20/50/80) for instant reading.
Perfect for spotting early which narrative is attracting capital flows and anticipating sector moves in the crypto market.
Add this indicator and trade rotations like a pro!
#crypto #sectorrotation #narratives #altcoins #tradingview
MACD Histogram Expansion Alerts (Scalp)Purpose: Alerts when MACD histogram is expanding (momentum increasing) rather than simply crossing. Designed for 1-minute scalping and intraday momentum confirmation.
This script is for traders who are tired of late MACD cross alerts.
Instead of firing when MACD lines cross (which often happens after the move), this indicator alerts when the MACD histogram is expanding — meaning momentum is actually increasing right now, not rolling over.
I use it as a “heads up” alert, not a buy/sell signal. When it fires, I check price action, volume, VWAP, support/resistance, etc., to see if the move is worth trading.
Best suited for 1-minute charts, scalping, and fast intraday momentum.
MACD Histogram Expansion Alerts (Scalp) is a lightweight alert-focused indicator designed for intraday traders and scalpers, particularly on lower timeframes such as the 1-minute chart.
Rather than triggering alerts on standard MACD line crossovers (which tend to lag in fast or volatile markets), this script detects MACD histogram expansion — a condition that indicates momentum acceleration, not just direction.
🔍 What this script does
Uses a fast MACD configuration suitable for lower timeframes
Monitors the MACD histogram slope and magnitude
Triggers alerts only when the histogram expands for multiple consecutive bars
Alerts are fired on bar close only, reducing noise and false intrabar signals
🚀 Why focus on histogram expansion?
Histogram expansion highlights when momentum is building, which can be useful for:
Continuation setups
Early momentum confirmation
Avoiding entries when momentum is already fading
This approach is especially helpful in small caps, news-driven stocks, and volatile intraday instruments, where traditional MACD cross alerts can arrive too late.
🔔 Alert Types
Bullish MACD Histogram Expansion
Bearish MACD Histogram Expansion
Each alert can be enabled independently and is intended as an attention signal, not a standalone trading system.
⚙️ Customizable Inputs
MACD Fast / Slow / Signal lengths
Number of consecutive expanding histogram bars required
Optional minimum histogram magnitude filter
Optional directional filter (above/below zero line)
⚠️ Important Notes!!!!
This script does not place trades
Alerts should be used with additional context, such as price action, volume, VWAP, or support/resistance
Not designed for higher-timeframe or swing trading use .
If you find this helpful, feel free to adapt it to your own trading style or timeframe. This script is meant to be simple, flexible, and non-opinionated.
Intuitive Predictive MACD TargetsThis indicator uses Reverse Engineering math to calculate the exact price the market needs to reach for specific MACD events to happen on the current bar.
Standard MACD is a lagging indicator—you usually wait for the candle to close to confirm a signal. This script changes that by drawing "Finish Lines" on your chart, showing you exactly where price must go right now to trigger a Crossover or a Momentum Hook.
The "Reverse Engineering" Concept
Instead of calculating MACD from Price, we calculate the Required Price from the Target MACD.
Q: "At what price will the MACD line cross the Signal line?"
A: The script solves this and draws the Green/Red "Crossover" Line.
Key Features
1. Three Distinct Targets
Crossover Target (PCO/NCO): The exact price needed to trigger a Buy/Sell signal on the current candle.
Dynamic Coloring: Turns Green if price needs to go UP to cross, Red if price needs to go DOWN.
Settlement Target (The Hook): The exact price where the MACD momentum flattens out (Angle = 0). If price touches this Orange Dashed Line, the trend is likely pausing or preparing to reverse.
Zero Cross Target: The price needed for MACD to reclaim the Zero Line.
2. Smart "Staggered" Labels (No Overlap)
Unlike other scripts where text piles up and becomes unreadable, this indicator automatically spreads labels horizontally.
Crossover info stays near the price.
Settlement info is shifted to the right.
Zero info is shifted further right.
Result: You can read all three targets clearly, even if the prices are almost identical.
3. Full Customization
Line Length: Choose "Infinite" to see targets as Support/Resistance levels across the screen, or "Short" to keep your chart background clean.
Text Visibility: Option to force text to White or Black for high contrast on Dark/Light themes.
Styles: Fully adjustable colors, line widths, and styles (Solid, Dashed, Dotted) for each target type.
How to Use
The "Finish Line" Strategy: If you are Long, and the Red NCO Line appears just below the current price, be cautious. It means a very small drop will confirm a Bearish Cross.
Momentum Checks: Watch the Orange "Settlement" Line.
If price is moving away from the Orange line, the trend is accelerating (Safe to hold).
If price touches the Orange line, momentum has died (Consider taking profit).
Settings
Visual Settings: Change Line Length (Infinite/Short) and Text Color.
MACD Settings: Standard inputs (Default 12, 26, 9).
Toggles: Option to show/hide the Zero Line target.
UTC Daily High / Low Tracker (UTC Anchored)This indicator will track the Daily high and low AKA daily range of each day using UTC (00:00)
ATR Price ZoneThe ATR Price Zone is an indicator which takes the Daily Average True Range of a stock and shows how high and low the price of the stock could possibly go from the opening price.
Key features:
The ATR Price Zone is an indicator which takes the Daily Average True Range of a stock and shows how high and low the priced the stock could possibly go from the opening price.
Key features:
ATR Price Zone uses zones looking forward to help strategize possible movements in price.
This indicator is customizable with zones, horizontal lines, a quick reference chart and colors.
The indicator continues to move forward with the chart.
It references the Daily True Average Range regardless of which Time Frame you are using.
It also references the opening candle with a blue arrow when using less than daily time frames.
Create by BothwellTrader






















