Indicator

ON sqrtRange -> RTH Open LevelsOvernight sqrtRange → RTH Open Levels
This indicator captures the overnight session range (6 PM – 9:30 AM ET), takes the square root of that range, multiplies it by a user-defined factor, and snaps the result to the nearest tick to produce a dynamic unit (U). Starting from the RTH open at 9:30 AM, it plots up to 8 levels above and below, creating a structured price map for the entire trading day.
Features:
-Auto-calculated unit size from overnight range math
-Up to 8 levels each side with color-coded band fills and midpoints
-ONH / ONL lines with breach markers
-Day type classifier at open (Trend Up / Trend Down / Two-sided)
-Gap detection above ONH or below ONL at the open
-Live info table showing range, sqrtR, unit size, nearest levels, and tick distances
-Alert conditions for every level cross, ONH/ONL breach, and gap opens
-All levels drawn with line objects — zero plot budget wasted
Best used on: ES, NQ futures, but not limited to, individual names may need to tweak the settings for individual names to avoid big or small ranges, which is what the multiplier setting is for(I typically only work with 1,2,4,8 on the multiplier)
For ES, 2x multiplier is ideal and 4x on NQ and dow
individual names vary but typically 1x-2x on the multiplier Indicator

Indicator

Alpha-Pro**Alpha — Pro**
Alpha is a market structure and order flow control indicator designed to identify institutional price behavior across intraday sessions. Rather than measuring volatility as an end goal, it uses statistical dispersion derived from daily price geometry as a calibration engine — dynamically scaling every internal parameter to the current market regime so that signals remain structurally consistent regardless of the instrument's absolute price level or session conditions.
At its core, Alpha tracks the relationship between where price opens relative to where it closes versus where it reaches during a session, using that geometry to define what constitutes a real displacement versus noise. From that foundation it derives a self-adjusting moving average whose length, phase compensation, and smoothing speed all change bar by bar in response to the current structural regime — not a fixed period, not a user-tuned number.
Signal detection is organized into distinct behavioral categories: engulfing structures that represent genuine directional commitment, pinbars that signal liquidity sweeps with follow-through potential, gap patterns that identify unfilled institutional orders with directional context relative to the adaptive average, fast momentum sequences for high-conviction continuation entries, and liquidity absorption candles that mark exhaustion reversals. Each category has independent structural filters — session timing windows, body-to-wick ratios, candle sequence requirements — that must be simultaneously satisfied before a signal is emitted.
The statistical price zones — D+, D−, and the J-bands — project daily open levels forward using the same dispersion parameters, providing reference areas where price is most likely to encounter structural resistance or support based on the historical distribution of intraday ranges for that instrument.
The indicator does not repaint. All signal conditions are evaluated on confirmed bars. The adaptive average propagates causally with no lookahead. Zone levels are anchored to the session open and extend in real time through the active window. Indicator

ZigZag Elliott Wave Strategy (Demo)1. Strategy Objective
Objective:
Capture the Wave 1 → Wave 2 correction
Enter Wave 3 (strongest wave) after Wave 2 ends
Take profit at the Wave 3 target
Add more in Wave 4
Manage the position towards Wave 5
2. Visuals on the Chart
Green dots → Wave 1 peak
Red dots → Wave 1 trough
Orange line → Wave 3 target
Blue/purple → Fibonacci levels
Background:
Green → Wave 2 area
Orange → Wave 4 area
3.Strengths and Weaknesses of the Strategy
✅ Strong:
Trend-catching focused
Logical entry with Fibonacci
High potential due to focus on Wave 3
❌ Weak:
May cause zig-zag repainting (late signal)
Elliott waves don't always form clearly
May result in losses on fake retracements
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance.
Strategy

Indicator

Gold PCA Forecast [2026-03-20] v2.6📈 Gold PCA Forecast — User Manual
The "Fair Value" Leading Indicator
The Gold PCA Forecast is a sophisticated predictive tool that utilizes Principal Component Analysis (PCA) to determine the structural "Fair Value" of Gold based on its 8 primary inter-market drivers. Unlike traditional indicators that lag behind the price, this script is designed to lead by ignoring Gold’s own price history and looking only at the "Macro Engine" driving the market.
🧭 Intended Timeframes
This indicator is mathematically calibrated for High-Timeframe Structural Analysis. It includes a built-in Timeframe Guard that automatically manages visibility:
Supported: Daily (D), Weekly (W), and Monthly (M).
Unsupported: All intraday timeframes (1h, 15m, 1m, etc.).
Why? PCA Z-Scores are calculated based on daily/weekly volatility. Using this model on a 5-minute chart would produce mathematically "noisy" and incorrect targets.
🤝 The Interplay: Using the Forecast & Monitor Together
For the best results, this indicator should be used in tandem with the Gold PCA Component Monitor (placed in the bottom pane).
The Forecast (Blue Line): Tells you WHERE the price should be heading based on the Macro Engine.
The Monitor (Sub-Pane Lines): Tells you WHY the forecast is moving (Red = Yields, Green = Metals, Orange = Flight/Inflation).
The Golden Signal (Divergence): When the Actual Gold Price (Black) moves in one direction while the PCA Forecast (Blue) moves in the opposite direction, a Mean Reversion is highly likely. The price will eventually "snap" back toward the Blue line.
🛠 Maintenance: When to Update Coefficients
This script uses Static Coefficients (weights) derived from a batch PCA process. To maintain institutional-grade accuracy, it is recommended to update the source code with new coefficients:
Standard Schedule: Once every 30 days (Monthly).
Regime Shifts: After a major geopolitical or central bank policy shift (e.g., a sudden pivot in interest rate direction).
Date-Locking: Version 2.6 uses a Regime Date-Lock. When you update the code, the historical lines are preserved, allowing you to see the "Logic Evolution" of your trading system without rewriting history.
⚠️ Limitations & Trading Risks
No mathematical model can account for every variable. Users must be aware of the following:
Black Swan Events: Sudden, unforeseen events (e.g., flash crashes or unexpected war declarations) may cause the price to deviate wildly from the PCA Fair Value until the macro data catches up.
Correlation Breakdown: This model assumes historical relationships between Gold, Yields, and the Dollar remain consistent. If these correlations "flip" (which happens rarely), the model will require a total re-calibration.
Not a Crystal Ball: The 5-day offset is a projection of current macro momentum, not a guarantee of future price. Always use stop-losses and standard risk management.
⚙️ How to Read the Settings
In the Settings -> Inputs tab, you will find a read-only Information Group:
Model Version: v2.6 (Compiler Optimized).
Active Regime Start: The date the current math was last computed.
Input Features: A reminder of the 8 variables being tracked (XAG, XPD, BTC, DXY, CPI, US10Y, US02Y, CN02Y).
Quick Setup
Add Gold PCA Forecast to your main XAUUSD chart.
Add Gold PCA Component Monitor as a separate indicator below.
Look for the Blue Line to lead the way into the "future" space (offset=5). Indicator

