Algo Reverse This indicator is a robust trend-following strategy designed to filter out market noise and "falling knife" scenarios. It combines Heikin Ashi reversal signals with a strict Smoothed EMA Slope Filter and a Candle Body Size Filter to ensure high-quality entries.
Unlike standard strategies that simply check if the price is above/below the EMA, this script verifies the actual angle/slope of the EMA to ensure the trend has genuinely shifted direction.
Key Features:
🛡️ Smoothed EMA Slope Filter:
Most indicators trigger a BUY the moment price crosses the EMA, leading to losses during fakeouts.
This script checks the EMA value against its value X bars ago (Setting: Slope Lookback).
Benefit: Signals are generated only when the EMA line itself is physically rising (Green) for Longs or falling (Red) for Shorts. This prevents entering too early on a sharp reversal.
🕯️ Candle Body Filter:
Filters out low-quality candles (Dojis, Spinning Tops) with long wicks.
Logic: A signal is valid only if the candle body constitutes at least 70% (default) of the total candle range.
Benefit: Ensures entries are made on strong momentum candles, not on market indecision.
🔹 Heikin Ashi + ATR Impulse:
Uses Heikin Ashi logic to detect smooth trend reversals.
Validates the move with an ATR multiplier to ensure sufficient volatility.
Settings Guide:
Confirmation Bars: 1 (Recommended). Waits for the candle to close to confirm the signal.
EMA Slope Lookback: 5 (Default). Compares current EMA to EMA 5 bars ago. Increase for more stability, decrease for faster (but riskier) signals.
Min Candle Body: 0.7 (70%). Lower to 0.5 for more signals, raise to 0.8 for stricter filtering.
Этот индикатор представляет собой надежную трендовую стратегию, разработанную для фильтрации рыночного шума и предотвращения входов против сильного тренда («ловли ножей»). Он объединяет разворотные сигналы Heikin Ashi со строгим Фильтром Сглаженного Наклона EMA и Фильтром Размера Тела Свечи.
В отличие от стандартных стратегий, которые просто смотрят положение цены относительно EMA, этот скрипт проверяет реальный угол наклона линии, гарантируя, что тренд действительно развернулся.
Ключевые особенности:
🛡️ Сглаженный Фильтр Наклона EMA (Smoothed Slope):
Обычные индикаторы часто дают ложный BUY при резком пробое EMA, когда тренд все еще смотрит вниз.
Этот скрипт сравнивает текущую EMA с её значением X баров назад (Настройка: Сглаживание наклона).
Польза: Сигнал появляется только тогда, когда сама линия EMA окрашивается в Зеленый (растет) или Красный (падает). Это защищает от ложных пробоев.
🕯️ Фильтр Тела Свечи (Body Filter):
Отсеивает «мусорные» свечи (Доджи, Волчки) с длинными тенями и маленьким телом.
Логика: Сигнал валиден, только если тело свечи занимает минимум 70% (по умолчанию) от всей длины свечи.
Польза: Входы совершаются только на сильных, полнотелых свечах, подтверждающих намерение рынка.
🔹 Heikin Ashi + ATR Импульс:
Использует логику Heikin Ashi для определения плавного разворота.
Подтверждает вход множителем ATR, чтобы исключить входы на низкой волатильности.
Настройки:
Подтверждение входа: 1 (Рекомендуется). Ждет закрытия свечи для фиксации сигнала.
Сглаживание наклона (Lookback): 5. Сравнивает EMA с EMA 5 свечей назад. Увеличьте для надежности, уменьшите для более быстрой реакции.
Мин. тело свечи: 0.7 (70%). Уменьшите до 0.5 для большего количества сигналов, увеличьте до 0.8 для строгого отбора.
การวิเคราะห์แนวโน้ม
Anchored LRL using ZigZag AnchorAnchored Linear Regression Channel - ZigZag Pivot
The Anchored Linear Regression Channel (LRL) dynamically anchors to the most recent ZigZag pivot point, providing traders with a regression-based channel that resets with each significant price swing.
HOW IT WORKS:
This indicator combines ZigZag pivot detection with linear regression analysis. When price reverses by a specified ATR multiple, a new pivot is identified. After a minimum number of bars, the linear regression channel anchors to this pivot and projects forward to the current bar, recalculating with each new bar.
KEY FEATURES:
- Dynamic anchoring to ZigZag highs and lows
- Customizable ATR-based reversal detection
- Two standard deviation channel bands (inner and outer)
- Adjustable minimum bars before anchor reset (ideal for scalping on lower timeframes)
- Separate controls for ZigZag smoothing vs. anchor reset timing
- Color-coded regression line (up/down trend)
- Optional line extension to the right
- Fully customizable colors and line widths
- Visual label marking the anchor pivot point
INPUTS:
- ATR Reversal: Multiplier for ATR-based pivot detection (default: 2.0)
- MA Length: EMA smoothing for ZigZag calculation (default: 5)
- ATR Length: Period for ATR calculation (default: 5)
- Min Bars After Pivot: Bars required before anchor resets (default: 3, reduce to 1-2 for faster scalping)
- Channel Widths: Inner (0.70) and Outer (1.00) standard deviation multiples
- Line Colors: Customizable colors for uptrend/downtrend and channel lines
- Label Colors: Customizable background and text colors
HOW TO USE:
1. Apply the indicator to your chart
2. Adjust "Min Bars After Pivot" based on your timeframe:
- 1-minute charts: Use 1-2 bars for quick scalping entries
- 5-minute+ charts: Use 3-5 bars for more confirmation
3. Watch for the regression line color to indicate trend direction
4. Use channel bands as potential support/resistance zones
5. The label shows which pivot (high/low) the channel is anchored to
BEST PRACTICES:
- Lower timeframes (1-5 min): Use lower "Min Bars After Pivot" (1-3) for faster reaction
- Higher timeframes: Use higher values (5+) for more confirmed pivots
- Combine with price action and volume for confirmation
- Adjust ATR Reversal based on instrument volatility
NOTES:
- This indicator repaints as it recalculates with each new bar
- Channel resets when a new ZigZag pivot is confirmed
- Not suitable for backtesting strategies due to dynamic nature
- Works best on liquid instruments with clear price swings
DISCLAIMER:
This indicator is for educational and informational purposes only. It does not provide trading signals or guarantees of profitability. Past performance is not indicative of future results. Always perform your own analysis and risk management.
Gamma of Gamma - AnticipationGamma of Gamma — Anticipation Engine
What if you could detect market inflections before they become obvious? Not react to momentum — anticipate the momentum itself.
"Gamma here refers to mathematical acceleration (2nd derivative), NOT options Gamma"
Gamma of Gamma (GoG) operates one abstraction layer above conventional indicators. While RSI tells you what momentum did , GoG tells you what momentum is about to do . This is the difference between chasing price and positioning ahead of it.
Core Innovation: Traditional indicators measure first-order effects (price change) or second-order effects (momentum/acceleration). This system measures the third derivative — the rate of change of acceleration itself. When Gamma-of-Gamma reaches extremes, it signals that pressure dynamics are about to flip — often 2-5 bars before price visibly reacts.
Target Users: Discretionary traders, scalpers, and swing traders who want early positioning signals with statistical rigor. Effective on stocks, crypto, forex, and futures with meaningful volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THIRD-DERIVATIVE ANALYSIS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Hierarchy of Market Information
Most traders operate at the wrong level of abstraction:
• Price → What happened (lagging)
• Momentum → How fast it happened (still lagging)
• Gamma (2nd Derivative) → How momentum is changing (coincident)
• Gamma of Gamma (3rd Derivative) → How FAST that change is changing ( leading )
The third derivative captures inflection acceleration — the mathematical signature of regime transition. When GoG reaches extreme values, the market is telegraphing that current pressure dynamics are unsustainable.
Why This Beats RSI
RSI measures momentum magnitude. GoG measures momentum trajectory .
Consider this scenario: RSI reads 70 (overbought). Is the move exhausted or just getting started? RSI cannot tell you. GoG can — because it measures whether buying pressure is accelerating into the high RSI reading (continuation likely) or decelerating despite high RSI (reversal imminent).
RSI answers: "How strong was the move?"
GoG answers: "Is the move strengthening or weakening right now ?"
The first is historical. The second is predictive.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MATHEMATICAL FOUNDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1: Cumulative Volume Delta (CVD)
The foundation is order flow approximation:
• Up bar (close > prior close): Volume classified as buying pressure
• Down bar (close < prior close): Volume classified as selling pressure
• CVD = Running sum of signed volume
Interpretation: Rising CVD indicates net aggressive buying. Falling CVD indicates net aggressive selling. CVD divergence from price often precedes reversals.
Layer 2: Gamma (Second Derivative)
Gamma measures acceleration of order flow:
Formula: Gamma = CVD - 2×CVD + CVD
This is the discrete second derivative — the rate of change of the rate of change. When Gamma spikes positive, buying pressure is accelerating . When Gamma spikes negative, selling pressure is accelerating.
Layer 3: Gamma of Gamma (Third Derivative)
GoG measures jerk — the acceleration of acceleration:
Formula: GoG = Gamma - 2×Gamma + Gamma
Critical insight: Extreme GoG readings indicate that current pressure dynamics are reaching an inflection point. The system is "overextended" in its current trajectory and will likely revert or reverse.
Layer 4: Z-Score Normalization
Raw GoG values are normalized against their 50-period distribution:
Formula: GoG_Z = (GoG - Mean_50) / StdDev_50
Benefit: Z-scores are regime-adaptive. A "2.0" reading always means "2 standard deviations from normal" regardless of whether you're trading a penny stock or ES futures. This makes thresholds consistent across instruments and timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL GENERATION LOGIC
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Long Signal (Bullish Anticipation)
Triggers when:
• GoG Z-score < -Threshold (default -2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Selling pressure acceleration has reached an extreme negative reading. The selling is "exhausting itself" — acceleration is peaking and will soon decelerate. Buyers are likely to step in.
Short Signal (Bearish Anticipation)
Triggers when:
• GoG Z-score > +Threshold (default +2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Buying pressure acceleration has reached an extreme positive reading. The buying is "exhausting itself" — often occurs at blow-off tops, failed breakouts, or momentum climaxes.
Why Volume Confirmation?
Gamma acceleration in thin liquidity is meaningless noise. The volume filter ensures signals occur only when meaningful participation backs the pressure dynamics. This dramatically reduces false signals during low-activity periods.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONFIDENCE ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not all signals are equal. The Confidence Engine quantifies signal strength:
Confidence Calculation:
Confidence = 50 + ((|Z-Score| - Threshold) / Threshold) × 100
Capped at 100%
Visual Representation:
• Small orb = Low confidence (50-65%)
• Normal orb = Medium confidence (65-80%)
• Large orb = High confidence (80-100%)
Orb transparency also adjusts — high-confidence signals appear brighter and more prominent. This creates intuitive visual hierarchy where stronger signals demand more attention.
Practical Use:
• High confidence (>80%): Consider larger position size, tighter stops
• Medium confidence (50-80%): Standard position size
• Low confidence (<50%): Reduced size or wait for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INTEGRATED BACKTESTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every signal system needs accountability. The onboard backtester provides real-time performance tracking:
Core Metrics:
• Total Trades
• Win Rate
• Profit Factor
• Expectancy (average P&L per trade)
• Net P&L
• Max Drawdown
• Average Win / Average Loss
Methodology:
• Positions held for configurable bar count (default 10 bars)
• Forces objective evaluation independent of discretionary exits
• Updates in real-time as new trades complete
Optimizer Mode:
Enable for parameter tuning research:
• Stability Score (0-100 points): Composite evaluation of parameter robustness
• Trade Density : Signals per 1000 bars — monitors over/under-trading
• Parameter Display : Current settings for documentation
• Robustness Rating : ROBUST / STABLE / FRAGILE / OVERFIT
Stability Scoring Breakdown:
• Win Rate ≥55%: +25 points | ≥50%: +15 points | ≥45%: +5 points
• Expectancy >0.5%: +25 points | >0.1%: +15 points | >0%: +5 points
• Total Trades ≥30: +25 points | ≥20: +15 points | ≥10: +5 points
• Profit Factor ≥1.5: +25 points | ≥1.2: +15 points | ≥1.0: +5 points
Target: 60+ points indicates stable parameters. Below 40 suggests overfitting risk.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART EXECUTION SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unique feature: Entry and exit markers display directly on the price chart via force_overlay, even though the indicator runs in a separate pane.
Visual Markers:
• ▲ Green Triangle (below bar): Long entry at exact price level
• ▼ Red Triangle (above bar): Short entry at exact price level
• ✕ Gold X-Cross : Position exit after hold period
Benefit: Immediate visual correlation between GoG signals and price action. Review historical trades without switching between panes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DUAL DASHBOARD SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Main Dashboard — Real-Time State
Displays:
• Current GoG regime (EXTREME HIGH / EXTREME LOW / NEUTRAL)
• GoG Z-Score (numerical)
• Raw GoG value
• Gamma value
• CVD (Cumulative Volume Delta)
• Volume status (Active/Low with ratio)
• Signal state (Scanning / Long Signal / Short Signal / In Position)
• Confidence meter with visual bar
• Entry price when in position
Backtest Dashboard — Performance Metrics
Displays all backtester metrics in compact format. Switches to Optimizer view when Optimizer Mode enabled.
Both dashboards feature:
• Configurable position (6 locations including Middle Left/Right)
• Adjustable text size (Tiny/Small/Normal/Large)
• Transparency control for visual integration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PARAMETER GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Calculation Settings
• GoG Extreme Threshold (default 2.0): Z-score level for signal generation. Higher = fewer but stronger signals. Range: 0.5-5.0
• Gamma Smoothing (default 3): SMA period for Gamma. Lower = more responsive, more noise. Higher = smoother, more lag. Range: 1-20
• GoG Smoothing (default 5): SMA period for GoG. Filters micro-spikes while preserving structural inflections. Range: 1-20
• Min Volume Multiple (default 1.2): Volume must exceed this multiple of 20-period average. Ensures signals have participation backing. Range: 0.5-3.0
Backtester Settings
• Backtest Hold Bars (default 10): Forced holding period for backtester evaluation. Adjust based on timeframe and trading style.
• Parameter Optimizer Mode : Enables extended metrics for tuning research.
Tuning by Timeframe
Scalping (1-5 min):
Threshold: 1.5-2.0 | Gamma Smooth: 2-3 | GoG Smooth: 3-4 | Hold: 5-8 bars
Day Trading (15-60 min):
Threshold: 2.0-2.5 | Gamma Smooth: 3-5 | GoG Smooth: 5-7 | Hold: 8-12 bars
Swing Trading (4H-Daily):
Threshold: 2.5-3.0 | Gamma Smooth: 5-7 | GoG Smooth: 7-10 | Hold: 10-15 bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE: PRACTICAL WORKFLOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 1: Identify Regime
Watch the GoG Z-score line. Most of the time it oscillates within the neutral zone (between thresholds). This is "scanning" mode — no actionable signal.
Step 2: Wait for Extreme
When Z-score crosses threshold AND volume confirms, a signal fires. The orb appears in the indicator pane; the triangle appears on price chart.
Step 3: Assess Confidence
Check orb size and dashboard confidence reading:
• Large bright orb + 80%+ confidence = High conviction setup
• Small faint orb + <60% confidence = Requires additional confirmation
Step 4: Execute with Context
GoG signals anticipate — they don't confirm. Use price structure (support/resistance), higher timeframe trend, or other confirmation before entry.
Step 5: Manage Position
Exit markers show backtester exits. For live trading, consider:
• Time-based exit (signal's hold period)
• Opposite signal exit
• Fixed R:R targets
Step 6: Review Performance
Check Backtest Dashboard regularly. If Win Rate drops below 45% or Expectancy goes negative, reassess parameters or market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS INDICATOR IS — AND ISN'T
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This Indicator IS:
✅ State-transition detector (balance → imbalance)
✅ Early warning system for momentum shifts
✅ Anticipation tool for pre-positioning
✅ Statistical framework with built-in accountability
This Indicator IS NOT:
❌ Mechanical buy/sell system (requires discretion)
❌ Trend-following indicator
❌ Reversal-only indicator
❌ Replacement for risk management
Best Use Cases:
• Detecting early reversals before obvious confirmation
• Anticipating breakouts during volatility compression
• Timing pullback entries in established trends
• Identifying exhaustion at momentum climaxes
Challenging Conditions:
• Extremely low volume environments
• News-driven gaps (no order flow to measure)
• Instruments with unreliable volume data
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY STATEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Innovation 1: Third-Derivative Order Flow Analysis
While first and second derivatives are common, applying third-derivative (jerk) analysis to cumulative volume delta is novel. This captures inflection points that lower-order analysis misses entirely.
Innovation 2: Z-Score Adaptive Thresholds
Rather than fixed thresholds that require per-instrument tuning, z-score normalization creates self-adapting signal levels that work consistently across any liquid instrument.
Innovation 3: Confidence-Weighted Visual System
Dynamic orb sizing and transparency based on signal strength provides intuitive visual hierarchy. Stronger signals literally appear larger and brighter.
Innovation 4: Integrated Accountability
Built-in backtester with optimizer mode enables parameter validation directly on chart. No external tools or spreadsheets required.
Innovation 5: Dual-Pane Execution Visualization
Force-overlay chart signals bridge the gap between indicator pane and price action, enabling immediate visual trade review.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LIMITATIONS & DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Limitations
• Volume classification uses bar direction (close vs prior close), not tick-level aggressor data. Precision loss estimated 10-15% vs institutional-grade data.
• CVD approximation assumes volume follows price direction. Works well in trending conditions; less precise in choppy markets.
• Backtester uses fixed hold period, not optimal exit logic. Real performance may vary with proper trade management.
Market Limitations
• Requires meaningful volume data. Avoid instruments with reported volume issues.
• Signals may cluster during high-volatility events. Not every signal should be traded.
• Anticipation signals appear early by design. Patience required — price may continue against signal briefly before reversing.
Risk Disclosure
• Trading involves risk of loss. Past performance does not guarantee future results.
• This indicator provides analysis tools, not financial advice.
• Always use proper position sizing and risk management.
• Backtest results are hypothetical and do not include slippage, commissions, or fees.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED SETTINGS BY MARKET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Crypto (BTC, ETH, SOL)
Threshold: 1.8-2.2 | Gamma: 3 | GoG: 5 | Volume: 1.3x | TF: 15min-4H
Notes: Higher volatility produces more signals. Consider higher threshold to filter.
Forex Majors (EURUSD, GBPUSD)
Threshold: 2.0-2.5 | Gamma: 4 | GoG: 6 | Volume: 1.2x | TF: 5min-1H
Notes: Lower volatility requires patience. Volume proxy via tick volume works adequately.
Stocks (Large Cap)
Threshold: 2.0-2.5 | Gamma: 3-4 | GoG: 5-6 | Volume: 1.2x | TF: 15min-Daily
Notes: Real volume data provides cleanest signals. Watch for opening/closing auction distortions.
Futures (ES, NQ, CL)
Threshold: 2.0-2.3 | Gamma: 3 | GoG: 5 | Volume: 1.2x | TF: 5min-1H
Notes: Excellent volume data. Session boundaries may produce false signals — consider RTH only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONCLUSION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Gamma of Gamma represents a fundamental shift in signal philosophy: from reacting to momentum to anticipating momentum.
By operating at the third derivative of order flow, this system detects the mathematical signatures of regime transition — the moments when current pressure dynamics become unsustainable and reversal becomes probable.
This is not another oscillator telling you what already happened. This is an anticipation engine positioning you for what's about to happen.
Stop chasing. Start anticipating.
RSI tells you where momentum was. GoG tells you where it's going.
Taking you to school. - Dskyz , Trade with probability. Trade with anticipation. Trade with GoG
A.I. Market Cipher Z [RubiXalgo]A.I. 👑 Market Cipher Z
"Rubik's Algo" – Where Ichimoku mathematics meets Rubik's Cube solving speed under machine-learning color control.
Imagine a speed-cuber solving a Rubik's Cube while juggling — fast, precise, seemingly chaotic yet perfectly aligned layers.
This indicator visualizes that same layered, adaptive intelligence in markets:
Core Visual Metaphor
• Fast Rubik → short-term VSQC Kalman matrix (dynamic 9–21 lookback)
• Slow Rubik → long-horizon dynamic matrix (≈188 base length)
• Sharkwave → higher-timeframe TTM Squeeze + wave-momentum cipher
• Color language → machine-learned gradients (k-NN + Kalman + LOWESS)
Main elements on chart
• Dynamic fast + slow trend lines with gradient fill (bull/bear strength)
• Multi-layer Sharkwave plot (WaveCrest, DeepOcean, Undertow currents)
• Volume Recovery Zones (green/red imbalance rectangles – optional)
• Wick-pressure Bounce Boxes (extreme OB/OS zones – optional)
• GannB-inspired Vxt3 sonar dots (volume-confirmed turning points)
• Two momentum power tables:
❖ Kalman Trend Filter % → overall trend strength
◆ Stochastic Money Flow % → momentum / OB-OS heat
Key Trading Intuition
Green table(s) + green dot + price near fast line = high-probability reversal / continuation long
Red table(s) + red dot + price near slow line = high-probability reversal / continuation short
Bright/dark gradients = conviction | yellow/neutral = wait or fade
Settings highlights
VSQC Dynamic Scaling Lookback 18 ← heartbeat speed (9–21 sweet spot)
Dynamic Maximum Length 188 ← memory horizon
A.I. Money Flow Momentum Window 18 ← core rhythm
Prediction neighbours (k) 63 ← pattern memory depth
Sharkwave timeframe 60 ← usually 4×–24× chart tf
Not financial advice. Trading involves substantial risk of loss.
Use only as one piece of your decision process. Past performance ≠ future results.
© Jesse_Geluk 2025 • Mozilla Public License 2.0
Educational / non-commercial reuse encouraged under CC BY-NC-SA 4.0
[codapro] Elite Momentum & Smart Money Detector
Elite Momentum & Smart Money Detector
Overview
The Elite Detector is a non-repainting indicator that merges Smart Money Concepts, Adaptive Volatility-Based Momentum, and Multi-Timeframe Trend Confluence to identify high-probability trade setups. This tool helps confirm institutional intent and market pressure before triggering actionable signals.
Core Systems
Smart Money Concepts (SMC)
• Highlights institutional order blocks
• Detects equal highs/lows as liquidity zones
• Automatically cleans up outdated zones for clarity
Adaptive Momentum Engine
• Momentum calculated with volatility-adjusted smoothing
• Normalized scale from -100 to +100
• Candle coloring reflects trend strength dynamically
Squeeze Detection System
• Flags volatility contraction zones using Bollinger and Keltner channels
• Background shading highlights compression zones
• Histogram shows directional breakout pressure
Multi-Timeframe Trend Validation
• Aligns signals with higher timeframe momentum
• Built-in logic auto-selects appropriate HTF per chart
• Reduces false signals and improves timing
Signal Logic
Buy Signal appears when:
Momentum crosses from negative to positive
Squeeze condition is active
Higher timeframe confirms bullish trend
Sell Signal appears when:
Momentum crosses from positive to negative
Squeeze condition is active
Higher timeframe confirms bearish trend
All signals are non-repainting and appear only once all conditions are met.
Visual Dashboard (Top-Right Corner)
Displays real-time confirmation across five categories:
Momentum: Current trend direction and strength
Squeeze: Indicates if volatility is compressed
HTF Trend: Confirms higher-timeframe alignment
Volatility: Current volatility phase (low, normal, or high)
Signal Status: Buy, Sell, or Neutral (Wait)
Chart Visuals
Candle Colors:
• Bright green/red = Strong momentum
• Faded green/red = Weak momentum
Background Colors:
• Orange = Squeeze is active
• Clear = Normal market activity
Boxes:
• Green = Bullish order blocks
• Red = Bearish order blocks
Dashed Lines:
• Red = Equal highs (liquidity zones above)
• Green = Equal lows (liquidity zones below)
Alert Conditions
Includes three prebuilt alerts for automation and webhook systems:
Elite Buy Signal
Elite Sell Signal
Squeeze Activation
These alerts allow users to respond to market shifts in real time or integrate with automated trading workflows.
Best Practices
Wait for Confluence: Confirm all three systems (momentum, squeeze, HTF trend) before entering
Watch Order Blocks: Institutional zones often act as support/resistance
Monitor Liquidity Zones: Be cautious of stop hunts near equal highs/lows
Use Dashboard Cues: Let the HUD validate your setup
Always Use Risk Management: This tool increases probability, not certainty
Example Setup:
1. Squeeze background appears
2. Buy signal triangle confirms
3. Dashboard shows: Momentum strong up, Squeeze on, HTF trend up
4. Price bounces off green order block
→ High-probability long entry
Why It Works
This tool leverages multiple uncorrelated concepts to filter low-quality trades and highlight setups with real institutional backing:
Order Blocks and Liquidity Zones track smart money footprints
Volatility-adjusted Momentum captures real energy shifts
Multi-Timeframe Confluence confirms trades in the broader context
Non-repainting signals ensure reliability
Final Note
The Elite Detector is designed to show you:
Where smart money is positioned,
When the market is coiling for a move,
and Which direction is supported by momentum and trend.
Use it as your high-probability entry engine — across any market or timeframe.
Disclaimer
This tool was created using the CodaPro Pine Script architecture engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts. It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital.
Current Fractal High/Low (Dynamic) v2.3# 📝 Current Fractal High/Low (Dynamic) v2.3 – Changelog
## ➕ Additions
- ✅ New option: **Enable Historical Fractals** – Displays past FH/FL levels using dashed lines.
- ✅ **Breakout Alert Conditions**: Alerts added for breakout of the most recent Fractal High and Low.
- ✅ **Inline Labels**: FH/FL labels now appear directly on the fractal lines.
- ✅ **Single Alert Toggle**: Option to trigger alerts only once per breakout.
- ✅ Codebase prepared for future features (e.g. fractal tagging, count limits).
## 🔧 Improvements
- 🔄 Fractal levels now update **only after a valid breakout**, not just when a new pivot is formed.
- 🧱 Improved variable scope handling (no redeclaration issues).
- 📦 Ready for migration to **Pine Script v6**.
## 🛠 Known Limitations / To-Do
- 🔹 No current option to limit historical fractals (e.g. show last 5 only).
- 🔹 FH/FL labels currently use text ("FH"/"FL") — numerical values may be added in a future update.
---
📌 Free to use with attribution. Developed by: (www.stairwaytoprofit.com)
Mobius Trend Pivot (NPR21 v6)Mobius Trend Pivot (NPR21 v6)
Overview
This indicator identifies trend pivots using higher highs with higher lows (bullish trends) and lower lows with lower highs (bearish trends). Originally created by Mobius (V01.01.29.2019) for ThinkOrSwim, this Pine Script conversion maintains the original logic while fixing critical rendering issues found in previous TradingView versions.
How It Works
The indicator tracks price trends over a user-defined lookback period (default n=5) to establish pivot points. When a valid trend pivot forms, the indicator plots:
Red zone (bearish): Upper pivot line with confirmation level below
Green zone (bullish): Lower pivot line with confirmation level above
White dashed lines: Risk-off levels for position management
Confirmation levels are calculated as a multiple (R_Mult, default 0.7) of the Average True Range at the pivot.
Trading Rules (from Mobius original code)
Entry: Trade when price crosses and closes outside the pivot confirmation line
Risk Management: Use the pivot line itself as your risk point - exit if crossed (avoid hard stops)
Risk-Off: Target an ATR multiple for initial profit taking to achieve a risk-free trade
Stop Management: Move mental stop to break-even once risk-off is achieved
Runner Management: Adjust mental stop to new support/resistance levels as they form
What Makes This Version Different
NPR21 v6 fixes critical bugs present in other TradingView versions:
✅ Consistent transparency - The red/green cloud fills maintain constant 85% transparency and no longer progressively darken over time
✅ No overlapping renders - Eliminated the issue where multiple indicator instances would layer on top of each other, creating visual clutter
✅ Proper memory management - Implements linefill deletion/recreation logic to prevent object accumulation
✅ Clean visual display - Matches the original ThinkOrSwim appearance with professional-looking zones
Key Features
Automatic pivot detection based on price structure
Dynamic support/resistance zones
Built-in risk management levels
Alert capability for pivot confirmation crossovers
Minimal lag - responds quickly to trend changes
Works on all timeframes and instruments
Settings
n (default 5): How many bars to look back for trend confirmation
R_Mult (default 0.7): Adjusts how far the confirmation lines sit from pivots
Lower n = more sensitive, more signals
Higher n = less sensitive, fewer signals
Color Scheme
Red lines/zones: Bearish pivots and short trade setups
Green lines/zones: Bullish pivots and long trade setups
White dashed lines: Risk-off target levels
Best Practices
Use 2+ contracts to implement the risk-off strategy
Combine with price action and volume for confirmation
Adjust n and R_Mult based on instrument volatility
Works best on liquid futures and forex pairs
Consider using higher timeframes for swing trades
Credits
Original indicator concept and logic: Mobius (ThinkOrSwim, January 2019)
Pine Script conversion and optimization: NPR21
Note: This indicator is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management and position sizing.
MB Break & Retest MB Break & Retest + VWAP (ORB) is an Opening Range Breakout indicator built for intraday trading. It captures the first 15 minutes of the session to plot the Opening Range High, Low, and Midpoint. After the Opening Range is set, it looks for a confirmed breakout using two conditions: price must close a user-defined distance beyond the OR High or OR Low, and the breakout candle must meet a minimum 5-minute volume threshold. If both the OR High and OR Low break in the same session, the indicator flags the market as choppy and avoids taking trades.
Trades are not taken on the breakout candle. Instead, the script waits for price to retest the Opening Range midpoint and enter only when that retest shows acceptable confirmation. Optional filters include a close-position filter (requiring the candle to close in the top/bottom portion of its range), a minimum retest volume requirement, and a midpoint “respect” filter that requires price to reject away from the midpoint by a set distance rather than simply touching it.
An optional VWAP filter adds directional bias: longs are allowed only when the midpoint is sufficiently below VWAP (with a configurable buffer), and shorts are allowed only when the midpoint is sufficiently above VWAP. The VWAP line can be displayed, and the script tracks how many potential trades were filtered out by the VWAP rule.
The indicator also includes built-in trade management and visual risk tools. It plots stop-loss and take-profit zones, supports a partial profit target (taking 50% off at a specified move), and can move the stop to break-even once a configurable R:R threshold is reached. Entry, partial, break-even, stop, and target events can be labeled on the chart.
A live status panel shows the current state (watching, breakout detected, trade active, session closed, or choppy), along with OR levels, midpoint, VWAP context, and volume information. A backtest dashboard summarizes performance metrics such as net P/L, win rate, profit factor, average win/loss, long vs short stats, breakeven exits, partial exits, streaks, and VWAP-filtered counts.
SBMS RSI+MAThis is clearly indicating the RSI with colors on panel and gives idea about overbought and oversold easily in visually clear color bands.
We have made the Alerts facility for knowing the trend improving or trend slowing now.
If this is combined with RSI divergence can be best tool to spot revrsals like in case of Double Bottom OR Double Top to confirm for trade initiation.
ALL-IN ZONE X (EMA + BB + Swing + TP Panel)ALL-IN ZONE X is a technical analysis indicator designed to help traders identify high-probability trade zones using a combination of trend, volatility, and price structure.
This indicator integrates:
Exponential Moving Averages (EMA) for trend direction
Bollinger Bands (BB) to visualize volatility and price expansion
Swing structure detection to highlight potential market turning points
A Take Profit (TP) panel to assist with structured trade planning
ALL-IN ZONE X is intended for discretionary trading and educational purposes only.
It does not generate automated buy or sell orders and should be used as a confluence tool alongside proper risk management and market analysis.
Disclaimer:
This indicator does not provide financial advice. Trading involves risk, and past performance does not guarantee future results.
Supply & Demand Zones [PLUS]## 🟧 OVERVIEW
Supply & Demand Zones is a professional-grade technical analysis indicator designed to automatically detect and visualize key supply and demand zones on your chart. Built on Order Block and Price Action methodology, this indicator identifies areas where institutional buyers and sellers have placed significant orders, helping traders spot high-probability reversal and continuation zones.
Whether you are a day trader, swing trader, or position trader, this indicator provides clear, actionable zones that adapt to any market and timeframe.
---
## 🟧 HOW IT WORKS
The indicator uses a sophisticated detection algorithm based on two core principles:
**Consolidation Detection**
The algorithm first identifies consolidation (base) candles where price action shows minimal directional commitment. These are candles with small body-to-range ratios, indicating accumulation or distribution phases.
**Impulse Move Validation**
After consolidation, the algorithm waits for a strong impulse move (breakout). When price makes a decisive move away from the consolidation area with sufficient momentum, a zone is created:
- Strong bullish impulse after consolidation = DEMAND zone (support)
- Strong bearish impulse after consolidation = SUPPLY zone (resistance)
**Zone Lifecycle**
Each zone follows a clear lifecycle:
- FRESH: Newly created zone, untested by price
- RETEST: Price has returned to test the zone
- BREAK: Price has closed beyond the zone boundary, invalidating it
---
## 🟧 ICT SMART MONEY CONCEPTS
This indicator aligns with ICT (Inner Circle Trader) Smart Money Concepts, making it an essential tool for traders following institutional trading methodologies:
**Order Blocks**
Supply and demand zones detected by this indicator represent Order Blocks — areas where institutional traders have placed large orders. These zones mark the origin of strong price movements and often act as future support or resistance.
**Liquidity Pools**
Fresh zones indicate areas where retail stop losses and pending orders accumulate. Smart money often targets these zones to fill large positions before reversing price direction.
**Market Structure**
By tracking zone creation, retests, and breaks, traders can identify:
- Break of Structure (BOS): When zones are broken, indicating trend continuation
- Change of Character (CHoCH): When opposing zones form, suggesting potential reversal
- Fair Value Gaps: Impulse moves away from zones often create imbalances
**Mitigation and Rejection**
The retest tracking feature helps identify mitigation blocks — zones that price returns to before continuing in the original direction. High-quality retests with strong rejection (visible in zone status) indicate institutional order flow.
**Kill Zones Integration**
Combine this indicator with session-based analysis to identify zones created during high-volume periods (London Open, New York Open, Asian Session) for higher probability setups.
---
## 🟧 KEY FEATURES
**Automatic Zone Detection**
No manual drawing required. The indicator automatically identifies and plots supply and demand zones based on proven price action patterns.
**Smart Zone Filtering**
Built-in filters prevent chart clutter by removing weak zones, merging overlapping zones, and limiting the maximum number of displayed zones.
**ATR-Based Zone Sizing**
Zone thickness is dynamically adjusted using Average True Range (ATR) to ensure zones are proportional to current market volatility.
**Fresh, Retest, and Break Tracking**
Each zone displays its current status, allowing traders to quickly identify untested zones (highest probability) versus zones that have been retested or broken.
**Customizable Visuals**
Full control over zone colors, transparency, border styles, and text sizes for both demand and supply zones.
**Real-Time Updates**
Zones extend automatically as new candles form, and status updates in real-time as price interacts with each zone.
---
## 🟧 MULTI-MARKET COMPATIBILITY
This indicator works seamlessly across all markets available on TradingView:
**Cryptocurrency**
- Bitcoin (BTC), Ethereum (ETH), and all major altcoins
- Works on spot, futures, and perpetual contracts
- Effective on 24/7 markets with continuous price action
- Adapts to high volatility environments typical of crypto markets
**Forex**
- All major pairs (EUR/USD, GBP/USD, USD/JPY, etc.)
- Cross pairs and exotic currencies
- Perfect for session-based trading (London, New York, Tokyo)
- Timezone feature helps correlate zones with market sessions
**Stocks and Indices**
- Individual stocks on NYSE, NASDAQ, and global exchanges
- Index futures (ES, NQ, YM, etc.)
- ETFs and sector-specific instruments
- Works with pre-market and after-hours data
**Commodities**
- Gold, Silver, and precious metals
- Oil, Natural Gas, and energy markets
- Agricultural commodities
The ATR-based zone sizing automatically adapts to each market's volatility characteristics, ensuring optimal zone detection regardless of the instrument you trade.
---
## 🟧 TIMEFRAME COMPATIBILITY
This indicator is fully adaptive and works on all timeframes available on TradingView:
| Timeframe Category | Examples | Best For |
|-------------------|----------|----------|
| Scalping | 1m, 3m, 5m | Quick entries, tight stops |
| Intraday | 15m, 30m, 1H | Day trading, session-based trading |
| Swing | 4H, Daily | Multi-day holds, trend following |
| Position | Weekly, Monthly | Long-term investing, major levels |
The indicator automatically adjusts its detection parameters based on the selected timeframe to provide optimal zone detection across all trading styles.
---
## 🟧 TIMEZONE SUPPORT
The indicator includes comprehensive timezone support with 70+ major world timezones. Zone creation timestamps are displayed in your selected local time, making it easy to correlate zones with specific trading sessions:
- Americas: New York, Chicago, Los Angeles, Toronto, Sao Paulo
- Europe: London, Paris, Frankfurt, Zurich, Moscow
- Asia-Pacific: Tokyo, Hong Kong, Singapore, Sydney, Dubai
- And many more...
Select your local timezone in the settings to see zone creation times in your preferred format.
---
## 🟧 DETECTION MODES
Three detection modes are available to match your trading style:
**Confirmed Only (Default)**
Zones are only created after the candle closes. This provides the most reliable signals with zero repaint risk. Recommended for most traders.
**Realtime Preview**
Zones can be created on the current candle before it closes. Provides faster signals but with minor noise potential.
**Realtime Aggressive**
Updates on every price tick. Fastest response but highest noise. Only recommended for experienced traders who understand the tradeoffs.
---
## 🟧 WHO SHOULD USE THIS INDICATOR
This indicator is designed for:
- **Price Action Traders** who base their decisions on support and resistance levels
- **Supply and Demand Traders** looking for automated zone identification
- **Order Block Traders** who want to identify institutional order flow areas
- **ICT/Smart Money Traders** applying institutional trading concepts
- **Swing Traders** seeking key levels for entries and exits
- **Day Traders** who need quick identification of intraday levels
- **Crypto Traders** navigating volatile digital asset markets
- **Forex Traders** trading major and exotic currency pairs
- **Stock Traders** analyzing equities and indices
- **Risk Managers** who want clear zones for stop loss and take profit placement
---
## 🟧 ALERT SYSTEM
Built-in alert system notifies you of important zone events:
- **Fresh Zone Alert**: Triggered when a new zone is created
- **Retest Alert**: Triggered when price returns to test an existing zone
- **Break Alert**: Triggered when a zone is invalidated by price
Alerts can be configured to send notifications via TradingView app, email, webhook, or other supported methods.
---
## 🟧 SETTINGS OVERVIEW
**Consolidation Settings**
- Consolidation Threshold: Defines what constitutes a base candle (default 73%)
**Move Strength Settings**
- Min Move Strength: Minimum impulse required to create a zone (default 60%)
- Min Move Size (ATR): Minimum move size relative to ATR (default 0.5)
**Zone Filter Settings**
- Enable Zone Filter: Toggle all filtering on/off
- Min Zone Size (ATR): Minimum zone height filter
- Min/Max Zone Thickness: Zone size limits
- Min Base Candles: Required consolidation length
- Overlap Threshold: Controls zone merging behavior
- Max Zones Limit: Maximum zones
**Visual Settings**
- Separate color controls for Fresh and Retest zones
- Border width and style options
- Text size and color customization
- Break zone display options
---
## 🔶 UPGRADE TO PRO 🔶
Looking for more advanced features? **Supply & Demand Zones AI ** includes:
🔸 AI/ML-Based Zone Strength Scoring (0-100%)
🔸 Touch Quality and Bounce Strength Analysis
🔸 Advanced Volume Analysis and Validation
🔸 Multiple Retest Color Levels (1, 2, 3+)
🔸 Professional Break Alerts with Stop Loss Warnings
🔸 Enhanced Visual Indicators and Symbols
🔸 Base Candle Counter for Consolidation Analysis
---
## 🟧 USAGE TIPS
1. **Fresh Zones First**: Prioritize trading from fresh zones as they have the highest probability of holding.
2. **Confluence**: Combine zones with other analysis methods (trendlines, moving averages, Fibonacci) for higher probability setups.
3. **Multi-Timeframe**: Check higher timeframe zones for major levels, then use lower timeframe zones for precise entries.
4. **Risk Management**: Always place your stop loss beyond the zone boundary to account for zone breaks.
5. **Session Awareness**: Use timezone settings to understand when zones were created relative to major trading sessions.
---
## 🟧 DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management when trading.
ApEn Zones with Delta Confirmation MTF [PhenLabs]📊 ApEn Zones with Delta Confirmation MTF
Version: PineScript™ v6
📌 Description
The ApEn Zones with Delta Confirmation MTF indicator combines Approximate Entropy analysis with cumulative volume delta to identify high-probability support and resistance zones. Approximate Entropy (ApEn) measures the complexity and unpredictability in price data—when ApEn drops significantly, it signals a transition from chaotic to ordered market behavior, often preceding reversals or continuations.
This indicator goes beyond simple ApEn detection by integrating Delta confirmation, which validates zones using volume-based order flow analysis. When a zone forms with Delta confirmation, it indicates institutional participation aligning with the price structure. The multi-timeframe capability allows traders to detect zones forming on higher timeframes while executing on their preferred chart.
🚀 Points of Innovation
First indicator to combine ApEn complexity analysis with cumulative Delta confirmation for zone validation
Pre-built calculation presets eliminate guesswork—optimized parameters for scalping, day trading, and swing trading
Smart zone management automatically removes invalidated zones after two price rejections
Multi-timeframe architecture detects zones on configurable timeframes independent of chart timeframe
Visual style presets provide instant customization from high contrast to subtle overlays
Delta threshold system distinguishes between regular zones and institutionally-confirmed zones
🔧 Core Components
ApEn Calculator: Measures pattern regularity using embedding dimension (m=2) and tolerance factor (r) against price standard deviation to quantify market complexity
Delta Engine: Computes cumulative delta from volume and price movement, comparing against statistical thresholds to identify significant order flow divergence
Zone Generator: Creates visual box zones at signal points with dynamic sizing based on bar range and confirmation status
MTF Request Handler: Fetches ApEn calculations from user-specified timeframe using security() calls for higher timeframe alignment
Zone Manager: Tracks zone interactions, counts rejections, and automatically purges zones that have been tested twice
🔥 Key Features
Calculation Presets: Choose from Aggressive, Conservative, Scalping 1m, Strong Scalping, Swing Trading, or Default—each preset optimizes all parameters for specific trading styles
Visual Style Presets: Select Default, High Contrast, Subtle, Classic, Neutral, or Neutral Reverse to match your chart theme and preference
Delta Confirmation: Zones display with enhanced opacity when cumulative delta confirms institutional participation in the direction of the zone
Automatic Zone Cleanup: Zones self-destruct after two rejections, keeping your chart clean and focused on active levels
Alert System: Four alert conditions for buy zones, sell zones, strong buy signals, and strong sell signals
Maximum Zone Control: Limits display to 5 zones per direction to prevent chart clutter
🎨 Visualization
Buy Zones: Displayed as horizontal boxes at low points when ApEn crosses under threshold—lighter transparency indicates regular zone, darker indicates Delta confirmation
Sell Zones: Displayed as horizontal boxes at high points when ApEn crosses over threshold—visual confirmation follows same transparency logic
Zone Boundaries: Each zone extends 10% of bar range above and below the signal level, providing clear entry and stop areas
Dynamic Extension: All zones automatically extend rightward with each new bar until invalidated
📖 Usage Guidelines
Calculation Preset Selection
Scalping 1m / Strong Scalping: Use for 1-5 minute charts with faster signal generation and tighter thresholds (Length: 15, Zone Length: 5)
Aggressive: Shorter lookback (Length: 10) generates more zones with lower confirmation requirements—higher frequency, more noise
Default: Balanced parameters suitable for 5-15 minute charts (Length: 15, Zone Threshold: 0.5, Delta Length: 4)
Conservative: Extended lookback (Length: 30) with stricter thresholds—fewer but higher probability zones
Swing Trading: Longest parameters (Length: 40, Zone Length: 20) for 1H-4H charts capturing major structural zones
Visual Style Selection
High Contrast: Bright green/red for maximum visibility on any background
Subtle: Muted green/red with transparency for minimal chart distraction
Classic: Traditional lime green and crimson color scheme
Neutral / Neutral Reverse: Grayscale tones for non-directional bias visualization
Timeframe Configuration
Default timeframe is set to 1 minute—adjust based on your execution timeframe
For scalping: Set zone timeframe 1-3x your chart timeframe
For swing trading: Set zone timeframe to 4H or Daily while viewing 1H charts
✅ Best Use Cases
Identifying reversal zones during high-volatility market conditions
Confirming support/resistance levels with volume-based order flow validation
Scalping entries on lower timeframes with higher timeframe zone confluence
Filtering trade setups by requiring Delta confirmation before entry
Setting stop losses beyond zone boundaries after rejection tests
Swing trade positioning at zones detected on 4H/Daily timeframes
⚠️ Limitations
ApEn calculations are computationally intensive—may experience slower loading on very long chart histories
Delta estimation uses (close - open) * volume approximation, not actual order flow data
Zones require sufficient price history—indicator needs max_bars_back of 2000 bars for proper calculation
Low volume instruments may produce unreliable Delta confirmation signals
Zone rejections are counted based on price interaction, not candle close confirmation
Maximum of 5 zones per direction limits visibility during highly active markets
💡 What Makes This Unique
Entropy-Based Detection: Uses mathematical complexity analysis rather than simple price patterns to identify zones
Dual Confirmation System: Combines ApEn signals with Delta divergence for higher probability setups
Adaptive Presets: Six calculation presets and six visual styles create 36 possible configurations without manual parameter adjustment
Self-Managing Zones: Automatic invalidation after two rejections mimics how professional traders track level degradation
🔬 How It Works
Step 1 - ApEn Calculation: The indicator computes Approximate Entropy by measuring how often similar patterns of length m repeat within tolerance r multiplied by standard deviation—lower values indicate more predictable (ordered) price behavior
Step 2 - Signal Generation: Buy signals trigger when higher timeframe ApEn crosses under the average ApEn divided by threshold; sell signals trigger when ApEn crosses over average multiplied by threshold
Step 3 - Delta Confirmation: Cumulative delta is compared against its moving average plus/minus standard deviation times threshold—extreme readings confirm institutional order flow alignment
Step 4 - Zone Creation: Visual boxes are drawn at signal bars with dimensions based on bar range; confirmed zones receive enhanced opacity while unconfirmed zones appear more transparent
Step 5 - Zone Lifecycle: Active zones extend with each bar and track price interactions; after two rejections (price touches zone but reverses), the zone is automatically deleted
💡 Note:
This indicator works best when combined with trend analysis and market structure. Use calculation presets as starting points and adjust the Zone Timeframe setting to align with your trading methodology. Delta confirmation significantly improves zone reliability but requires volume data—instruments with low or unreported volume should rely primarily on ApEn signals alone. Always validate signals with price action context before executing trades.
MSS 15m - R.AlvaradoMSS 15m – R.Alvarado is a minimalist Market Structure Shift indicator designed to highlight real changes in market structure on the 15-minute timeframe.
The indicator plots a single horizontal line and label when a valid Market Structure Shift occurs, marking the exact price level where structure changes from bullish to bearish or vice versa. Only one MSS is displayed at a time and it remains anchored on the chart until a new structure shift appears.
This tool is intended for discretionary traders who already work with higher-timeframe bias, key levels, and liquidity concepts. It does not generate trade entries by itself, but provides clear structural context to support decision-making after liquidity events and during CRT analysis.
Best used in combination with higher-timeframe bias and key levels, especially when refining executions on lower timeframes.
Supply & Demand Zones AI [PRO]## 🟧 OVERVIEW
Supply & Demand Zones AI is a premium institutional-grade technical analysis indicator featuring AI/ML-powered zone strength analysis, advanced volume validation, and professional-level zone detection. Built on Order Block and Smart Money Concepts methodology, this indicator identifies high-probability supply and demand zones where institutional traders place significant orders.
Whether you are a professional trader, hedge fund analyst, or serious retail trader, this indicator provides the most comprehensive zone analysis available on TradingView.
---
## 🟧 HOW IT WORKS
The indicator uses an advanced multi-factor detection algorithm:
**Consolidation Detection**
Identifies consolidation (base) candles where price action shows minimal directional commitment. These candles with small body-to-range ratios indicate institutional accumulation or distribution phases.
**Impulse Move Validation**
After consolidation, the algorithm validates strong impulse moves (breakouts) with momentum and volume confirmation:
- Strong bullish impulse after consolidation = DEMAND zone (support)
- Strong bearish impulse after consolidation = SUPPLY zone (resistance)
**AI/ML Zone Strength Analysis**
Each zone receives a strength score (0-100%) calculated using 6 key factors:
- Zone Status (Fresh vs Retest)
- Zone Size relative to ATR
- Momentum Strength of the impulse move
- Timeframe Weight (higher TF = stronger zones)
- Volume Analysis (volume spike detection)
- Base Candle Count (consolidation quality)
**Zone Lifecycle**
Each zone follows a professional lifecycle with color-coded status:
- 🟩 FRESH: Newly created zone, untested (highest probability)
- 🟨 RETEST 1: First retest (confirmed zone)
- 🟧 RETEST 2: Second retest (weakening)
- 🟪 RETEST 3: Third retest (caution)
- 🟥 RETEST 4+: Multiple retests (high risk)
- 🟦 BREAK: Zone invalidated by price close
---
## 🟧 AI/ML TECHNOLOGY
This indicator incorporates artificial intelligence and machine learning principles to provide quantified, objective zone analysis:
**What is AI/ML in This Indicator?**
The AI system uses a weighted multi-factor scoring algorithm that mimics how professional institutional traders evaluate supply and demand zones. Instead of subjective analysis, the system provides objective numerical scores based on measurable market data.
**The 6-Factor AI Scoring Model:**
1. Zone Status Score
- FRESH zones receive +15 points (untested = highest probability)
- Each RETEST reduces score by 3-5 points
- Recognizes that zone strength degrades with each test
2. Zone Size Analysis
- Small zones (tight consolidation): +20 points
- Medium zones: +10 points
- Large zones: +0 points
- Smaller zones often indicate more precise institutional levels
3. Momentum Strength
- Strong impulse moves: +25 points
- Average moves: +15 points
- Weak moves: +5 points
- Calculated using body-to-range ratio of breakout candles
4. Timeframe Weighting
- Daily and higher: +15 points
- 4H: +12 points
- 1H: +8 points
- Lower timeframes: +3-5 points
- Higher timeframe zones carry more significance
5. Volume Analysis
- High volume (1.5x+ average): +20 points
- Normal volume: +10 points
- Low volume (below average): -5 points
- Volume confirms institutional participation
6. Base Candle Quality
- 3+ base candles: +10 points
- 2 base candles: +5 points
- 1 base candle: +0 points
- More consolidation = stronger accumulation/distribution
**Real-Time AI Updates:**
The AI continuously recalculates scores as new data arrives:
- Touch Quality updates when price enters zones
- Bounce Strength updates on rejection moves
- Scores adjust based on volume spikes
- Timeframe context is automatically applied
**Machine Learning Principles:**
The scoring weights are derived from empirical analysis of thousands of historical supply and demand zones, identifying which factors most reliably predict zone holds vs breaks. This data-driven approach provides:
- Objective zone ranking
- Probability-based decision making
- Reduced emotional trading
- Consistent evaluation criteria
**AI Score Interpretation:**
| Score Range | Category | Trading Recommendation |
|-------------|----------|----------------------|
| 75-100% | VERY STRONG | High confidence trades |
| 60-74% | STRONG | Standard trades |
| 40-59% | MEDIUM | Requires additional confluence |
| 0-39% | WEAK | Avoid or use tight stops |
---
## 🟧 PRO EXCLUSIVE FEATURES
**AI/ML Zone Strength Scoring (0-100%)**
Every zone displays a calculated strength score based on multiple factors. Score categories:
- ●●●● VERY STRONG (75-100%) - Premium zones
- ●●●○ STRONG (60-74%) - High probability zones
- ●●○○ MEDIUM (40-59%) - Average zones
- ●○○○ WEAK (0-39%) - Risky zones
**Touch Quality Analysis**
Real-time measurement of how well price penetrates the zone during retests:
- ●●●● TOUCH 85% = Excellent (deep body penetration)
- ●●●○ TOUCH 65% = Good (solid entry opportunity)
- ●●○○ TOUCH 45% = Average (acceptable)
- ●○○○ TOUCH 25% = Weak (wick only, higher risk)
**Bounce Strength Analysis**
Measures rejection strength from zones during retests:
- ●●●● BOUNCE 90% = Very strong rejection (high probability reversal)
- ●●●○ BOUNCE 70% = Strong rejection (good signal)
- ●●○○ BOUNCE 50% = Average rejection (acceptable)
- ●○○○ BOUNCE 30% = Weak rejection (may break)
**Advanced Volume Validation**
Volume ratio calculation for each zone with spike detection:
- Displays volume at zone creation
- Shows volume ratio vs average (e.g., 2.8x, 0.4x)
- High volume zones indicate stronger institutional interest
**Multiple Retest Color Levels**
Visual distinction between retest levels:
- RETEST 1: First test (strong)
- RETEST 2: Second test (moderate)
- RETEST 3+: Multiple tests (weakening)
**Base Candle Counter**
Accurate consolidation analysis showing the number of base candles that formed each zone (up to 50 bars analyzed).
**Professional Break Alerts**
Enhanced break alerts with STOP LOSS activation warnings for risk management.
---
## 🟧 ICT SMART MONEY CONCEPTS
This indicator is built for traders following ICT (Inner Circle Trader) Smart Money Concepts:
**Order Blocks**
Zones represent institutional Order Blocks — areas where smart money has placed large orders. The AI strength scoring helps identify the highest quality order blocks.
**Liquidity Pools**
Fresh zones mark areas where retail stop losses accumulate. Volume analysis confirms institutional interest in these liquidity pools.
**Market Structure**
Track zone lifecycle to identify:
- Break of Structure (BOS): Zone breaks indicating trend continuation
- Change of Character (CHoCH): Opposing zones suggesting reversal
- Fair Value Gaps: Impulse moves creating price imbalances
**Mitigation Blocks**
Touch Quality and Bounce Strength metrics help validate mitigation — when price returns to order blocks before continuing.
**Kill Zones**
Timezone support with 70+ timezones helps identify zones created during London Open, New York Open, and Asian Session for highest probability setups.
---
## 🟧 KEY FEATURES
**Automatic Zone Detection**
No manual drawing required. Professional-grade detection using Order Block + Price Action methodology.
**Smart Zone Filtering**
Advanced filters remove weak zones, merge overlapping zones, and limit displayed zones for clean charts.
**ATR-Based Zone Sizing**
Dynamic zone thickness adjusted using ATR for proportional sizing across all volatility environments.
**Customizable Visuals**
Full control over colors, transparency, borders, and text for demand, supply, and break zones.
**Real-Time Updates**
Zones extend automatically with live status updates as price interacts.
---
## 🟧 MULTI-MARKET COMPATIBILITY
Works seamlessly across all TradingView markets:
**Cryptocurrency**
- Bitcoin (BTC), Ethereum (ETH), and all altcoins
- Spot, futures, and perpetual contracts
- 24/7 markets with continuous price action
- Adapts to high crypto volatility
**Forex**
- All major pairs (EUR/USD, GBP/USD, USD/JPY, etc.)
- Cross pairs and exotic currencies
- Session-based trading with timezone support
- Kill Zone integration
**Stocks and Indices**
- Individual stocks (NYSE, NASDAQ, global exchanges)
- Index futures (ES, NQ, YM, etc.)
- ETFs and sector instruments
- Pre-market and after-hours support
**Commodities**
- Gold, Silver, precious metals
- Oil, Natural Gas, energy markets
- Agricultural commodities
---
## 🟧 TIMEFRAME COMPATIBILITY
Fully adaptive across all timeframes:
| Category | Examples | Best For |
|----------|----------|----------|
| Scalping | 1m, 3m, 5m | Quick entries, tight stops |
| Intraday | 15m, 30m, 1H | Day trading, session-based |
| Swing | 4H, Daily | Multi-day holds, trend following |
| Position | Weekly, Monthly | Long-term investing, major levels |
The AI scoring system weights higher timeframe zones more heavily, recognizing their increased significance.
---
## 🟧 TIMEZONE SUPPORT
Comprehensive timezone support with 70+ major world timezones:
- Americas: New York, Chicago, Los Angeles, Toronto, Sao Paulo
- Europe: London, Paris, Frankfurt, Zurich, Moscow
- Asia-Pacific: Tokyo, Hong Kong, Singapore, Sydney, Dubai
- And many more...
Zone timestamps display in your local time for easy session correlation.
---
## 🟧 DETECTION MODES
Three modes to match your trading style:
**Confirmed Only (Default)**
Zones created only after candle close. Zero repaint risk. Recommended for most traders.
**Realtime Preview**
Zones can form on current candle. Faster signals with minor noise potential.
**Realtime Aggressive**
Updates on every tick. Fastest response for experienced traders only.
---
## 🟧 WHO SHOULD USE THIS INDICATOR
Designed for serious traders:
- **Professional Traders** requiring institutional-grade analysis
- **ICT/Smart Money Traders** applying Order Block concepts
- **Supply and Demand Traders** seeking automated zone identification
- **Algorithmic Traders** needing quantified zone strength
- **Swing Traders** holding multi-day positions
- **Day Traders** requiring intraday level identification
- **Crypto Traders** navigating volatile markets
- **Forex Traders** trading currency pairs
- **Stock Traders** analyzing equities and indices
- **Risk Managers** using zones for stop loss placement
---
## 🟧 ALERT SYSTEM
Professional alert notifications:
- **Fresh Zone Alert** : New zone created with strength score
- **Retest Alert** : Price returns to test zone (includes retest count)
- **Break Alert** : Zone invalidated with STOP LOSS warning
Alerts via TradingView app, email, webhook, or SMS.
---
## 🟧 SETTINGS OVERVIEW
**Zone Strength Settings**
- Show Zone Strength: Toggle AI scoring display
- Strength Threshold: Reference threshold for filtering
**Touch & Bounce Settings**
- Show Touch Quality: Toggle touch analysis
- Show Bounce Strength: Toggle bounce analysis
**Consolidation Settings**
- Consolidation Threshold: Base candle detection (default 73%)
**Move Strength Settings**
- Min Move Strength: Impulse requirement (default 60%)
- Min Move Size (ATR): Minimum move size (default 0.5)
**Zone Filter Settings**
- Enable Zone Filter: Toggle filtering
- Min Zone Size (ATR): Height filter
- Min/Max Zone Thickness: Size limits
- Min Base Candles: Consolidation length
- Overlap Threshold: Merge behavior
- Max Zones Limit: Display limit
**Visual Settings**
- Fresh, Retest 1, Retest 2+ colors
- Border width and style
- Text size and color
- Break zone options
---
## 🟧 USAGE TIPS
1. **Prioritize High Strength Zones** : Trade only from zones with 60%+ strength score for highest probability.
2. **Combine Touch + Bounce** : Best entries have high Touch Quality AND high Bounce Strength.
3. **Volume Confirmation** : Zones with 1.5x+ volume ratio indicate stronger institutional interest.
4. **Multi-Timeframe** : Higher timeframe zones (Daily, Weekly) have higher AI scores and significance.
5. **Fresh Zones First** : Untested zones have highest probability. Each retest weakens the zone.
6. **Session Awareness** : Use timezone feature to trade zones from active trading sessions.
7. **Risk Management** : Place stops beyond zone boundaries. Break alerts warn of potential stop activation.
---
## 🟧 DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management when trading.
Intraday Key Levels for Nifty OptionsThis indicator plots option-derived intraday key levels for NIFTY options, including Breakout Point (BOP), Breakdown Point (BDP), Previous Day Close (PDC), and Previous Day High (PDH).
It is designed to help traders objectively read option strength, weakness, and institutional intraday range behavior.
1️⃣ Breakout Point (BOP)
A break and sustain above BOP indicates bullish acceptance, increasing the probability of the option moving ITM. It is an Option-derived upside acceptance level.
If an option Breaks & sustain above BOP:
- Strike likely moves ITM
- Strong bullish option momentum possibility
- Expansion probability increases
2️⃣ Breakdown Point (BDP)
A break and sustain below BDP indicates bearish acceptance, increasing the probability of the option moving OTM. It is an Option-derived downside acceptance level.
If an option Breaks & sustain below BDP:
- Strike likely moves OTM
- Strong bearish option momentum possibility
- Premium weakness increases
3️⃣ Previous Day Close (PDC)
Displays the previous trading day close of the option. It acts as an intraday sentiment reference and acceptance / rejection level.
Above PDC → positive intraday sentiment
Below PDC → negative intraday sentiment
4️⃣Previous Day High (PDH)
Displays the previous trading day high of the option. It helps to identify the supply / resistance zones, expansion confirmation, failed breakouts and and validates bullish expansion when crossed with strength.
🏦 Institutional Insight:
Institutions may operate within the BOP–BDP range of ATM options when directional momentum is weak, leading to protect their intraday levels and play within the range.
🎯 Best Use Case:
-Intraday NIFTY options analysis
-Directional bias confirmation
-Avoiding low-probability trades
-Used alongside price action and volume tools
⚠️ Disclaimer
For educational purposes only. No buy/sell recommendations
Malaysian SnR and Decision Levels [DoN]Features
This script implements a specific Malaysian SnR (Support and Resistance) strategy combined with Decision Levels based on gap analysis. It is designed to help traders identify key reaction levels across multiple timeframes.
How it Works
SnR Levels (Current & Higher Timeframe)
The script calculates Support ("V" shape) and Resistance ("A" shape) based on fractal geometry.
It uses a configurable Pivot Depth (default: 3) to confirm peaks and valleys.
When a High or Low is confirmed by the subsequent bars, a horizontal level is drawn.
Fresh vs. History: The script distinguishes between "Fresh" levels (untouched) and "History" levels. When a level is broken, it converts into a "Role Reversal" line (Support Becomes Resistance - SBR, or Resistance Becomes Support - RBS).
Decision Levels (Gap Analysis)
The script identifies "Decision Levels" derived from specific H4 price action gaps.
A Bullish Decision Level is formed when consecutive bullish candles create a gap structure.
A Bearish Decision Level is formed by consecutive bearish candles.
These levels often act as significant liquidity zones where price may react.
How to Use
Trend Following: Look for price to retrace to a "Fresh" SnR level or Decision Level.
Confluence: The strongest signals occur when a current timeframe SnR level overlaps with a Higher Timeframe (HTF) level or a Decision Level.
Alerts: Users can set alerts for price touching active SnR lines or retesting broken history lines (Role Reversal).
Settings
Current Timeframe SnR: Adjust the pivot depth and colors for local support/resistance.
Decision Levels: Toggle H4 gap analysis.
Higher Timeframe Overlay: display daily/weekly levels on your current chart.
このスクリプトは、マレーシア式SnR(サポレジ)戦略とディシジョン・レベル(ギャップ分析)を組み合わせたツールです。
機能とロジック
SnRレベル(V字/A字)
フラクタル幾何学に基づき、一定期間(Depth)の高値・安値が確定したポイントにラインを引きます。
Fresh(新規): まだブレイクされていないライン。
History(履歴): ブレイクされたラインは、ロールリバーサル(サポレジ転換)ラインとして点線で表示されます(SBR/RBS)。
ディシジョン・レベル
主にH4(4時間足)のローソク足の形成パターンに基づき、強い売り買いのギャップが発生した地点を「Decision Level」として表示します。
使い方
上位足のラインやディシジョン・レベルが重なるポイント(コンフルエンス)でのプライスアクションに注目してください。アラートを設定することで、ラインへのタッチやリテストを通知することが可能です。
Bear Lines: Liquidity Rails & Momentum [Premium]ACCESS: This is a restricted, invite-only institutional toolkit. To purchase a license and unlock this script immediately, visit: whop.com
What is Bear Lines? Bear Lines is a complete "Code Guardian" system designed to automate institutional price analysis. It removes the noise from your charts by plotting high-probability liquidity rails, momentum shifts, and market imbalances (FVGs) in real-time. It is designed to save traders hours of manual charting every day.
Key Features
1. Automated Liquidity Rails (The "Sandwich" Logic) Stop manually drawing lines every morning. Bear Lines automatically identifies and plots the most critical structural levels where price is likely to reverse or sweep:
Outer Shell: Weekly Highs & Lows (Major Structure).
Inner Shell: Daily Highs & Lows (Intraday Targets).
Visual Constitution: The script uses a strict non-overlapping label system to keep your chart clean and readable at all times.
2. Institutional Momentum (Sticky Glow) Visualize the true trend with our "Sticky Glow" technology.
Bullish Trend (Neon Green): Activates when a structural Bullish Divergence (Price Lower Low + RSI Higher Low) is detected. The glow persists until the structure is broken.
Bearish Trend (Neon Red): Activates when a structural Bearish Divergence is detected. The glow persists until the trend is invalidated.
Note: Includes "Bull" and "Bear" icons to signal the exact moment of a momentum shift.
3. Smart FVG Detection Automatically highlights Fair Value Gaps (Imbalances) that act as magnets for price.
Dynamic Cleanup: The system intelligently removes gaps that have been filled or are no longer relevant, ensuring your chart remains performant and clutter-free.
How to Trade This System
Identify the Bias: Use the "Sticky Glow" background to determine if the market is structurally Bullish or Bearish.
Wait for the Sweep: Look for price to interact with the Daily or Weekly Rails. These levels often act as the "Trigger" for a reversal.
Confirm the Entry: Wait for a Bull/Bear icon or an FVG rejection at the Rail to execute your trade.
Get Access This script is protected. To join the community and use Bear Lines on your chart today: Go to: whop.com
BO-voldel-Signal**BO-VolDel (Breakout Order-Flow Volume Delta)** is a rules-based order-flow confirmation model that identifies **statistically meaningful aggression imbalances** using vwap and volume delta (VD).
The model operates by continuously measuring **delta range expansion** relative to a rolling distribution of recent values. Breakout conditions are triggered only when **incremental participation increases** and VD exceeds prior structural extremes, filtering out rotational and balanced regimes.
Signals are further constrained by:
* **Session-anchored VWAP alignment** to enforce directional price acceptance
* **Directional alternation logic** to prevent clustering during sustained imbalance
* **Lower-timeframe volume delta sampling** to preserve execution sensitivity while maintaining higher-timeframe structural context
Visual state changes represent **order-flow regime transitions**, not predictive trade entries:
* **Upper state (green):** Dominant buy-side initiative with price acceptance
* **Lower state (red):** Dominant sell-side initiative with price rejection
BO-VolDel is designed for **trade management and exit validation**. It reacts exclusively to confirmed participation shifts, making it effective for identifying **exhaustion, continuation, or invalidation** zones in real time.
The indicator avoids fixed thresholds and adapts dynamically to changing intraday liquidity conditions, aligning with professional execution and risk-controlled trading methodologies.
Hooke's Law: Market ElasticityHooke's Law: Market Elasticity is a physics-based mean reversion system that models price action using the principles of Classical Mechanics.
Most technical indicators treat the market as a purely statistical entity. This script takes a different approach, treating the market as a physical object with Mass (Volume) and Stiffness (Volatility) . By adapting Hooke’s Law of Elasticity (𝐹=−𝑘𝑋), it visualizes the "Tensile Stress" between price and its equilibrium, identifying the exact moment when a trend becomes unsustainable and must "snap back."
The Physics of Trading
In physics, Hooke's Law states that the force needed to extend a spring is proportional to the distance it is stretched. We map this to financial markets using four key components:
Equilibrium (𝑋=0): The "Resting State" of the market, calculated using a Volume-Weighted Moving Average (VWMA) . This represents the fair value where buyers and sellers agree.
2. Displacement (𝑋): The distance price travels away from this equilibrium.
3. Spring Constant (𝑘): We use Volatility (Standard Deviation) to measure the market's "stiffness."
• Low Volatility: The spring is loose; price can wander far without snapping.
• High Volatility: The spring is stiff; even small deviations create massive tension.
4. Force (𝐹): The calculation is weighted by Relative Volume . A price spike on low volume has low force (easy to reverse), while a spike on high volume carries high momentum (harder to reverse).
Visual Guide & Signals
The indicator uses a hierarchy of visuals to guide you through the trade lifecycle:
1. The Elastic Ribbon (Heatmap)
Connects Price to the Baseline. As the ribbon turns Solid White , the market has reached its Elastic Limit (Critical Zone). This is your warning that a move is overextended.
2. The "Golden" Labels (LONG / SHORT)
These are your Entry Signals . They appear only when the physics "snap" is confirmed by an internal momentum filter and price action.
3. The Small Circles (Minor Reversions)
These dots represent "Minor Snaps." They occur when the elastic tension releases, but the momentum filter hasn't fully confirmed a major reversal.
• Usage: These are excellent Early Warning signs or Scale-In points for aggressive traders.
Strategy: Entries, Exits & Take Profits
This script is designed as a complete system. Here is how to manage the trade using the visual cues:
• Entry: Wait for a LONG or SHORT label to appear.
• Stop Loss: Use the Solid White Line that appears automatically with the signal. If price touches this line, the physics setup has failed—exit immediately.
• Take Profit 1 (The Equilibrium): The Gray Baseline represents the market's center of gravity. In mean reversion trading, price tends to snap back to this line. This is the statistically highest-probability target.
• Take Profit 2 (The Circles): If you are in a trade and a Circle appears in the opposite direction, it indicates the market is experiencing counter-tension. This is an ideal place to secure partial profits or trail your stop.
Settings & Configuration
• Baseline Length (Default: 34): The lookback period for the Center of Gravity.
• Elasticity Limit (Default: 2.618): The Golden Ratio is used as the standard deviation threshold for the "Critical Zone."
• Volume Weighting (Default: True): Recommended. Adds the "Mass" component to the physics calculation.
• Stop Loss Buffer (Default: 0.5): The distance (in Sigma) for the Stop Loss placement.
Risk Disclaimer
Not Financial Advice: This indicator is designed for educational and analytical purposes only. It visualizes market data based on mathematical formulas (Hooke's Law and Statistical Deviation) and does not guarantee future performance or profits.
Market Risks: Financial trading involves significant risk. The "Critical Zones" and "Signals" generated by this script identify statistical extremes, but markets can remain irrational or overextended for long periods ("Plastic Deformation").
Usage: Do not trade blindly based on these signals. Always use this tool in conjunction with your own analysis, risk management, and stop-losses. The author assumes no responsibility for any trading losses incurred while using this script.
CRR Market Structure & Trend Analyzer v3 + DashboardCRR Institutional Market Structure DB Trend Decider 2 is an analysis-only tool designed to visualize market structure, trend transitions, and institutional context.
It combines BOS / CHoCH logic, adaptive trendlines, volatility-filtered trend bands, multi-timeframe institutional zones, and a compact dashboard for directional bias assessment.
This indicator is intended strictly for educational and analytical purposes and does not provide trading signals or execution guidance
USDC/USDT PremiumUSDC/USDT Premium Index
Overview
This indicator tracks the premium or discount of USD Coin (USDC) relative to Tether (USDT) using data from Binance. It serves as a barometer for sentiment within the stablecoin market. A premium on USDC often suggests a flight to quality or higher demand for a stablecoin perceived as more transparent and regulated.
Key Features
•
Premium Calculation: The premium is calculated as (USDC/USDT Price - 1) * 100 to represent the deviation from parity in basis points. For example, a value of 0.1 means USDC is trading at a 0.1% premium to USDT (i.e., a price of 1.001).
•
Dynamic Coloring: The indicator's line color changes based on its position relative to a moving average (MA):
•
Green: The premium is currently above its moving average, suggesting bullish momentum for USDC.
•
Red: The premium is below its moving average, indicating bearish momentum.
•
Zero Line: A zero line is plotted to clearly distinguish between a premium (above zero) and a discount (below zero).
•
Customizable MA: You can adjust the moving average period and type (SMA, EMA, etc.) to fine-tune the indicator's sensitivity.
How to Use
1.
Gauge Stablecoin Sentiment: A rising premium (green line) can indicate that traders are favoring USDC over USDT, which might happen during times of market uncertainty or concerns about USDT's reserves.
2.
Identify Shifts in Momentum: Look for the color to flip from red to green as a sign that the USDC premium is gaining strength. A flip from green to red may signal a weakening trend.
3.
Spot Extremes: Extreme deviations from the zero line can signal market stress or significant capital flows between the two major stablecoins.
Interpretation
•
Green Line (Premium > MA): Suggests that the short-term trend for the USDC premium is positive and strengthening.
•
Red Line (Premium < MA): Suggests that the short-term trend is negative, with USDC's value declining relative to its recent average against USDT.
•
Above Zero Line: USDC is trading at a premium to USDT.
•
Below Zero Line: USDC is trading at a discount to USDT.
This tool provides a nuanced view of the stablecoin ecosystem, helping traders understand capital flows and risk appetite. It is most effective when used to complement a broader market analysis strategy.
Swing Structure Bands [ChartPrime]⯁ OVERVIEW
Swing Structure Bands is a structure-based trend and reaction indicator that builds adaptive price bands directly from swing highs and swing lows.
Instead of using fixed-length moving averages, the bands dynamically adjust their length based on how long price has been forming higher highs or lower lows, allowing the indicator to naturally align with real market structure.
This makes the tool especially effective for identifying swing-based support and resistance, trend continuation zones, and exhaustion reactions.
⯁ CORE CONCEPT
The indicator continuously tracks:
The most recent swing high and swing low over a configurable swing window.
How long price has been developing since each swing point.
Dynamic moving averages whose length grows with the swing itself.
As long as price respects the current swing direction, the bands extend and adapt.
When structure breaks, the system resets and starts forming new swing-based bands.
⯁ SWING DETECTION LOGIC
A Swing High is detected when price forms a local maximum relative to the swing lookback.
A Swing Low is detected when price forms a local minimum relative to the swing lookback.
Direction flips when price transitions from forming highs to forming lows, or vice versa.
Each confirmed swing is marked on the chart, giving clear structural context.
⯁ ADAPTIVE BAND CONSTRUCTION
Upper bands are derived from swing highs.
Lower bands are derived from swing lows.
Band length dynamically increases as the swing develops.
Multiple MA types can be used (SMA, EMA, SMMA/RMA, WMA, VWMA).
ATR is applied as an offset to create upper and lower envelopes around each band, forming a volatility-aware structure channel.
⯁ VOLATILITY FILTERING
If the band moves too aggressively relative to ATR, it is temporarily disabled.
This prevents unstable or noisy bands during sudden expansions.
Bands only remain active when price structure is stable.
This logic keeps the indicator focused on meaningful swings rather than short-term spikes.
⯁ REACTION & SIGNAL LOGIC
Sell signals appear when price crosses down from the upper swing band after sufficient stabilization.
Buy signals appear when price crosses up from the lower swing band after sufficient stabilization.
Cooldown logic prevents signal clustering.
Signals are designed as structure reactions , not momentum breakouts.
⯁ VISUAL STRUCTURE CLARITY
Separate bullish and bearish bands with customizable colors.
Optional band envelopes for visual depth.
Clear swing labels marking structural turning points.
Diamond markers highlight reaction zones.
The visualization emphasizes where price reacts to structure rather than where it accelerates.
⯁ HOW TO USE
Use upper bands as dynamic resistance during bearish or corrective phases.
Use lower bands as dynamic support during bullish phases.
Combine band reactions with higher-timeframe trend direction.
Look for confirmations near bands rather than mid-range entries.
The indicator works best as a structure framework rather than a standalone signal generator.
⯁ IDEAL MARKET CONDITIONS
Trending markets with clear swing development.
Markets transitioning from impulse to correction.
Crypto, forex, indices, and liquid stocks.
⯁ CONCLUSION
Swing Structure Bands offers a structurally grounded alternative to traditional moving average channels.
By anchoring bands to real swing behavior and adapting dynamically over time, it provides traders with a clearer view of where price is reacting, pausing, or potentially reversing within the broader market structure.






















