Neural Confluence Engine [Quantum Algo]Neural Confluence Engine
Neural Confluence Engine is a Pine Script v6 indicator that fuses eight independent technical factors — momentum, trend, VWAP position, RSI regime, MACD acceleration, ADX trend power, volume confirmation, and squeeze state — into a single weighted directional strength score on a 0–100 scale. Signals are gated by a user-configurable score threshold and an optional higher-timeframe trend filter before firing. The script is open-source. All signals are confirmed on bar close and do not repaint.
═══════════════════════════════════════════════════════════════════════
HOW IT WORKS
═══════════════════════════════════════════════════════════════════════
1. The eight factor model. Each bar, the engine evaluates eight independent factors and assigns each a normalized score between 0 and 1 based on its current state and intensity. Factors are scored separately for bullish and bearish directions.
2. WaveTrend Momentum (weight 1.5). Computes a custom oscillator from HLC3 smoothed by EMA of channel length (default 9) and signal length (default 12). Oversold reversals below -40 score 1.0; readings above zero score 0.8; positive crossovers below zero score 0.5.
3. EMA Alignment (weight 1.3). Triple EMA stack: fast (default 9) > slow (default 21) > baseline (default 50) scores 1.0 for full alignment. Fast > slow alone scores 0.6. Otherwise 0.
4. VWAP Position (weight 1.0). Price above VWAP by more than 1 ATR scores 1.0. Price above VWAP within 1 ATR scores 0.7. Below VWAP scores 0.
5. RSI Regime (weight 0.8). RSI above 60 scores 1.0. RSI between 50 and 60 scores 0.6. Below 50 scores 0.
6. MACD Histogram (weight 0.8). Rising histogram above zero scores 1.0. Positive but flat histogram scores 0.6. Negative histogram scores 0.
7. ADX Trend Power (weight 0.7). ADX above 40 scores 1.0. ADX between 25 and 40 scores 0.7. ADX below 25 scores 0.3 (penalty for chop, not zero).
8. Volume Confirmation (weight 1.0). Volume above 20-bar SMA combined with a directional candle close scores 1.0. Volume between 80% and 100% of average scores 0.4. Below scores 0.
9. Squeeze State (weight 1.2). Detects Bollinger Band compression inside Keltner Channels using length-20 standard deviation and ATR-10 envelopes. A "firing" bar (compression releases) with positive momentum scores 1.0. Compression without release scores 0.3.
10. Weighted aggregation and smoothing. Each directional factor is multiplied by its weight, summed, divided by total weight, and scaled to 0–100. The raw score is then smoothed with a 3-bar EMA to reduce single-bar noise. Bull score and Bear score are tracked separately. The net Neural Confluence Engine score is the difference between them.
═══════════════════════════════════════════════════════════════════════
SIGNAL TIERS
═══════════════════════════════════════════════════════════════════════
The script produces two signal tiers from the same scoring engine, allowing traders to choose between sensitivity and selectivity.
Standard signals (BUY / SELL). Fire on EMA ribbon color change — when the fast EMA crosses the slow EMA. These follow every directional shift regardless of score. Useful for systematic trend-following.
High-confluence signals (BUY+ / SELL+). Fire only when three conditions align simultaneously: an EMA cross occurs, the directional score exceeds the user-configurable threshold (default 60), and the higher-timeframe trend agrees with the signal direction. Used to filter for the most aligned setups.
Both signal tiers open trade management — entry, stop loss, three take-profit targets, and optional trailing stop after TP1.
═══════════════════════════════════════════════════════════════════════
TRADE MANAGEMENT
═══════════════════════════════════════════════════════════════════════
When a signal fires, the engine computes ATR-scaled risk levels relative to entry:
Stop loss: entry minus 1.5 × ATR (configurable multiplier 0.5–10).
TP1: 1R target (configurable risk-reward ratio).
TP2: 2R target.
TP3: 3R target.
When TP1 is reached, the stop converts to a trailing structure: SL moves to breakeven, then advances to TP1 level when TP2 is hit, then to TP2 level when TP3 is hit. The trailing stop also follows price at 0.5 × ATR distance after TP1. This can be disabled via the "Activate Trailing SL after TP1" toggle.
═══════════════════════════════════════════════════════════════════════
WHAT'S ACTUALLY DIFFERENT
═══════════════════════════════════════════════════════════════════════
◆ Eight-factor weighted composite, not a single trigger. Standard indicators fire on one condition — an EMA cross, an RSI level, a volume spike. The Neural Confluence Engine requires multiple independent factors to agree, weights them by historical reliability, and gates signals through a configurable score threshold. The trader can dial sensitivity from 20 (sensitive) to 95 (selective) without re-tuning eight separate sub-indicators.
◆ Two-tier signal architecture. Most indicators produce one stream of signals. This produces two from the same engine: standard ribbon flips for sensitive trend-following, and high-confluence variants gated by score + HTF agreement. Traders can use either tier independently or both in confluence.
◆ HTF agreement is built into the signal gate, not a separate filter. The higher-timeframe trend check is computed natively via request.security, auto-detected based on the chart timeframe (15m → 1H, 1H → 4H, 4H → D, D → W) or set manually. BUY+/SELL+ signals are blocked if HTF disagrees.
◆ Per-factor visibility in the dashboard. Each of the eight factors is individually viewable in real time — traders can see exactly which factors are contributing to the current score, rather than receiving a black-box signal. This is rare in confluence-style indicators which typically hide the sub-components.
◆ Trailing-stop ratcheting tied to TP hits. The trailing stop doesn't just follow ATR — it advances in tiers tied to take-profit milestones. After TP1, stop moves to breakeven. After TP2, to TP1. After TP3, to TP2. This protects profits at structurally meaningful levels rather than purely volatility-derived ones.
═══════════════════════════════════════════════════════════════════════
RECOMMENDED SETTINGS
═══════════════════════════════════════════════════════════════════════
Forex majors (EUR/USD, GBP/USD, USD/JPY) — 1H to 4H: Min Confluence Score 65, HTF Trend Filter on, SL Multiplier 1.5, TP R:R 1/2/3, HTF auto. Optimized for session-driven moves where structural levels respect institutional flow.
Crypto perpetuals (BTC, ETH, SOL) — 15M to 1H: Min Confluence Score 60, HTF Trend Filter on, SL Multiplier 2.0, TP R:R 1/2/3, HTF auto. Tuned for 24/7 markets with higher noise floors; the slightly wider stop accommodates increased wick volatility.
Gold (XAUUSD) — 1H to 4H: Min Confluence Score 70, HTF Trend Filter on, SL Multiplier 1.8, TP R:R 1/2/3.5, HTF set to Daily. Designed for the elevated wick activity around US session open and the tendency for sharp moves to develop after squeeze release.
Indices (SPX, NDX, DAX) — 5M to 1H: Min Confluence Score 55, HTF Trend Filter on, SL Multiplier 1.2, TP R:R 1/2/3, HTF auto. Tuned for cash-session structure and typical post-open momentum continuation.
Swing trading (any market) — 4H to Daily: Min Confluence Score 75, HTF Trend Filter on, SL Multiplier 2.5, TP R:R 1.5/3/5, HTF set to Weekly. Reduces noise to the highest-conviction setups only; wider targets to match the higher timeframe.
═══════════════════════════════════════════════════════════════════════
ALERTS & OUTPUTS
═══════════════════════════════════════════════════════════════════════
Alerts available:
BUY signal — ribbon flipped bullish (standard sensitivity)
SELL signal — ribbon flipped bearish (standard sensitivity)
BUY+ signal — high-confluence bullish setup
SELL+ signal — high-confluence bearish setup
Squeeze breakout — volatility compression released
TP1 reached — trailing stop activated
TP2 reached
TP3 reached
On-chart visuals:
EMA ribbon (5, 9, 13, 21, 34, 50) with fill bands colored by trend direction
VWAP plot with color reflecting price position
BUY / SELL / BUY+ / SELL+ signal labels at signal bars
Confluence score percentage label on BUY+ / SELL+ bars
Optional Entry / SL / TP1 / TP2 / TP3 horizontal lines for the most recent trade
TP-hit confirmation labels with checkmarks
Squeeze background highlight when compression is active
Diamond markers (⚡) on squeeze breakout bars
Optional momentum wave background colored by net score intensity
Optional candle coloring on signal bars
Multi-row dashboard with bull/bear scores, bias classification, HTF direction, factor states, trade status, and threshold setting
═══════════════════════════════════════════════════════════════════════
NOTES
═══════════════════════════════════════════════════════════════════════
Pine Script version: v6.
Repainting: All signals (BUY, SELL, BUY+, SELL+, squeeze breakouts, TP/SL hits) are evaluated on confirmed bar close and do not repaint. Higher-timeframe values use lookahead=barmerge.lookahead_off so HTF readings reflect only confirmed information available at signal time.
Compatibility: Works on all symbols and timeframes available in PulseWire. Tested on forex majors, crypto perpetuals, gold, and major indices. Functions on stocks but the volume confirmation factor may require threshold adjustment for low-volume tickers. Functions on continuous contracts and CFDs.
Open-source: This script is open-source. Clone, study, and modify it freely under the terms of PulseWire's House Rules. Republishing the source under a different name is not permitted.
Credits: This indicator's logic is independently developed. The component oscillators (WaveTrend, RSI, MACD, ADX, Bollinger Bands, Keltner Channels, VWAP) are standard public-domain technical analysis tools. The weighted-score aggregation methodology, two-tier signal architecture, ATR-tiered trailing stop progression, and per-factor dashboard are original implementations.
Disclaimer: This indicator is provided for educational and analytical purposes. Trading involves substantial risk of loss. Past performance does not guarantee future results. Position sizing and risk management are the trader's sole responsibility. Nothing in this script or description constitutes financial advice. Indicator