Gold PCA Component Monitor [2026-03-20] v2.4# 🏆 Gold PCA Component Monitor
### **The Macro "Engine" Behind the Gold Price**
Most indicators are "price-followers"—they tell you what gold did *after* it happened. The **Gold PCA Component Monitor** is a "leading-edge" tool that ignores the gold price and looks exclusively at the **inter-market drivers** that move the metal.
By using **Principal Component Analysis (PCA)**, this indicator compresses 8 macro variables into 3 distinct "Macro Gears" to show you why gold is moving and where the structural "Fair Value" is heading.
---
## 🛠 What This Indicator Tracks
This script fetches and processes real-time data from:
* **Industrial Metals:** Silver (XAGUSD) & Palladium (XPDUSD)
* **Digital Assets:** Bitcoin (BTCUSD)
* **Fiat & Inflation:** US Dollar Index (DXY) & US CPI
* **Global Yields:** US 10-Year, US 02-Year, and China 02-Year Yields
---
## 📉 The Three Principal Components (The Lines)
The monitor displays three oscillating lines in a separate pane. When these lines move, they are "pulling" the gold price with them.
### **🔴 PC1: Monetary & Yield Pressure (Red)**
* **Focus:** The US Dollar and Interest Rate spreads.
* **Significance:** This is the most dominant factor. When the Red line spikes, gold is under heavy pressure from a rising Dollar or surging Yields. If Gold is rising while this line is spiking, a sharp correction is likely imminent.
### **🟢 PC2: Industrial & Risk Momentum (Green)**
* **Focus:** Silver, Palladium, and Bitcoin.
* **Significance:** Tracks the "Commodity Supercycle" and "Risk-On" sentiment. If this line is trending up, it indicates that gold's move is supported by broader industrial and speculative demand.
### **🟠 PC3: Capital Flight & Inflation (Orange)**
* **Focus:** US CPI and Chinese 02-Year Yields.
* **Significance:** Tracks geopolitical fear and inflationary "tail risks." This line often leads during periods of global instability or capital flight from Asia.
---
## 🔒 Unique Feature: Date-Lock Architecture
One of the most advanced features of this script is the **Regime Date-Lock**.
> **Why it matters:** Most indicators "rewrite" their history when you change settings. Our script preserves the historical integrity of your signals.
When we update the macro coefficients (weights) for a new market regime, the **old history stays frozen** using the logic of that time. This allows you to look back at 2024 or 2025 and see exactly what the model was "thinking" back then, without the hindsight bias of 2026 data.
---
## 📖 How to Trade with PCA Divergences
The most powerful signal is a **Divergence** between the Gold Price and the PCA Monitor.
1. **Bullish Divergence:** Gold price is dropping, but the PCA lines (specifically Red or Orange) are turning up. This suggests the sell-off is not supported by macro-fundamentals. **(Watch for a snap-back rally).**
2. **Bearish Divergence:** Gold price is hitting new highs, but the PCA Monitor is trending down. This suggests the "Macro Engine" has stalled. **(Watch for a top).**
3. **Regime Confirmation:** When all three components (Red, Green, Orange) trend together, it signals a high-conviction structural trend.
---
## ⚙️ Information & Transparency
Transparency is key to institutional-grade tools. In the **Indicator Settings -> Inputs** tab, you will find:
* **Model Version:** Current logic version (v2.4).
* **Last Computation Date:** The specific date the mathematical weights were last refreshed.
* **Coefficient Display:** View the exact weights (loadings) assigned to assets like Silver or Bitcoin within each component.
---
### **Technical Specifications**
* **Platform:** Pine Script v5
* **Chart Type:** Overlay = False (Bottom Pane)
* **Update Frequency:** Real-time (Static Weights Updated Monthly)
* **NA Protection:** Built-in `nz()` and `gaps_off` logic to prevent line-breaks during weekend or holiday gaps. Indicator

Indicator

Strategy