Indicator

Indicator

Indicator

Indicator

Tetris MARKET 🧩 Market Tetris Grid – Multi-Factor Market Structure Model
This indicator is a multi-layer market structure visualization system that combines volatility, momentum, volume flow, and trend direction into a unified “block-based” framework inspired by Tetris logic.
The purpose of this model is not to generate isolated signals, but to visualize the internal strength and alignment of market forces in real time.
🔬 CORE MATHEMATICAL STRUCTURE
The system is built on six independent market components:
1. ATR (Volatility Engine – Enhanced / Super ATR Concept)
The ATR component is not used in its standard form only.
Instead, it is normalized and interpreted as a relative volatility expansion engine.
It measures:
Market range expansion
Volatility pressure compared to historical average
Structural movement intensity
This is part of a broader “multi-source volatility interpretation” approach, where ATR is combined with range and true range behavior to represent real market energy rather than simple average true range.
2. Delta (Price Pressure)
Delta represents raw directional price movement:
Positive delta → buying pressure
Negative delta → selling pressure
It captures immediate micro-directional momentum of price.
3. OBV (Volume Flow Engine)
OBV is implemented in a stable cumulative form:
Volume is added on upward closes
Subtracted on downward closes
This reflects net capital flow direction rather than raw volume.
4. Momentum (Rate of Change)
Momentum is calculated using rate-of-change logic:
Measures speed of price movement
Identifies acceleration or deceleration phases
5. Volatility Ratio
Volatility is normalized using ATR relative to its moving average:
Detects expansion vs compression phases
Identifies structural volatility regime shifts
6. Trend Structure
Trend is defined as the difference between short and medium EMAs:
Represents directional bias
Filters noise from raw price movement
🧠 SCORING & PROBABILITY MODEL
All six components are normalized and aggregated into a unified score:
Positive score → bullish market bias
Negative score → bearish market bias
This score is then converted into:
Bullish Probability (%)
Bearish Probability (%)
The probability is not predictive in isolation, but represents multi-factor alignment strength across market dimensions.
🧱 VISUAL MODEL (TETRIS GRID LOGIC)
Each column represents one market force:
ATR / Delta / OBV / Momentum / Volatility / Trend
Block height reflects intensity, allowing visual detection of:
Market expansion zones
Compression phases
Directional imbalance
Structural alignment or divergence
⚠️ INTENDED USE
This indicator is designed for:
Market structure analysis
Trend strength visualization
Multi-factor confirmation
Institutional-style flow interpretation
It is not intended to be a standalone buy/sell system.
🇹🇷 TÜRKÇE AÇIKLAMA (RESMİ)
🧩 Market Tetris Grid – Çok Faktörlü Piyasa Yapı Modeli
Bu indikatör, volatilite, momentum, hacim akışı ve trend yönünü tek bir “blok tabanlı yapı” içinde birleştiren çok katmanlı bir piyasa görselleştirme sistemidir.
Amaç, tekil sinyal üretmek değil; piyasanın içsel güç dağılımını ve uyumunu gerçek zamanlı olarak görselleştirmektir.
🔬 TEMEL MATEMATİK YAPI
Sistem 6 ana piyasa bileşeni üzerine kuruludur:
1. ATR (Geliştirilmiş Volatilite Motoru – “Super ATR” Mantığı)
ATR sadece klasik haliyle kullanılmaz.
Bunun yerine:
normalize edilir
geçmiş ortalamalara göre göreceli gücü ölçülür
piyasa genişleme enerjisi olarak yorumlanır
Bu yapı, standart ATR’den farklı olarak:
👉 “çok kaynaklı volatilite yorumlama modeli” içerir.
Yani sadece ortalama gerçek aralık değil, piyasanın enerji artışı / daralması analiz edilir.
2. Delta (Fiyat Baskısı)
Delta, fiyatın anlık yönlü hareketini temsil eder:
Pozitif delta → alım baskısı
Negatif delta → satım baskısı
3. OBV (Hacim Akışı)
OBV şu mantıkla çalışır:
kapanış yukarıysa hacim eklenir
kapanış aşağıysa hacim çıkarılır
Bu yapı net para akış yönünü gösterir.
4. Momentum
Momentum, fiyat değişim hızını ölçer:
hızlanma / yavaşlama tespiti yapar
5. Volatilite Oranı
ATR’nin kendi ortalamasına oranı alınır:
piyasa sıkışma / genişleme tespiti
rejim değişimi analizi
6. Trend Yapısı
Kısa ve orta EMA farkı alınır:
yönlü bias üretir
gürültüyü filtreler
🧠 SKOR VE OLASILIK MODELİ
6 bileşen normalize edilerek tek bir skor oluşturur:
pozitif skor → bullish baskı
negatif skor → bearish baskı
Bu skor daha sonra:
Bullish %
Bearish %
olarak olasılığa çevrilir.
Bu değer tek başına tahmin değil, çoklu piyasa faktörlerinin hizalanma gücünü gösterir.
🧱 GÖRSEL MODEL (TETRIS MANTIĞI)
Her sütun bir piyasa gücünü temsil eder:
ATR / Delta / OBV / Momentum / Volatilite / Trend
Blok yüksekliği, ilgili faktörün gücünü gösterir.
Bu sayede:
genişleme bölgeleri
sıkışma alanları
yönsel dengesizlik
yapısal uyum / ayrışma
görsel olarak analiz edilebilir.
⚠️ KULLANIM AMACI
Bu indikatör:
piyasa yapısı analizi
trend gücü ölçümü
çok faktörlü doğrulama
kurumsal akış yorumlama
için tasarlanmıştır.
Tek başına al/sat sistemi değildir. Indicator

Meridian Stochastic Regime Suite [JOAT]Meridian Stochastic Regime Suite
Introduction
Meridian Stochastic Regime Suite is an open-source adaptive oscillator built for traders who want more context than a standard stochastic line can provide. The script combines a centered stochastic engine, an adaptive response model, and a regime profile so the oscillator changes character as the market shifts between trend, compression, expansion, and balance.
The problem Meridian solves is signal quality. Standard oscillators often look clean, but they do not explain whether momentum is occurring inside a compressed market, an expanding breakout phase, or a stable trend. Meridian adds that context directly into the oscillator architecture so the same reading can be interpreted differently depending on the active regime profile.
Core Concepts
1. Centered stochastic architecture
Price is pre-smoothed first, then converted into a stochastic reading that is centered around 50 so directional pressure is easy to interpret:
smoothHigh = ta.ema(high, priceSmoothLen)
smoothLow = ta.ema(low, priceSmoothLen)
smoothClose = ta.ema(close, priceSmoothLen)
rawStoch = 100.0 * (smoothClose - ta.lowest(smoothLow, stochLen)) / stochRange
2. Adaptive response engine
The main oscillator does not use static smoothing alone. Its response speed and gain expand or contract based on the regime profile:
gainBias = gainBase + trendScore * 0.38 + expansionScore * 0.18 - compressionScore * 0.12
speedBias = responseBase + trendScore * 0.08 + expansionScore * 0.04
adaptiveOsc := adaptiveOsc + speedBias * (adaptiveSeed - adaptiveOsc )
This helps the oscillator respond differently in directional and compressed conditions.
3. Embedded regime scoring
Meridian computes four internal state scores:
Trend
Compression
Expansion
Balance
Those scores are derived from ATR behavior, path efficiency, and slope strength, then normalized into a regime profile shown in the dashboard.
4. Spread and signal layer
The script compares the adaptive oscillator to a slower signal line and visualizes the spread around the neutral axis. This gives a direct view of acceleration versus drag.
5. Institutional oscillator panel
The panel uses restrained zones, layered fills, and a top-right dashboard instead of loud markers. The result stays readable while still carrying multiple analytical dimensions.
Features
Centered stochastic core: Keeps the oscillator readable around a neutral midpoint
Adaptive response model: Gain and speed shift with the internal regime profile
Four-state regime map: Trend, Compression, Expansion, and Balance
Fast line and signal line: Shows momentum acceleration versus stabilization
Spread shading: Highlights when the adaptive oscillator is separating from the signal line
Regime dashboard: Displays state, confidence, adaptive reading, signal reading, and regime profile shares
Confirmed-bar flips: Internal state transitions are tracked on closed bars
Non-repainting design: Uses only current-timeframe data and no future references
Input Parameters
Stochastic Core:
Price Pre-Smoothing
Stochastic Length
Fast Smoothing
Adaptive Signal Smoothing
Regime Filter:
Regime Window
ATR Window
Base Oscillator Gain
Base Response Speed
Visual Output:
Show Adaptive Zones
Show Centered Fast Line
How to Use This Indicator
Step 1: Start with the regime
Read the dashboard first. Trend and Expansion regimes support directional interpretation. Compression and Balance call for more caution.
Step 2: Watch adaptive versus signal spread
When the adaptive line separates cleanly from the signal line, momentum is strengthening. When the spread compresses, the move is losing urgency.
Step 3: Use the centered fast line as timing context
The fast line helps show whether short-term momentum is leading or lagging the adaptive engine.
Step 4: Avoid isolated readings
Meridian is strongest when used alongside a structure or value-based tool rather than as a standalone trade trigger.
Indicator Limitations
Like all oscillators, Meridian can remain elevated or depressed during strong directional trends
Compression states may delay re-acceleration readings until volatility expands again
The regime profile is descriptive, not predictive
Originality Statement
Meridian Stochastic Regime Suite is original in how it embeds a four-state regime profile directly into the adaptive behavior of a centered stochastic engine. It is published because:
The oscillator response changes with internal market-state measurements instead of using only fixed smoothing
The script surfaces trend, compression, expansion, and balance as percentages inside the same panel
The panel and dashboard design turn regime context into an interpretable momentum framework rather than a generic stochastic clone
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to trade. Oscillator readings can remain extreme for extended periods, and regime classifications can shift as conditions evolve. Always use independent judgment and proper risk management.
Indicator