Fibonacci Imbalance Zones [JOAT]Fibonacci Imbalance Zones
Introduction
Fibonacci Imbalance Zones is an open-source overlay indicator that merges automatic Fibonacci retracement with Fair Value Gap (FVG) detection and order block identification to find high-probability confluence zones where institutional concepts overlap. When a Fibonacci level aligns with an unmitigated FVG or an active order block, the indicator highlights that zone as a confluence point and optionally generates entry signals. It bridges the gap between classical Fibonacci analysis and modern Smart Money Concepts.
Built with Pine Script v6, the indicator uses custom types for Fibonacci levels, FVG zones, confluence points, swing points, order blocks, and institutional levels.
Why This Indicator Exists
Fibonacci retracement and FVG analysis are both widely used, but they are almost always applied as separate tools. Traders manually eyeball whether a Fibonacci level happens to overlap with an FVG, which is subjective and error-prone. This indicator automates that process by:
Auto-Fibonacci calculation: Automatically identifies the most recent significant swing high and swing low using pivot detection, then draws Fibonacci levels between them — no manual drawing required
FVG lifecycle tracking: Detects bullish and bearish FVGs, filters them by minimum size (ATR-based), tracks mitigation, and classifies them as premium or discount relative to fair value
Confluence detection: Programmatically checks whether any active Fibonacci level falls within a configurable ATR tolerance of any unmitigated FVG or order block, and calculates a confluence strength score
Entry signal generation: When price enters an FVG zone that overlaps with a key Fibonacci level (0.500-0.786 range), the indicator generates a directional entry signal
Core Components Explained
1. Automatic Fibonacci Levels
The indicator uses pivot detection to find the most significant recent swing high and swing low. The pivot strength parameter (default 5) controls how many bars on each side must be lower/higher for a point to qualify as a swing. Once swings are identified, Fibonacci levels are calculated:
calcFibLevel(float swingH, float swingL, float ratio, int direction) =>
float level = na
if direction > 0
level := swingL + (swingH - swingL) * ratio
else
level := swingH - (swingH - swingL) * ratio
level
Standard levels include 0.236, 0.382, 0.500, 0.618, and 0.786, each toggleable independently. Extensions at 1.618 and 2.272 are also available. When harmonic ratios are enabled, additional levels at 0.127, 0.414, 0.707, and 0.886 are drawn, covering the full spectrum of Fibonacci and harmonic trading levels.
Each level is drawn as a dashed line extending from the swing range to the right of the chart, with a label showing the ratio. Harmonic ratios receive a glow effect (thicker line, lower transparency) to visually distinguish them from standard levels.
2. FVG Detection with Premium/Discount Classification
Fair Value Gaps are detected using the standard three-bar pattern: a bullish FVG forms when the current bar's low is above the high from two bars ago. The indicator filters FVGs by a minimum size threshold (default 0.3x ATR) to avoid plotting insignificant gaps.
Each FVG is classified as premium or discount relative to the fair value of the middle candle:
Premium FVG: The gap's midpoint is above fair value — sellers may have an edge
Discount FVG: The gap's midpoint is below fair value — buyers may have an edge
FVGs are drawn as colored boxes. Premium FVGs use a gold color, discount FVGs use cyan, and neutral FVGs use the standard bull/bear colors. When mitigation tracking is enabled, the indicator monitors each FVG and updates its visual style (dotted border, faded color) when price fills the gap's midpoint.
Chart showing auto-drawn Fibonacci levels between swing high and swing low, with FVG boxes classified as premium (gold) and discount (cyan), and confluence diamonds where Fibonacci levels overlap with FVGs
3. Order Block Detection
The indicator identifies order blocks as the last opposing candle before a significant swing point, filtered by volume. A bullish order block is the last bearish candle before a swing high, but only if the volume on that candle exceeds 1.5x the 20-period volume average. This volume filter ensures that only institutionally significant order blocks are tracked.
Order blocks are drawn as semi-transparent boxes and monitored for sweeps. When price breaks through an order block, it is marked as swept and its visual is updated to a neutral, dotted style.
4. Confluence Detection Engine
The confluence engine is the core innovation of this indicator. It iterates through all active Fibonacci levels and checks each one against all unmitigated FVGs and active order blocks:
tolerance = atrVal * confluenceTol
for fib in fibLevels
if fib.isActive
for fvg in fvgZones
if not fvg.isMitigated
if math.abs(fib.price - fvg.mid) < tolerance
confStrength += 1
Each confluence point receives a strength score based on how many factors align:
Fibonacci level + FVG = base confluence
Add +1 if the Fibonacci level is a harmonic ratio (0.382, 0.618, etc.)
Add +1 if the FVG is in the premium or discount zone
Add +1 if the FVG has above-average volume
Add +1 if an order block also overlaps
Confluence points are drawn as labeled boxes showing which factors are present (e.g., "Harmonic+Discount+Volume"). A minimum confluence strength threshold (default 2) filters out weak confluences.
5. Entry Signal Generation
When entry signals are enabled, the indicator generates a bullish entry when price enters a bullish FVG zone that overlaps with a Fibonacci level in the 0.500-0.786 range (the "golden pocket") and the current candle closes bullish. The bearish entry is the inverse. These signals are plotted as circles below (bullish) or above (bearish) the price bars.
Visual Elements
Fibonacci Lines: Dashed lines at each active ratio with labels, harmonic ratios get glow effect
FVG Boxes: Color-coded by direction and premium/discount status, updated on mitigation
Order Block Boxes: Semi-transparent boxes with sweep tracking
Confluence Boxes: Highlighted zones where Fibonacci and FVG/OB overlap, with strength labels
Entry Signals: Circle markers for bullish/bearish entries at confluence zones
Structure Line: Line connecting the swing high and swing low
Background Coloring: Subtle trend-direction background tint
Dashboard: Displays current Fibonacci range, trend direction, active FVG count, confluence count, and entry status
Input Parameters
Fibonacci Settings:
Swing Lookback (default 50) and Pivot Strength (default 5)
Toggle each standard level (0.236, 0.382, 0.500, 0.618, 0.786) and extensions
FVG Detection:
FVG Max Age (default 50 bars)
Track Mitigation toggle
Min FVG Size (default 0.3 ATR)
Confluence Settings:
Confluence Tolerance (default 0.3 ATR)
Show Entry Signals and Confluence Strength
Min Confluence Strength (default 2)
Advanced Fibonacci:
Show Harmonic Ratios (0.127, 0.414, 0.707, 0.886)
Show Institutional Levels (volume-based levels near swings)
Show Smart Money Concepts and Order Blocks
Show Premium/Discount classification
Visual Settings:
Color Scheme: Quantum, Classic, Professional, or Minimal
Show Structure Lines, Dashboard, Glow Effects, Animation
Max Visual Elements (default 30)
How to Use This Indicator
Step 1: Let the indicator automatically identify the current swing range and draw Fibonacci levels. The structure line shows the swing high to swing low connection.
Step 2: Identify the trend direction from the structure line. In an uptrend (swing low formed after swing high), look for bullish setups at discount Fibonacci levels (0.618, 0.786). In a downtrend, look for bearish setups at premium levels.
Step 3: Watch for confluence diamonds. When a Fibonacci level overlaps with an unmitigated FVG, the confluence box appears. Higher strength confluences (3+) are more significant.
Step 4: If entry signals are enabled, wait for price to enter the confluence zone and print a confirming candle (bullish close for longs, bearish close for shorts).
Step 5: Use order blocks within the confluence zone as precise entry levels. The order block's range provides a natural stop-loss area (below the OB for longs, above for shorts).
Close-up of a high-strength confluence zone showing a 0.618 Fibonacci level overlapping with a discount FVG and a bullish order block, with an entry signal circle below the bar
Indicator Limitations
Automatic Fibonacci levels depend on pivot detection, which has an inherent delay. The swing points update only after the pivot is confirmed.
Fibonacci levels are drawn between the two most recent significant swings. In choppy markets with many equal swings, the selected range may not be the most relevant one.
FVG detection uses the standard three-bar pattern, which can produce many gaps on volatile instruments. Use the minimum size filter to manage this.
Confluence detection is proximity-based. A Fibonacci level near an FVG does not guarantee a price reaction — it identifies a zone of potential interest.
Entry signals are mechanical and do not account for broader market context. They should be used as alerts for further analysis, not as standalone trade triggers.
The indicator draws many visual elements. On busy charts, consider using the Max Visual Elements setting and disabling less critical features.
Originality Statement
This indicator is original in its automated confluence detection between Fibonacci analysis and Smart Money Concepts. While Fibonacci tools and FVG indicators exist separately, this indicator is justified because:
It programmatically detects overlap between Fibonacci levels and FVG zones, eliminating subjective visual assessment
The confluence strength scoring system quantifies how many institutional factors align at each zone
Premium/discount FVG classification adds a fair-value context layer to standard FVG detection
Volume-filtered order block detection integrated with Fibonacci levels creates a three-way confluence system
Harmonic ratio support extends beyond standard Fibonacci to cover the full spectrum of institutional trading levels
The entry signal system combines Fibonacci position, FVG presence, and candle confirmation into a structured trigger
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Fibonacci levels and FVG analysis are interpretive tools, not predictive guarantees. Always use proper risk management. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Strategy