MTF Pivot+ (Camarilla & CPR)MTF Pivot+ is an advanced indicator that combines Camarilla levels and Central Pivot Range (CPR) zones with multi-timeframe (MTF) analysis. It equips traders with a powerful toolkit to identify key support and resistance zones, analyze market trends, and pinpoint precision entry areas for both day trading and swing trading!
Key Features:
⏱️ Smart Auto-Timeframe: Automatically selects the optimal higher timeframe for calculating levels based on your current chart (e.g., Daily levels for intraday charts up to 30m).
🎯 Central Pivot Range (CPR): Displays the CPR zone (CP, BC, TC) with built-in trend analysis. The zone automatically changes color depending on its shift relative to the previous period (bullish, bearish, or flat).
📊 Camarilla Pivot Levels: Comprehensive calculation of internal levels (R1-R2 / S1-S2), key reversal zones (R3 / S3), breakout extremes (R4 / S4), and extended targets (R5-R6 / S5-S6).
🔄 Dynamic (Rolling) Pivots: Option to calculate levels from the previous day's close for daily dynamic updates, while still maintaining the true highs and lows of the higher timeframe.
💱 Advanced Futures Support: Seamlessly use continuous contracts and calculate pivots based on the Last Traded Price (LTP) instead of exchange settlement prices.
🎛️ MTF Dashboard: A compact, sleek on-chart panel showing the current price's position relative to the Central Pivot (CP) across Daily, Weekly, and Monthly timeframes at a single glance.
🔔 Comprehensive Alerts System: Built-in alerts with a smart "cooldown" feature for CPR crosses, touches of reversal zones, R4/S4 breakouts, and previous period High/Low breaches.
🎨 Highly Customizable: Easily toggle specific levels or features on/off (for example, enabling HLC mode hides main levels) to keep your charts clean, focused, and informative!
⚠️ Disclaimer:
This indicator is provided solely for educational and informational purposes. It does not constitute financial, investment, or trading advice.
Please keep the following important points in mind:
High Risks: Trading in financial markets (cryptocurrencies, forex, stocks, futures) involves a high level of risk and may result in the partial or total loss of your capital.
No Guarantees: Indicators are based on the mathematical analysis of past price data. Past price movements and successful level tests do not guarantee future profits.
Do Your Own Research (DYOR): Never make trading decisions based solely on the readings of a single indicator. Always conduct your own comprehensive market analysis, consider the overall context, and employ strict risk management.
Responsibility: You use this script entirely at your own risk.
Indicator

Volatility Heatmap Bands [PickMyTrade]━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Volatility Heatmap Bands fits a log-normal distribution to recent price returns and draws a statistically calibrated price envelope — then colours every bar by where it sits inside that envelope.
Simple version: the red band at the top is the "overbought wall." The cyan band at the bottom is the "oversold wall." When bars turn red, price is statistically stretched toward the top. When bars turn cyan, price is statistically stretched toward the bottom. The colour tells you whether a move is normal or extreme — without reading a single number.
Three layers power every calculation:
▸ Log-Normal Drift (μ) — rolling mean of log-returns, representing the direction price is diffusing
▸ Volatility (σ) — rolling standard deviation of log-returns, updated every bar
▸ Itô Correction (−½σ²) — converts the arithmetic mean to a geometric mean, required for continuous-time price models. Without this, the envelope is systematically biased upward
The result is a probability corridor that widens in volatile markets and tightens in calm ones — automatically, with no manual adjustment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE HEATMAP EXPLAINED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each bar is coloured by a single value: the normalised position of close within the 10th–90th percentile envelope.
position = (close − 10th band) / (90th band − 10th band)
0.0 → close is at or below the 10th band → deep cyan
0.5 → close is at the midpoint → neutral
1.0 → close is at or above the 90th band → deep red
This is not a momentum oscillator and not RSI. It is a spatial measure of where price sits inside its own forward-projected distribution. A deep-red bar means the current close is in the top decile of the statistically projected range — not that it is rising fast, but that it has reached a zone that is historically reached only 10% of the time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNALS — ▲ LONG / ▼ SHORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A breakout signal fires when price exits the N-bar channel:
▲ Long — close breaks above the highest close of the last N bars
▼ Short — close breaks below the lowest close of the last N bars
An optional trend filter (slow EMA gate) removes counter-trend signals:
• Longs only when close is above the trend EMA
• Shorts only when close is below the trend EMA
Signals appear as small triangles on the chart. They are not trade recommendations — they mark a structural breakout that coincides with a momentum expansion, for the trader to act on within their own framework.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VOLATILITY REGIME DETECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
σ is compared to its own rolling distribution via a percentile rank:
≥ 75th percentile of σ → High Vol regime (subtle orange background)
25th – 75th → Normal regime (no tint)
< 25th percentile of σ → Low Vol regime (subtle blue background)
Why it matters: the same breakout signal in a High Vol regime carries a wider envelope and therefore a different risk profile than the same breakout in Low Vol. The background tint makes the regime visible at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES IT DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most volatility bands (Bollinger, Keltner, Donchian) are constructed from past price movement around a moving average. They describe where price has been.
VHB projects forward. The envelope is calculated at the current close and extended H bars into the future using the fitted distribution. The bands show where price is statistically likely to be in H bars — not where it has been.
Consequence: in a trending market the bands tilt with the drift. In a mean-reverting market the bands remain flat. The geometry of the envelope changes with market character, not with arbitrary multiplier choices.
The Itô correction is not a cosmetic detail. In continuous-time finance, the expected log-price grows at μ − ½σ², not μ. Omitting the correction causes the upper band to overstate likely price levels by an amount that grows with σ² — small in calm markets, significant during volatility expansion. VHB applies the correction on every bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Apply to any liquid instrument — futures (MNQ, NQ, ES, CL, GC), forex pairs, crypto
2. Choose your timeframe:
• 1m / 5m — scalping, intraday momentum
• 15m / 1H — intraday swing
• 4H / Daily — positional
3. Read the heatmap first:
• Cyan bars near the lower band → price is statistically cheap relative to its own distribution
• Red bars near the upper band → price is statistically expensive
4. Wait for a signal ▲ / ▼ to confirm directional intent
5. Use the info panel (bottom-right) to monitor CDF Score, σ/bar, regime, and band levels in real time
6. Set alerts via the Alerts tab for Long Signal, Short Signal, or Regime changes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
| Input | Default | Purpose |
|---|---|---|
| Fit Lookback | 100 | Bars used to estimate μ and σ |
| Holding Horizon | 10 | Bars forward the distribution is projected |
| Breakout Channel | 20 | N-bar high/low for signal detection |
| Trend Filter | ON | EMA gate — removes counter-trend signals |
| Trend EMA Length | 200 | Slow EMA period for directional gate |
| Show Outer Bands | ON | 10th and 90th percentile lines |
| Show Median | ON | 50th percentile — Itô-corrected drift line |
| Show Inner Bands | OFF | 25th and 75th percentile lines |
| Fill Band | ON | Dark fill between 10th and 90th |
| Heatmap Bar Colour | ON | Cyan–red gradient by envelope position |
| Highlight Regime | ON | Subtle background tint by volatility regime |
| Show Info Panel | ON | Live σ, CDF score, drift, bands, signal |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Requires at least Fit Lookback bars of history before the first band appears
• Works on any asset class; continuous instruments (futures, forex) show the cleanest log-return distribution
• The indicator does not repaint — all band values are calculated from confirmed closed bars
• Signals use close for channel calculation — no lookahead bias
• This tool is for research and educational purposes only. It is not financial advice.
Indicator