Indicator

Indicator

Riemannian Dreamer Manifold Engine (RDME)Riemannian Dreamer Manifold Engine (RDME)
Advanced Geometric and Predictive Modeling System
Where Differential Geometry and Adaptive Models Analyze Market Dynamics
🎓 THEORETICAL FOUNDATION
The Riemannian Dreamer Manifold Engine (RDME) represents a paradigm shift in market analysis, modeling the market as a living, curved geometric space. It is built upon four distinct but interconnected pillars: Riemannian geometry for market state, an adaptive wave system for structural analysis, a siege engine for level interaction, and a predictive model that simulates future possibilities.
📐 PILLAR 1: RIEMANNIAN METRIC & RICCI CURVATURE
Market as a Manifold:
RDME conceptualizes the market not as a flat plane, but as a dynamic 3-dimensional Riemannian manifold. Each point in this space is defined by three coordinates: Pressure , Health , and Liquidity . Price travels along geodesics (the straightest possible paths) on this evolving surface. The curvature of this manifold reveals the market's underlying state and areas of stress or expansion.
Ricci Curvature Calculation:
The engine estimates the Ricci scalar curvature (R) to classify the market's local geometry, providing a mathematical basis for regime detection:
R ≈ ∂²(vol_of_vol) / ∂t² − E
Positive Curvature (R > 1.2): Spherical geometry. Indicates market contraction, stress, and high-probability reversal zones.
Negative Curvature (R < -1.2): Hyperbolic geometry. Signifies market expansion, confidence, and sustainable trend continuation.
Zero Curvature (R ≈ 0): Euclidean (flat) geometry. Represents a random walk or low-conviction environment.
🌊 PILLAR 2: ADAPTIVE WAVE TOKEN SYSTEM
Hurst Exponent Integration:
The system employs Rescaled Range (R/S) analysis to calculate the Hurst exponent (H), which dynamically modulates the pivot length for swing detection. This makes the wave analysis self-adapting to the market's "personality."
H = log(R/S) / log(n)
H > 0.5 (Persistent): The market is trending. The pivot length contracts to identify emerging waves quickly.
H < 0.5 (Anti-persistent): The market is mean-reverting. The pivot length expands to filter out noise and focus on significant turns.
Wave Token Generation:
Each confirmed swing generates a ' Wave Token ,' a rich data structure containing over 18 features. This includes price/time data plus a deep analysis of the underlying order flow, such as delta efficiency , absorption rate , POC shift , value area acceptance , conviction , exhaustion , and trap risk . This tokenized data forms the basis for the Elliott Wave grammar analysis.
🏰 PILLAR 3: SIEGE ENGINE — STRUCTURAL GEOMETRY
Dynamic Level Analysis:
The Siege Engine identifies critical structural levels by projecting dynamic trendlines from consecutive swing points. It then scans for price interactions (sieges) within an ATR-scaled tolerance band.
Siege Metrics Calculation:
For each siege zone, the engine computes:
Hit Count & Energy Decay: Measures how many times a level has been tested and if its strength is diminishing.
Delta Alignment: Confirms if order flow supports or rejects the level.
Break/Fail Probability: Calculates the likelihood of a level breaking or holding based on a combination of decay, pressure, and delta.
Third-Push Detection: Identifies classical exhaustion patterns at key structures.
🤖 PILLAR 4: DREAMER ADAPTIVE WORLD MODEL
Predictive World Model:
The Dreamer is a linear world model that learns the market's dynamics. It predicts the next bar's manifold coordinates from the current state.
ŝ(t+1) = W · s(t) + b
The error between its prediction and reality drives learning, novelty detection (regime change), and plasticity (learning rate).
Imagination and Policy Optimization:
Imagination Rollouts: The Dreamer simulates thousands of potential future paths to evaluate the value of different actions.
Group Relative Policy Optimization (GRPO): This is a policy optimization system that evaluates three action modes (Conservative, Neutral, Aggressive) by tracking the realized performance of its past trades. It learns which mode is most profitable in the current market and adjusts the signal threshold accordingly.
🔧 COMPREHENSIVE INPUT SYSTEM
Core Manifold Group
History Buffer (500-3000, Default: 1400): The number of bars of market data retained. Larger values provide deeper context for wave analysis at the cost of more memory.
Max Wave Tokens (15-120, Default: 45): The maximum number of completed swings stored. The Elliott Wave mapper uses the last 5 tokens.
Health Lookback (6-40, Default: 14): The window for calculating directional efficiency, a core component of the manifold.
Liquidity Windows (Fast: 3-20, Slow: 10-80): Defines the lookback periods for short-term and long-term order flow (delta) accumulation.
Z-Score Lookback (20-200, Default: 60): The normalization period for all internal features, ensuring the system is self-adapting across different assets.
Hurst Period (30-200, Default: 80): The lookback for the Hurst exponent. A key parameter for adapting the swing detection to market conditions.
Swing Pivots (Base: 2-20, Min: 2-20, Max: 3-40): Controls the base sensitivity and allowable range of the Hurst-modulated pivot detector.
Footprint Group
Ticks Per Row (Min: 1, Default: 100): Sets the tick resolution for footprint data. If footprint data is unavailable, the system falls back to an OHLCV proxy.
Value Area % (1-99, Default: 70): Defines the percentage of volume to be included in the Value Area calculation.
Dreamer Predictive Engine Group
Base Model Threshold (Default: 2.1): The master sensitivity control. This is the minimum triadic verdict score required to register a trade, before GRPO adjustments.
World Model LR (Default: 0.009): The base learning rate for the Dreamer's world model. This is internally scaled by plasticity, accelerating learning in novel market conditions.
Imagination Depth (3-14, Default: 6): How many bars into the future the Dreamer simulates during its rollouts.
GRPO Eval Horizon (5-50, Default: 16): The number of bars after which a registered trade job is evaluated for its profit/loss, feeding the policy optimizer.
GRPO Update Frequency (1-50, Default: 9): How often the GRPO policy updates based on newly evaluated trade jobs.
Max Active Jobs (1-30, Default: 12): The maximum number of concurrent trade jobs the predictive engine can track.
🎨 ADVANCED VISUAL SYSTEM
Riemannian Manifold Field Visualization
The core of the visual system, this multi-layered field represents the local geometry of the market. It expands in hyperbolic (trending) regimes and contracts in spherical (reversal) regimes, creating dynamic zones of potential support and resistance that are derived from the market's mathematical state.
Wave Grammar & Elliott Mapper
The Adaptive Wave Token system plots lines for each swing, with thickness indicating the wave's degree. When a high-probability 5-wave impulse or 3-wave correction is detected, it is automatically labeled ('1'-'5' or 'A'-'C'), providing clear structural context. Labels include critical data like ' Wave 3 Authority ' and ' Wave 5 Terminal Risk ' percentages.
Siege Corridors
When the Siege Engine identifies a structural test in progress, it projects a corridor onto the chart. This visualizes the dynamic trendline and its ATR-based tolerance zone, highlighting areas of intense price negotiation.
Dreamer Model Projections
The Dreamer visualizes its highest-conviction future path as a projection arrow, pointing from the current price to its expected location after the 'Imagination Depth' period. A cone of uncertainty visualizes the model's confidence, widening as confidence decreases.
Geodesics and Parallel Transport
Geodesic Paths: Dotted lines represent the 'straightest possible path' on the curved manifold, acting as a dynamic, geometrically-derived moving average.
Parallel Transport Particles: Flowing particles around price provide a visual representation of market energy and directional intent on the manifold.
Curvature-Driven Background
The chart background subtly changes color to reflect the dominant geometric regime, providing at-a-glance context:
Green (Spherical): Contracting, reversal-prone market.
Red (Hyperbolic): Expanding, trending market.
Blue (Corrective): A valid corrective wave structure is active.
📊 INSTITUTIONAL-GRADE DASHBOARD
Manifold Field Section
Primary Structure: Displays the current highest-scoring wave pattern (BULL IMPULSE, BEAR IMPULSE, CORRECTION).
Score: The confidence score (0-100) of the primary structure.
Terminal Risk: For impulse waves, shows the calculated risk of exhaustion in the fifth wave.
Ricci & Regime: Displays the real-time Ricci curvature value and the resulting geometric regime (HYPERBOLIC, SPHERICAL, FLAT).
Triadic Verdict: The combined score from the Pressure, Health, and Liquidity manifold dimensions.
Dreamer Model Section
WM Accuracy: The current accuracy of the Dreamer's world model in predicting market dynamics.
Plasticity: How quickly the model is learning; high plasticity indicates a regime change.
Policy C/N/A: Shows the GRPO-learned probabilities for Conservative, Neutral, and Aggressive action modes.
Best Action: The action mode the Dreamer currently prefers based on its simulations.
Threshold: The current, GRPO-adjusted threshold the triadic verdict must exceed for a signal.
Token State & Footprint Section
Last Token: Key metrics from the most recently completed wave, including direction and magnitude.
ΔEff (Delta Efficiency): Shows how effective the order flow was in moving price during the last wave.
Absorption & Exhaustion: Real-time display of absorption and exhaustion percentages within the last wave.
Siege B/F: Displays the calculated Break and Fail probabilities for the structure tested in the last wave.
Footprint Status: Confirms if the system is using live footprint data or the OHLCV proxy, and displays the current bar's delta.
🎯 SIGNAL GENERATION LOGIC
Confluence of Pillars
RDME signals are not based on a single condition but on a confluence across all four pillars , ensuring a holistic view of the market:
Manifold Geometry: The underlying Ricci curvature must support the trade's direction (e.g., hyperbolic expansion for a trend-following signal).
Wave Structure: The Elliott Wave mapper must identify a high-probability impulse or corrective structure that provides context for the trade.
Siege Engine: The interaction with key structural levels must confirm the trade's thesis (e.g., a breakout with high break probability).
Dreamer's Verdict: The world model must project a favorable future value (positive expected FV) for taking the trade, and the triadic verdict must exceed the GRPO-adjusted threshold.
Signal Philosophy
The system embodies a philosophy of patience and precision. It is designed to filter out low-conviction noise and highlight only those moments where the mathematical, structural, and predictive models of the market are in deep alignment.
🚀 ADVANCED TRADING STRATEGIES
The Geometric Convergence Method
This strategy focuses on entering trades when geometric and structural signals align. Wait for price to approach a key level identified by the Siege Engine while the manifold is in a favorable state (e.g., spherical curvature near a support level for a long). The entry is confirmed when a high-scoring Wave Token and a supportive Dreamer projection align.
The Regime Transition Strategy
This involves trading the shift between geometric states. An entry can be planned when the Ricci curvature crosses its threshold, indicating a shift from a flat/contracting market to an expanding (hyperbolic) one. This strategy aims to capture the beginning of new, powerful trends.
The Wave Grammar Momentum Strategy
Focus on high-probability impulse waves. After the system identifies a Wave 1 and a Wave 2, a trader can look to enter during Wave 3, which is often the strongest. The entry should be validated by high 'Wave 3 Authority' metrics on the dashboard, indicating strong underlying order flow.
The Siege Engine Break/Fade Strategy
Utilize the Siege Engine's break/fail probabilities. For a breakout trade, look for a high break probability (>70%) coupled with strong delta alignment. For a fade trade, look for a high fail probability at a key level, often confirmed by a 'third-push' exhaustion flag and high absorption in the Wave Token data.
⚖️ RESPONSIBLE USAGE AND LIMITATIONS
Understanding Model Boundaries
Topology Changes: Markets are complex systems. Sudden, un-modeled events can cause the manifold's geometry to "tear," leading to unpredictable behavior.
No Guarantees: This is a sophisticated decision-support tool, not a crystal ball. It provides a probabilistic edge, not certainty.
Data Dependency: The highest quality analysis requires footprint data. While the OHLCV proxy is robust, performance may vary.
Risk Management is Paramount
The mathematical sophistication of RDME is not a substitute for disciplined risk management. Always use proper position sizing, stop-loss orders, and trade within a well-defined personal trading plan.
🔮 CONCLUSION
The Riemannian Dreamer Manifold Engine is more than an indicator; it is a new lens through which to view the market. It moves beyond traditional price-and-time analysis to interpret the market as a dynamic, geometric object with learnable dynamics. By unifying differential geometry, adaptive wave theory, structural analysis, and a sophisticated adaptive world model,
RDME provides a comprehensive and deeply contextual view of market behavior.
It translates the abstract language of advanced mathematics into intuitive visualizations and high-probability trading signals, empowering traders to navigate the complexities of modern markets with unprecedented insight.
Trade with geometric context. Trade with computational foresight. Trade with the RDME.
— Dskyz Indicator