Momentum Matrix [LIVE]### Introduction
Welcome to Momentum Matrix , a multi-dimensional momentum and volatility confluence engine. This indicator combines Linear Geometry (Moving Average Slope) with Derivative Volatility Breakouts (Bollinger Bands applied to a custom MACD line) to create a rigorous, two-step verification system designed to identify high-probability trend expansions while filtering out low-volume market noise and chop.
### How It Works
1. **The Core Trend (MA Angle):** The script normalizes a moving average using an Average True Range (ATR) calculation to determine its precise geometric angle. It flags the trend as bullish or bearish only when the moving average breaks past a user-defined threshold (e.g., 6°), turning flat ranges grey (**No Trade Zone**).
2. **The Volatility Trigger (MACD BB):** A custom MACD line is tracked natively against standard deviation Bollinger Bands. When momentum expands, the MACD line punches outside the bands.
3. **The Confluence Signal:** When **both** systems simultaneously turn bright green or bright red, the script prints a distinct **Confluence Dot** on the zero line, signaling an institutional momentum breakout.
---
### Key Use Cases
*🚀 **Squeeze Play & Volatility Breakout Entries***
Entering the trade on the first Confluence Dot catches the absolute beginning of a macro trend expansion.
*📈 **High-Probability Trend Following***
As long as the lines and histograms stay locked in solid green or red, it proves that the velocity of the move is being actively sustained by volume.
*⚠️ **False Breakout Filter (Staying Out of Chop)***
Many traders lose money by buying a breakout on the price chart, only for it to immediately reverse. This indicator acts as a gatekeeper. If price makes a sudden spike upward, the MACD might briefly flash green. However, if the broader Moving Average Angle remains flat and stuck in the "No Trade Zone," the indicator refuses to print a buy dot, preventing FOMO entries.
*⏱️ **Scalping with the Live Delta Dashboard***
If an asset is moving up but the live angle change starts decaying (e.g., dropping from +2.5° down to +0.2°), it signals a hidden momentum loss—alerting you to take profits before the price action actually stalls out.
---
### Key Features
* **Adaptive MA Selection:** Swap between EMA, SMA, HMA, LSMA, ALMA, and McGinley.
* **Built-in Volatility Filter:** Bollinger Bands track the MACD line directly to confirm momentum expansion.
* **Live Statistics Table:** View current trend angles and live changes on every tick.
* **Strict Non-Repainting Signals:** Confluence triggers confirm at the close of the bar to ensure historical data accuracy.
---
### Credits & Acknowledgments
This script is a customized confluence engine built upon the excellent open-source work of two brilliant developers in the PulseWire community. Special thanks to:
* ** @Mango2Juice ** for the foundational logic behind the *Angle of Moving Averages* script.
* ** @Algokid ** for the original concept and design of the *AK MACD BB indicator*.
This version modernizes the calculations into Pine Script v5 , introduces a dynamic real-time tracking dashboard, and establishes a strict non-repainting mathematical handshake between both metrics. Indicator

Indicator

Strategy

Dynamic Range RSI [DefinedEdge]🔍 OVERVIEW
Really excited to release this one. I've been working on this for a while and it solves something that always bugged me about RSI: the fixed lookback period. Markets don't move at one speed, so why should your oscillator?
Dynamic Range RSI rethinks the standard RSI by replacing the fixed lookback with a volatility-adaptive engine. The indicator reads the current ATR regime and automatically adjusts its period. Shorter when markets are volatile, longer when they're quiet. No manual switching, no lag when it matters.
It also layers in divergence detection and a higher-timeframe confluence ribbon so you're not trading the oscillator in isolation.
⚙️ HOW IT WORKS
The core calculation uses a range-normalized momentum formula instead of standard RSI math. Price changes are weighted by the current high-low range, which makes the output cleaner during trending moves and less prone to false signals during chop.
The adaptive length is driven by an ATR ratio (fast ATR vs slow ATR). When volatility spikes, the RSI period compresses toward the minimum. When volatility drops, it stretches toward the maximum. Responsive during breakouts, smooth during consolidation.
🎯 FEATURES
→ ATR-adaptive RSI length (user-defined min/max range)
→ Range-normalized momentum calculation
→ 4 smoothing methods: EMA, SMA, RMA, TMA
→ Automatic divergence detection (pivot-based, configurable lookback)
→ Higher-timeframe confluence ribbon (auto or manual HTF selection)
→ Signal line crossover dots filtered to OB/OS zones only
→ 6 built-in alert conditions
→ Dynamic length visible in status line
📊 SIGNALS
• Green circles: signal line cross up inside oversold zone
• Red circles: signal line cross down inside overbought zone
• "Bull" labels: bullish divergence (price lower low, RSI higher low)
• "Bear" labels: bearish divergence (price higher high, RSI lower high)
• Background shading: HTF ribbon turns green/red when the higher timeframe agrees on OB/OS
💡 USAGE TIPS
Works on any market, any timeframe. For crypto I like the 4H. The adaptive length flexes between roughly 1 to 5 days of lookback which catches momentum shifts well. For scalping, 15min with HTF pulling from 4H gives solid confluence.
If the dynamic length stays pinned at minimum too often, bump the Min Length up to 8-10 to smooth it out. Indicator