Session Confluence Tracker [JOAT]Session Confluence Tracker
Introduction
The Session Confluence Tracker is an open-source overlay indicator that monitors the Asian, London, and New York trading sessions simultaneously, tracking each session's high and low, counting consecutive bullish or bearish sessions (streaks), detecting overstretch conditions, and identifying confluence zones where multiple sessions share overlapping price levels. It gives traders a structured view of how liquidity develops across the global trading day and where institutional interest is concentrating.
Built with Pine Script v6, the indicator uses custom types for session data, streak tracking, confluence zones, session momentum, session gaps, and session pivots.
Why This Indicator Exists
Session-based analysis is a cornerstone of institutional trading. Different sessions have distinct characteristics — the Asian session often establishes a range, London tends to break that range, and New York frequently continues or reverses the London move. However, most session indicators simply draw boxes around session times. This indicator goes further by:
Streak analysis: Counts how many consecutive sessions have been bullish or bearish, revealing directional persistence that simple session boxes cannot show
Overstretch detection: Compares the current session's range to its historical average. When a session extends significantly beyond its norm (configurable ratio, default 1.5x), it flags a potential exhaustion point
Confluence detection: Identifies price levels where two or more sessions share overlapping highs or lows within a configurable tolerance, highlighting zones of multi-session institutional agreement
Session momentum: Tracks the directional strength within each session, not just whether it closed up or down
Gap detection: Monitors gaps between session closes and opens, which often act as magnets for price
Core Components Explained
1. Multi-Session Tracking
The indicator tracks three configurable sessions with default times aligned to major global markets:
Asian Session: Default 1800-0300 (EST) — typically the lowest volatility, range-setting session
London Session: Default 0300-1130 (EST) — the highest volume session, often sets the daily direction
New York Session: Default 0800-1600 (EST) — overlaps with London for the most liquid period of the day
Each session is tracked independently with its own high, low, open, close, and volume data. Session boundaries are drawn as colored boxes on the chart, and session highs/lows extend as horizontal lines until the next session begins.
2. Streak Analysis
The streak engine counts consecutive bullish (close > open) or bearish (close < open) sessions for each market. This reveals directional persistence that is invisible on a standard chart:
if sessionClose > sessionOpen
streakData.bullCount += 1
streakData.bearCount := 0
else
streakData.bearCount += 1
streakData.bullCount := 0
When a streak reaches the minimum threshold (default 3 consecutive sessions), it is highlighted on the chart. Long streaks in a single direction often precede reversals, while the start of a new streak can confirm a trend change.
3. Overstretch Detection
Overstretch occurs when a session's range significantly exceeds its historical average. The indicator calculates the average session range over a lookback period and compares the current session's range against it:
Overstretch ratio >= 1.5x: The session has extended well beyond its norm — potential exhaustion
Overstretch ratio >= 2.0x: Extreme extension — high probability of mean reversion
Overstretch signals are plotted as markers above or below the session, giving traders a visual warning that the session may be running out of steam.
Chart showing three session boxes (Asian in purple, London in blue, New York in green) with streak counts displayed, overstretch markers on an extended London session, and confluence zones where session levels overlap
4. Confluence Zone Detection
When the high or low of one session falls within a configurable ATR-based tolerance of another session's high or low, the indicator identifies a confluence zone. These zones represent price levels where multiple sessions have found significant support or resistance:
tolerance = atrVal * confluenceTolerance
if math.abs(session1High - session2High) < tolerance
confluenceStrength += 1
Confluence zones are drawn as highlighted horizontal bands on the chart. The strength of the confluence (how many sessions agree) determines the visual intensity. A zone where all three sessions share a similar level is considered the strongest form of multi-session agreement.
5. Session Momentum and Gaps
Session momentum measures the directional conviction within each session using the relationship between the close and the session's range. A session that closes near its high has strong bullish momentum; one that closes near its low has strong bearish momentum.
Session gaps — the difference between one session's close and the next session's open — are tracked and visualized. These gaps often act as magnets, with price tending to fill them during the subsequent session.
Visual Elements
Session Boxes: Colored boxes marking each session's time range and price range
Session High/Low Lines: Horizontal lines extending from each session's extremes
Streak Labels: Counts displayed at session boundaries showing consecutive bullish/bearish sessions
Overstretch Markers: Warning signals when a session extends beyond its historical norm
Confluence Zones: Highlighted bands where multiple sessions share price levels
Session Gaps: Visual markers showing gaps between session close and next session open
Background Coloring: Subtle session-based background tinting
Dashboard: Real-time display of each session's status, streak counts, overstretch ratios, and confluence strength
Input Parameters
Session Settings:
Toggle each session (Asian, London, New York) independently
Custom session times for each market
Custom colors for each session
Streak Detection:
Min Streak Count (default 3): Minimum consecutive sessions to highlight
Overstretch Ratio (default 1.5): Threshold for overstretch detection
Confluence Detection:
Confluence Tolerance (ATR-based, default 0.5): How close session levels must be to count as confluent
Min Confluence Strength (default 2): Minimum number of agreeing sessions
Advanced Features:
Show Session Momentum, Volume Profile, Gaps, Pivots
Visual Settings:
Max Days Back (default 5): Limit historical session display for performance
Show Session Boxes, Dashboard, Glow Effects, Pulse Effects, Gradient Fill, Confluence Animation
Timezone selection
How to Use This Indicator
Step 1: At the start of your trading day, review the Asian session range. This range often defines the battlefield for London and New York. Note the Asian high and low as key levels.
Step 2: As London opens, watch for a break of the Asian range. A decisive break with volume often sets the daily direction. Check the streak count — if London has been bullish for 4+ consecutive sessions, be cautious of a reversal.
Step 3: Monitor overstretch conditions. If London extends 1.5x or more beyond its average range, the move may be exhausted. This is especially relevant if the overstretch occurs at a confluence zone.
Step 4: Look for confluence zones. A price level where the Asian high aligns with a previous London low is a zone of multi-session institutional interest. These levels often produce strong reactions.
Step 5: During New York, check for session gaps from the London close. Price frequently fills these gaps early in the New York session.
Step 6: Use the dashboard for a quick overview of all sessions, streaks, and confluence strength.
Dashboard view showing Asian, London, and New York session statistics including streak counts, overstretch ratios, momentum readings, and confluence strength score
Indicator Limitations
Session times are based on exchange time or a configurable timezone. Ensure your timezone setting matches your intended market hours.
Streak analysis requires sufficient historical data. On newly listed instruments or very high timeframes, streak counts may be limited.
Overstretch detection uses historical averages, which can be skewed by outlier sessions (e.g., major news events).
Confluence zones are based on proximity of session levels, not on the reason those levels formed. Not all confluences will produce reactions.
The indicator is most useful on intraday timeframes (1m to 1H) where session boundaries are meaningful. On daily or weekly charts, session tracking is less relevant.
Session overlap periods (London/New York) can produce complex price action that is harder to attribute to a single session.
Originality Statement
This indicator is original in its multi-session analytical framework. While session boxes and session high/low indicators exist, this indicator is justified because:
Streak analysis across multiple sessions provides a directional persistence metric not available in standard session tools
Overstretch detection compares current session range to historical norms, adding a statistical dimension to session analysis
Multi-session confluence detection identifies price levels where institutional interest from different global markets converges
Session momentum tracking quantifies the directional conviction within each session, going beyond simple bullish/bearish classification
Gap tracking between sessions highlights potential price magnets that standard session indicators ignore
The unified dashboard presents all three sessions' metrics simultaneously for rapid cross-session analysis
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Session analysis is a framework for understanding market structure across time zones, not a guarantee of future price movement. Always use proper risk management. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator

BSP Divergence StatsEvery candle tells two stories: what the price did, and what the volume pressure did. Most of the time they agree. When they disagree, that's the signal.
The indicator splits each candle into sub-candles (1m + 2m by default) and calculates two metrics per sub-candle:
Buying Pressure (BP) — how much of the move was driven by buyers, measured either as price distance (close - min(low, prev_close)) or as volume-weighted buy flow (volume × (close-low) / (high-low)).
Selling Pressure (SP) — the mirror: how much selling force was present this candle.
Both are smoothed with HMA(2) — fast enough to react intrabar, smooth enough to filter noise.
The 4 signals
🟣 Bull Divergence — price closed higher than previous bar, but BP fell. The upward move happened without buying support. This is a weak candle — buyers are exhausting. Historically tends to precede a pullback.
🟠 Bear Divergence — price closed lower, but SP fell. The selloff lost its fuel. Sellers are giving up. Historically tends to precede a bounce.
👁 Hidden Buy — candle is red (price fell) but the DV ratio shows buyers actually dominated the volume. Smart money was accumulating into the drop. Price direction was misleading.
👁 Hidden Sell — candle is green but sellers dominated volume. Distribution into strength. The move up was absorbed by smart selling.
How to read the table
The table has two sections that update every tick:
Current Candle shows what is happening right now inside the forming bar — the live buy/sell direction, the ratio of buying vs selling volume, whether BP and SP momentum are rising or falling, and which signal (if any) is active.
Next Candle Bias is a weighted score of all 6 factors converted to a probability. A reading of 72% UP means the current conditions have historically preceded an up candle 72% of the time in the last N bars. The score bar shows the raw strength, and the driver line tells you which factor is dominating the prediction.
The historical edge lines at the bottom (Bull Div hist: ↑38% ↓62%) are the most honest part of the indicator — they show the actual back-tested outcome for the exact signal currently active on this instrument and timeframe.
How to use it
Step 1 — Check the signal color. A purple or orange candle means pressure diverged from price. A faint green or red means hidden flow. No color means no signal — trade normally.
Step 2 — Check the table. Look at the Current Candle section. Is BP rising or falling? Is there a Hidden signal active? These tell you the quality of the current move.
Step 3 — Check Next Candle Bias. Only act on signals where the bias is above 60% and the historical edge confirms it. A 72% UP bias with H.Buy hist: ↑68% ↓32% is a meaningful edge. A 55% UP with LOW confidence is noise.
Step 4 — Read the label. Every colored candle gets a label showing the signal type and its historical next-bar statistics. This is your quick reference without opening the table.
Settings guide
SettingRecommendationSub TF 1 / TF 2Should be smaller than your chart TF. On 5m chart: 1m + 2m. On 15m: 3m + 5m. On 1H: 10m + 15mLookback100 bars is a good default. Lower = more responsive to recent regime. Higher = more statistically stablePressure ModeDelta Volume is more reliable on liquid instruments with real volume data. Pressure mode works on any instrumentLabel SizeUse tiny on busy charts, small or normal when you want to read the stats clearly
What it is not
This is a pressure and flow indicator, not a trend indicator. It does not tell you where price is going in the big picture — only whether the current candle's internal mechanics are consistent with its direction. Use it alongside a trend filter or support/resistance levels for best results. A Hidden Buy signal in a strong downtrend is a scalp opportunity, not a reversal trade. Indicator