Indicator

Indicator

Squeeze Momentum Setup Assistant
BB/KC squeeze detection with MA trend signals, RSI filtering, and ATR-based stop/target levels.
Squeeze Momentum Setup Assistant is a hybrid volatility and trend-confirmation tool designed to help traders identify potential breakout setups, trend shifts, and ATR-based risk levels directly on the chart.
The indicator combines Bollinger Bands and Keltner Channels to detect squeeze conditions. A squeeze occurs when the Bollinger Bands contract inside the Keltner Channels, suggesting a period of reduced volatility and possible energy buildup.
When the squeeze releases, the script uses a simple momentum calculation to classify the potential breakout direction:
- SqueezeUp appears when volatility releases with positive momentum.
- SqueezeDown appears when volatility releases with negative momentum.
In addition to squeeze detection, the indicator includes a moving average crossover system with RSI filtering:
- A Call signal appears when the short moving average crosses above the long moving average while RSI remains below the overbought zone.
- A Put signal appears when the short moving average crosses below the long moving average while RSI remains above the oversold zone.
For each Call or Put setup, the indicator automatically calculates ATR-based stop and target levels. This helps traders visualize potential risk and reward zones without manually measuring volatility.
Key features:
- Bollinger Band and Keltner Channel squeeze detection
- Squeeze release direction labels
- Moving average crossover signals
- RSI-based signal filtering
- ATR-based stop loss and target projections
- Visual trend and volatility structure on the chart
This tool is designed for traders who want to combine volatility compression, momentum release, trend confirmation, and risk planning in one visual framework.
Best used with market structure, VWAP, support and resistance, volume confirmation, and higher timeframe trend context.
Important:
This indicator does not predict future price movement and should not be used as a standalone trading system. Squeeze releases can fail, moving average crossovers can lag, and ATR levels are only volatility-based reference zones. Always use proper risk management and additional confirmation.
A hybrid squeeze and trend setup assistant that combines BB/KC volatility compression, momentum release direction, MA crossover signals, RSI filtering, and ATR-based stop/target levels.
How it works:
The indicator first compares Bollinger Bands against Keltner Channels to detect volatility compression. When the Bollinger Bands move inside the Keltner Channels, the market is considered to be in a squeeze.
When the squeeze releases, momentum is used to estimate the possible breakout direction.
Separately, the script evaluates short and long moving average crossovers with RSI filtering to identify possible Call and Put setups.
When a Call or Put condition appears, the indicator calculates projected stop and target levels using ATR, allowing traders to quickly visualize volatility-adjusted risk zones.
Inputs:
BB Length:
Controls the Bollinger Band lookback period.
BB Multiplier:
Controls the width of the Bollinger Bands.
KC ATR Length:
Controls the ATR length used for the Keltner Channel calculation.
KC Multiplier:
Controls the width of the Keltner Channels.
Momentum Length:
Controls the lookback period used to estimate squeeze release direction.
Short MA Length:
Controls the fast moving average used for crossover signals.
Long MA Length:
Controls the slow moving average used for crossover signals.
RSI Length:
Controls the RSI filter used to avoid extreme overbought or oversold entries.
ATR Length for SL/Target:
Controls the ATR calculation used for stop and target projections.
Target Multiplier:
Defines how far the projected target is placed from the signal price using ATR.
Stop Loss Multiplier:
Defines how far the projected stop is placed from the signal price using ATR.
Indicator