Trade Levels - Entry, Trims & StopA clean, fully configurable trade planning overlay for scalpers, day traders, and swing traders on any instrument — Futures, Forex, Crypto, Equities, and Indices. Set your entry price, define your risk parameters, and instantly visualize every critical level on the chart before and during a trade.
🔑 Key Features
Entry Line — White reference line at your exact entry price, labeled with direction (Long/Short)
Stop Loss — Plots your maximum loss level at a defined distance from entry
Take Profit — Plots your full target with a live R:R ratio calculated automatically
3 Independent Trim Levels — Each trim can be placed on the Profit Side OR Loss Side of your entry, allowing you to plan early exits in either direction (e.g., trimming before max loss)
Zone Fills — Translucent color fills between Entry → Stop and Entry → Target for instant visual clarity
Info Table — A real-time summary table (top-right corner) showing all prices and distances at a glance
Full Alert Integration — alertcondition() support for all 5 levels: Stop, Take Profit, Trim 1, Trim 2, and Trim 3
⚙️ Settings Overview
Group What You Set
📍 Entry Settings Entry price, Long/Short direction, Points or Ticks mode
🔴 Stop Loss Points/Tick Distance from entry, line color
🟢 Take Profit Points/Tick Distance from entry, line color
✂️ Trim 1 / 2 / 3 Enable toggle, Profit or Loss side, Points/Tick distance, trim size %, color
🔔 Alerts Toggle alerts on/off per level
⚙️ Display Labels, R:R visibility, zone fills, table, line style, label size
📐 Points vs. Ticks
Switch the Unit Mode under Entry Settings between:
Points — Native price units (e.g., 10 = 10 full points on NQ)
Ticks — Minimum tick increments (e.g., on NQ: 1 point = 4 ticks, so 40 ticks = 10 points)
The indicator uses syminfo.mintick to auto-convert, so it works accurately on any symbol.
✂️ Loss-Side Trims Explained
Most indicators only allow trims in the profit direction. This tool lets you place a trim on the Loss Side of your entry — meaning you scale out of part of your position before reaching your full stop. This is a common risk management technique used by professional futures and forex traders to reduce average loss on losing trades.
To use it: enable a Trim, set Side → Loss Side, and dial in the distance. The label will display as "LOSS TRIM" to visually distinguish it from profit-side trims.
🔔 Setting Up Alerts
Click the Alerts bell icon on the PulseWire toolbar
Click "+" → Create Alert
Under Condition, select "Trade Levels — Entry, Trims & Stop"
Choose a level: Stop Loss Hit, Take Profit Hit, Trim 1, Trim 2, or Trim 3
Set your notification method (popup, sound, mobile push, or webhook)
Click Create
📌 Tips for Scalpers
Set your entry price before you take the trade so the levels are pre-drawn when your order fills
Use Loss-Side Trim 1 to take off 25–33% of your position if price moves against you early — this lowers your average loss significantly over time
The live R:R ratio on the TP label updates instantly as you adjust your distances — use it to ensure you never take a sub-1:1 trade
Works on all timeframes and all instruments — ES, NQ, MNQ, EUR/USD, BTC, SPY, anything Indicator
