Wave Conflict DetectorWave Conflict Detector
Wave Conflict Detector: Identifying Pivot Conditions Through Wave Interference Analysis
Wave Conflict Detector applies wave interference principles from physics to dual-EMA analysis, identifying potential pivot conditions by measuring phase relationships and amplitude states between two moving average waves. Unlike traditional EMA crossover systems that signal on wave intersection, this indicator measures the directional alignment (phase) and interaction strength (interference amplitude) between wave states to identify conditions where wave mechanics suggest potential reversal zones.
The indicator combines two analytical components: velocity-based phase difference calculation that measures whether waves are moving in the same or opposite directions, and normalized interference amplitude that quantifies the degree of wave reinforcement or cancellation. This creates a regime-classification system with visual feedback showing when waves are aligned (constructive state) versus opposed (destructive state).
What Makes This Approach Different
Phase Relationship Measurement
The core analytical method is extracting phase alignment from wave velocities rather than simply measuring EMA separation. The system calculates the first derivative (bar-to-bar change) of each EMA, creating velocity measurements: v₁ = ψ₁ - ψ₁ and v₂ = ψ₂ - ψ₂ . These velocities are combined through normalized correlation: Φ = (v₁ × v₂) / |v|², producing an alignment value ranging from -1 (perfect opposition) to +1 (perfect alignment).
This alignment value is smoothed using EMA and converted to angular degrees: Δφ = (1 - Φ) × 90°, creating a phase difference measurement from 0° to 180°. This quantifies how much the waves are "fighting" each other directionally, independent of their separation distance. Two EMAs can be far apart yet moving in harmony (low phase difference), or close together yet moving in opposition (high phase difference).
This directional correlation approach differs from standard dual-EMA analysis by focusing on velocity alignment rather than positional crossovers.
Interference Amplitude Calculation
The interference formula implements wave superposition principles: I = (|ψ₁ + ψ₂|² - |ψ₁ - ψ₂|²) × Gain, which mathematically simplifies to I = 4 × ψ₁ × ψ₂ × Gain. This measures the product of both waves—when both are positive and large, interference is maximally constructive; when they have opposite signs or differing magnitudes, interference weakens.
The raw interference value is then normalized using adaptive statistical bounds calculated over a rolling window (default 100 bars). The system computes mean (μ) and standard deviation (σ) of raw interference, then applies bounds of μ ± 2σ, and normalizes to a 0-1 range. This creates a scale-invariant measurement that adapts automatically to different instruments and volatility regimes without requiring manual recalibration.
The combination of phase measurement and normalized amplitude creates a two-dimensional state space for classifying market conditions.
Dual-Mode Detection Architecture
The system offers two detection approaches that can be selected based on market conditions:
Interference Mode: Detects pivot conditions when normalized interference amplitude forms local peaks or troughs (current bar is higher/lower than both adjacent bars) AND exceeds the configured threshold. This identifies extremes in wave interaction strength.
Phase Mode: Detects pivot conditions when phase alignment reverses (crosses from positive to negative or vice versa) AND absolute phase difference exceeds the threshold. This identifies directional relationship changes between waves.
Both modes require price structure confirmation (traditional pivot high/low patterns) and minimum bar spacing to prevent over-signaling. This architecture allows traders to match detection sensitivity to market character—interference mode for amplitude-driven markets, phase mode for directional trend shifts.
Multi-Layer Visual System
The visualization approach uses hierarchical layers to display wave state information:
Foundation Layer: The two EMA waves (ψ₁ and ψ₂) plotted directly on the price chart, showing the underlying wave states being analyzed.
Background Layer: Color-coded zones showing regime state—green tint when phase alignment is positive (constructive interference), red tint when phase alignment is negative below -0.3 (destructive interference).
Dynamic Ribbon: A band centered on the wave average with width proportional to |ψ₁ - ψ₂| × (0.5 + interference_norm). This creates an adaptive channel that expands with interference strength and contracts during low-energy states.
Phase Field: Multi-frequency harmonic oscillations generated using three phase accumulators driven by interference amplitude, phase alignment, and accumulated phase rotation. Multiple sine-wave layers create visual texture that becomes erratic during wave conflict conditions and smooth during aligned states.
Particle System: Floating symbols whose density is proportional to interference amplitude, creating a visual intensity indicator.
Each visual component displays non-redundant information about the wave state system.
Core Calculation Methodology
Wave State Generation
Two exponential moving averages are calculated using configurable lengths (default 8 and 21 bars):
- ψ₁ = EMA(close, fastLen) — fast wave component
- ψ₂ = EMA(close, slowLen) — slow wave component
These serve as the base wave functions for all subsequent analysis.
Velocity Extraction
First derivatives are computed as simple bar-to-bar differences:
- psi1_velocity = ψ₁ - ψ₁
- psi2_velocity = ψ₂ - ψ₂
These represent the "motion" of each wave through price-time space.
Phase Alignment Calculation
The velocity product and magnitude are calculated:
- velocity_product = v₁ × v₂
- velocity_magnitude = √(v₁² + v₂²)
Phase alignment is computed as:
- phase_alignment = velocity_product / (velocity_magnitude²)
This is smoothed using EMA of configurable length (default 5) and converted to degrees:
- phase_degrees = (1 - phase_alignment_smooth) × 90
Interference Amplitude Processing
Raw interference is calculated:
- interference_raw = (constructive_amplitude - destructive_amplitude) × gain
- where constructive_amplitude = (ψ₁ + ψ₂)²
- and destructive_amplitude = (ψ₁ - ψ₂)²
Statistical normalization is applied:
- interference_mean = SMA(interference_raw, normalizationLen)
- interference_std = StdDev(interference_raw, normalizationLen)
- upper_bound = mean + 2 × std
- lower_bound = mean - 2 × std
- interference_norm = (interference_raw - lower_bound) / (upper_bound - lower_bound), clamped to
State Classification
Three regime states are identified:
- Constructive: phase_alignment_smooth > 0 (waves moving in same direction)
- Destructive: phase_alignment_smooth < -0.3 (waves moving in opposite directions)
- Neutral: phase_alignment between -0.3 and 0 (weak directional correlation)
Pivot Detection Logic
In Interference Mode:
- High pivots: interference_norm > interference_norm AND interference_norm > interference_norm AND interference_norm > threshold AND price forms pivot high AND spacing requirement met
- Low pivots: interference_norm shows local trough using opposite conditions
In Phase Mode:
- Pivots: phase alignment reverses sign AND absolute phase_degrees > threshold AND price forms pivot high/low AND spacing requirement met
All conditions must be true for a signal to generate.
Dashboard Metrics System
The dashboard displays real-time calculations:
- I (Interference): Normalized amplitude shown as bar gauge and percentage
- Δφ (Phase): Phase difference shown as bar gauge and degrees
- ψ₁ and ψ₂: Current wave values in price units
- Wave Separation: |ψ₁ - ψ₂| with directional indicator
- STATE: Current regime classification (CONSTRUCTIVE/DESTRUCTIVE/NEUTRAL)
- PIVOT Probability: Composite score calculated as interference_norm × (phase_degrees/180) × 100
The interference matrix shows historical heatmap data across four metrics (interference amplitude, phase difference, constructive flags, destructive flags) over the configurable number of bars.
How to Use This Indicator
Initial Configuration
Apply the indicator to your chart with default settings. The fast wave length (default 8) should be adjusted to match short-term price swings for your instrument and timeframe. The slow wave length (default 21) should be 2-4 times the fast length to create adequate wave separation. Enable the dashboard (recommended position: top right) to monitor regime state and metrics in real-time.
Signal Interpretation
High Pivot Marker (▼ Red Triangle): Appears above price bars when a bearish pivot condition is detected. This indicates that price formed a swing high, the selected detection criteria were met (interference peak or phase reversal depending on mode), threshold requirements were satisfied, and the minimum spacing filter passed. This represents a potential reversal zone where wave mechanics suggest downward directional change conditions.
Low Pivot Marker (▲ Green Triangle): Appears below price bars when a bullish pivot condition is detected. This indicates that price formed a swing low and all detection criteria aligned. This represents a potential reversal zone where wave mechanics suggest upward directional change conditions.
Dashboard STATE Reading
The STATE field shows current wave relationship:
- "🟢 CONSTRUCTIVE": Waves are moving in the same direction (phase alignment positive). This suggests trend continuation conditions where waves are reinforcing each other.
- "🔴 DESTRUCTIVE": Waves are moving in opposite directions (phase alignment below -0.3). This suggests reversal-prone conditions where waves are conflicting.
- "🟡 NEUTRAL": Weak directional correlation between waves. This suggests ranging or transitional conditions.
Use STATE for regime awareness rather than specific entry signals.
Interference and Phase Metrics
Monitor the I (Interference) percentage:
- Above 70%: High amplitude state, significant wave interaction
- 40-70%: Moderate amplitude state
- Below 40%: Low amplitude state, weak interaction
Monitor the Δφ (Phase) degrees:
- Above 120°: Significant wave opposition (destructive conditions)
- 60-120°: Transitional phase relationship
- Below 60°: Wave alignment (constructive conditions)
The PIVOT probability metric combines both: high values (>70%) indicate conditions where both amplitude and phase suggest elevated pivot formation potential.
Trading Workflow Example
Step 1 - Regime Check: Observe dashboard STATE to understand current wave relationship. CONSTRUCTIVE states favor trend-following approaches, DESTRUCTIVE states suggest reversal-prone conditions.
Step 2 - Metric Monitoring: Watch I% and Δφ values. Rising interference with high phase difference indicates building wave conflict.
Step 3 - Visual Confirmation: Observe amplitude ribbon width (expanding = active state) and phase field texture (chaotic = conflict conditions, smooth = aligned conditions).
Step 4 - Signal Wait: Wait for confirmed pivot marker (▼ or ▲) rather than anticipating based on metrics alone. The marker indicates all detection criteria have aligned.
Step 5 - Entry Decision: Use pivot markers as potential reversal zones. Combine with other analysis methods such as support/resistance levels, volume confirmation, and higher timeframe bias for entry decisions.
Step 6 - Risk Management: Place stops beyond recent swing structure or ribbon edges. Monitor dashboard STATE—if it flips to CONSTRUCTIVE in trade direction, the reversal may be confirmed; if PIVOT% drops significantly, conditions may be weakening.
Step 7 - Exit Criteria: Consider exits when opposite pivot marker appears, STATE changes unfavorably, or standard technical targets are reached.
Parameter Optimization Guidelines
Fast Wave Length: Adjust to match short-term swing frequency. Shorter values (5-8) for active trading on lower timeframes, longer values (13-20) for swing trading on higher timeframes.
Slow Wave Length: Should maintain 2-4x ratio with fast length. Shorter values create more interference cycles, longer values create more stable baseline.
Phase Detection Length: Smoothing for phase alignment. Lower values (3-5) for responsive detection, higher values (8-12) for stable readings with less sensitivity.
Interference Gain: Amplification multiplier. Lower values (0.5-1.0) for conservative detection, higher values (1.5-2.5) for more sensitive detection.
Normalization Period: Rolling window for statistical bounds. Shorter periods (50-100) adapt quickly to volatility changes, longer periods (150-300) provide more stable normalization.
Interference Threshold: Minimum amplitude to trigger signals. Lower values (0.50-0.60) generate more signals, higher values (0.70-0.85) are more selective.
Phase Threshold: Minimum phase difference in degrees. Lower values (90-110) are more permissive, higher values (140-170) require stronger opposition.
Min Pivot Spacing: Bars between signals. Match to average swing duration on your timeframe—tighter spacing (3-8 bars) for scalping, wider spacing (15-30 bars) for swing trading.
Best Performance Conditions
This approach works better in markets with:
- Clear swing structure where EMA-based wave analysis is meaningful
- Sufficient volatility for wave separation to develop
- Periodic oscillation between trending and ranging states
- Liquid instruments where EMAs reflect true price flow
This approach may be less effective in:
- Extremely choppy conditions with no directional persistence
- Very low volatility environments where wave separation is minimal
- Gap-heavy instruments where price discontinuities disrupt wave continuity
- Parabolic moves where waves cannot keep pace with price velocity
The system adapts by reducing signal frequency in poor conditions—when interference stays below threshold or phase alignment remains neutral, pivot markers will not appear.
Visual Performance Optimization
The phase field and particle systems are computationally intensive. If experiencing chart lag:
- Reduce Phase Field Layers from 5 to 2-3 (significant performance improvement)
- Lower Particle Density from 3 to 1 (reduces label creation overhead)
- Disable Phase Field entirely (removes most intensive calculations)
- Decrease Matrix History Bars to 15-20 (reduces table computation load)
The core wave analysis and pivot detection continue to function with all visual elements disabled.
Important Disclaimers
This indicator is an analytical tool that measures phase relationships and interference amplitude between two exponential moving averages. It identifies conditions where these wave mechanics suggest potential pivot zones based on historical price data analysis. It should not be used as a standalone trading system.
The phase and interference calculations are deterministic mathematical formulas applied to EMA values. These measurements describe current and historical wave relationships but do not predict future price movements. Past wave patterns and pivot markers do not guarantee future market behavior will follow similar patterns.
All trading involves risk. The pivot markers represent analytical conditions where wave mechanics align with specific thresholds, not certainty of directional change. Use appropriate risk management, position sizing, and combine with additional confirmation methods such as support/resistance analysis, volume patterns, and multi-timeframe alignment. No indicator can eliminate false signals or guarantee profitable trades.
The spacing filter and threshold requirements are designed to reduce noise and over-signaling, but market conditions can change rapidly and render any analytical signal invalid. Always use stop losses and never risk capital you cannot afford to lose.
Technical Implementation Notes
All calculations execute on closed bars only—there is no repainting of signals or values. The normalization system requires approximately 100 bars of historical data to establish stable statistical bounds; values in the first 50-100 bars may be unstable as the rolling statistics converge.
Phase field arrays are fixed-size based on the complexity setting. Particle labels are capped at 80 total to prevent excessive memory usage. Dashboard and matrix tables update only on the last bar to minimize computational overhead. Particle generation is throttled to every 2 bars for performance. Phase accumulators use modulo arithmetic (% 2π) to prevent numerical overflow during extended operation.
The indicator has been tested across multiple timeframes (5-minute through daily) and multiple asset classes (forex, stocks, crypto, indices). It functions identically across all instruments due to the adaptive normalization approach.
Volatility
Quantum Rotational Field MappingQuantum Rotational Field Mapping (QRFM):
Phase Coherence Detection Through Complex-Plane Oscillator Analysis
Quantum Rotational Field Mapping applies complex-plane mathematics and phase-space analysis to oscillator ensembles, identifying high-probability trend ignition points by measuring when multiple independent oscillators achieve phase coherence. Unlike traditional multi-oscillator approaches that simply stack indicators or use boolean AND/OR logic, this system converts each oscillator into a rotating phasor (vector) in the complex plane and calculates the Coherence Index (CI) —a mathematical measure of how tightly aligned the ensemble has become—then generates signals only when alignment, phase direction, and pairwise entanglement all converge.
The indicator combines three mathematical frameworks: phasor representation using analytic signal theory to extract phase and amplitude from each oscillator, coherence measurement using vector summation in the complex plane to quantify group alignment, and entanglement analysis that calculates pairwise phase agreement across all oscillator combinations. This creates a multi-dimensional confirmation system that distinguishes between random oscillator noise and genuine regime transitions.
What Makes This Original
Complex-Plane Phasor Framework
This indicator implements classical signal processing mathematics adapted for market oscillators. Each oscillator—whether RSI, MACD, Stochastic, CCI, Williams %R, MFI, ROC, or TSI—is first normalized to a common scale, then converted into a complex-plane representation using an in-phase (I) and quadrature (Q) component. The in-phase component is the oscillator value itself, while the quadrature component is calculated as the first difference (derivative proxy), creating a velocity-aware representation.
From these components, the system extracts:
Phase (φ) : Calculated as φ = atan2(Q, I), representing the oscillator's position in its cycle (mapped to -180° to +180°)
Amplitude (A) : Calculated as A = √(I² + Q²), representing the oscillator's strength or conviction
This mathematical approach is fundamentally different from simply reading oscillator values. A phasor captures both where an oscillator is in its cycle (phase angle) and how strongly it's expressing that position (amplitude). Two oscillators can have the same value but be in opposite phases of their cycles—traditional analysis would see them as identical, while QRFM sees them as 180° out of phase (contradictory).
Coherence Index Calculation
The core innovation is the Coherence Index (CI) , borrowed from physics and signal processing. When you have N oscillators, each with phase φₙ, you can represent each as a unit vector in the complex plane: e^(iφₙ) = cos(φₙ) + i·sin(φₙ).
The CI measures what happens when you sum all these vectors:
Resultant Vector : R = Σ e^(iφₙ) = Σ cos(φₙ) + i·Σ sin(φₙ)
Coherence Index : CI = |R| / N
Where |R| is the magnitude of the resultant vector and N is the number of active oscillators.
The CI ranges from 0 to 1:
CI = 1.0 : Perfect coherence—all oscillators have identical phase angles, vectors point in the same direction, creating maximum constructive interference
CI = 0.0 : Complete decoherence—oscillators are randomly distributed around the circle, vectors cancel out through destructive interference
0 < CI < 1 : Partial alignment—some clustering with some scatter
This is not a simple average or correlation. The CI captures phase synchronization across the entire ensemble simultaneously. When oscillators phase-lock (align their cycles), the CI spikes regardless of their individual values. This makes it sensitive to regime transitions that traditional indicators miss.
Dominant Phase and Direction Detection
Beyond measuring alignment strength, the system calculates the dominant phase of the ensemble—the direction the resultant vector points:
Dominant Phase : φ_dom = atan2(Σ sin(φₙ), Σ cos(φₙ))
This gives the "average direction" of all oscillator phases, mapped to -180° to +180°:
+90° to -90° (right half-plane): Bullish phase dominance
+90° to +180° or -90° to -180° (left half-plane): Bearish phase dominance
The combination of CI magnitude (coherence strength) and dominant phase angle (directional bias) creates a two-dimensional signal space. High CI alone is insufficient—you need high CI plus dominant phase pointing in a tradeable direction. This dual requirement is what separates QRFM from simple oscillator averaging.
Entanglement Matrix and Pairwise Coherence
While the CI measures global alignment, the entanglement matrix measures local pairwise relationships. For every pair of oscillators (i, j), the system calculates:
E(i,j) = |cos(φᵢ - φⱼ)|
This represents the phase agreement between oscillators i and j:
E = 1.0 : Oscillators are in-phase (0° or 360° apart)
E = 0.0 : Oscillators are in quadrature (90° apart, orthogonal)
E between 0 and 1 : Varying degrees of alignment
The system counts how many oscillator pairs exceed a user-defined entanglement threshold (e.g., 0.7). This entangled pairs count serves as a confirmation filter: signals require not just high global CI, but also a minimum number of strong pairwise agreements. This prevents false ignitions where CI is high but driven by only two oscillators while the rest remain scattered.
The entanglement matrix creates an N×N symmetric matrix that can be visualized as a web—when many cells are bright (high E values), the ensemble is highly interconnected. When cells are dark, oscillators are moving independently.
Phase-Lock Tolerance Mechanism
A complementary confirmation layer is the phase-lock detector . This calculates the maximum phase spread across all oscillators:
For all pairs (i,j), compute angular distance: Δφ = |φᵢ - φⱼ|, wrapping at 180°
Max Spread = maximum Δφ across all pairs
If max spread < user threshold (e.g., 35°), the ensemble is considered phase-locked —all oscillators are within a narrow angular band.
This differs from entanglement: entanglement measures pairwise cosine similarity (magnitude of alignment), while phase-lock measures maximum angular deviation (tightness of clustering). Both must be satisfied for the highest-conviction signals.
Multi-Layer Visual Architecture
QRFM includes six visual components that represent the same underlying mathematics from different perspectives:
Circular Orbit Plot : A polar coordinate grid showing each oscillator as a vector from origin to perimeter. Angle = phase, radius = amplitude. This is a real-time snapshot of the complex plane. When vectors converge (point in similar directions), coherence is high. When scattered randomly, coherence is low. Users can see phase alignment forming before CI numerically confirms it.
Phase-Time Heat Map : A 2D matrix with rows = oscillators and columns = time bins. Each cell is colored by the oscillator's phase at that time (using a gradient where color hue maps to angle). Horizontal color bands indicate sustained phase alignment over time. Vertical color bands show moments when all oscillators shared the same phase (ignition points). This provides historical pattern recognition.
Entanglement Web Matrix : An N×N grid showing E(i,j) for all pairs. Cells are colored by entanglement strength—bright yellow/gold for high E, dark gray for low E. This reveals which oscillators are driving coherence and which are lagging. For example, if RSI and MACD show high E but Stochastic shows low E with everything, Stochastic is the outlier.
Quantum Field Cloud : A background color overlay on the price chart. Color (green = bullish, red = bearish) is determined by dominant phase. Opacity is determined by CI—high CI creates dense, opaque cloud; low CI creates faint, nearly invisible cloud. This gives an atmospheric "feel" for regime strength without looking at numbers.
Phase Spiral : A smoothed plot of dominant phase over recent history, displayed as a curve that wraps around price. When the spiral is tight and rotating steadily, the ensemble is in coherent rotation (trending). When the spiral is loose or erratic, coherence is breaking down.
Dashboard : A table showing real-time metrics: CI (as percentage), dominant phase (in degrees with directional arrow), field strength (CI × average amplitude), entangled pairs count, phase-lock status (locked/unlocked), quantum state classification ("Ignition", "Coherent", "Collapse", "Chaos"), and collapse risk (recent CI change normalized to 0-100%).
Each component is independently toggleable, allowing users to customize their workspace. The orbit plot is the most essential—it provides intuitive, visual feedback on phase alignment that no numerical dashboard can match.
Core Components and How They Work Together
1. Oscillator Normalization Engine
The foundation is creating a common measurement scale. QRFM supports eight oscillators:
RSI : Normalized from to using overbought/oversold levels (70, 30) as anchors
MACD Histogram : Normalized by dividing by rolling standard deviation, then clamped to
Stochastic %K : Normalized from using (80, 20) anchors
CCI : Divided by 200 (typical extreme level), clamped to
Williams %R : Normalized from using (-20, -80) anchors
MFI : Normalized from using (80, 20) anchors
ROC : Divided by 10, clamped to
TSI : Divided by 50, clamped to
Each oscillator can be individually enabled/disabled. Only active oscillators contribute to phase calculations. The normalization removes scale differences—a reading of +0.8 means "strongly bullish" regardless of whether it came from RSI or TSI.
2. Analytic Signal Construction
For each active oscillator at each bar, the system constructs the analytic signal:
In-Phase (I) : The normalized oscillator value itself
Quadrature (Q) : The bar-to-bar change in the normalized value (first derivative approximation)
This creates a 2D representation: (I, Q). The phase is extracted as:
φ = atan2(Q, I) × (180 / π)
This maps the oscillator to a point on the unit circle. An oscillator at the same value but rising (positive Q) will have a different phase than one that is falling (negative Q). This velocity-awareness is critical—it distinguishes between "at resistance and stalling" versus "at resistance and breaking through."
The amplitude is extracted as:
A = √(I² + Q²)
This represents the distance from origin in the (I, Q) plane. High amplitude means the oscillator is far from neutral (strong conviction). Low amplitude means it's near zero (weak/transitional state).
3. Coherence Calculation Pipeline
For each bar (or every Nth bar if phase sample rate > 1 for performance):
Step 1 : Extract phase φₙ for each of the N active oscillators
Step 2 : Compute complex exponentials: Zₙ = e^(i·φₙ·π/180) = cos(φₙ·π/180) + i·sin(φₙ·π/180)
Step 3 : Sum the complex exponentials: R = Σ Zₙ = (Σ cos φₙ) + i·(Σ sin φₙ)
Step 4 : Calculate magnitude: |R| = √
Step 5 : Normalize by count: CI_raw = |R| / N
Step 6 : Smooth the CI: CI = SMA(CI_raw, smoothing_window)
The smoothing step (default 2 bars) removes single-bar noise spikes while preserving structural coherence changes. Users can adjust this to control reactivity versus stability.
The dominant phase is calculated as:
φ_dom = atan2(Σ sin φₙ, Σ cos φₙ) × (180 / π)
This is the angle of the resultant vector R in the complex plane.
4. Entanglement Matrix Construction
For all unique pairs of oscillators (i, j) where i < j:
Step 1 : Get phases φᵢ and φⱼ
Step 2 : Compute phase difference: Δφ = φᵢ - φⱼ (in radians)
Step 3 : Calculate entanglement: E(i,j) = |cos(Δφ)|
Step 4 : Store in symmetric matrix: matrix = matrix = E(i,j)
The matrix is then scanned: count how many E(i,j) values exceed the user-defined threshold (default 0.7). This count is the entangled pairs metric.
For visualization, the matrix is rendered as an N×N table where cell brightness maps to E(i,j) intensity.
5. Phase-Lock Detection
Step 1 : For all unique pairs (i, j), compute angular distance: Δφ = |φᵢ - φⱼ|
Step 2 : Wrap angles: if Δφ > 180°, set Δφ = 360° - Δφ
Step 3 : Find maximum: max_spread = max(Δφ) across all pairs
Step 4 : Compare to tolerance: phase_locked = (max_spread < tolerance)
If phase_locked is true, all oscillators are within the specified angular cone (e.g., 35°). This is a boolean confirmation filter.
6. Signal Generation Logic
Signals are generated through multi-layer confirmation:
Long Ignition Signal :
CI crosses above ignition threshold (e.g., 0.80)
AND dominant phase is in bullish range (-90° < φ_dom < +90°)
AND phase_locked = true
AND entangled_pairs >= minimum threshold (e.g., 4)
Short Ignition Signal :
CI crosses above ignition threshold
AND dominant phase is in bearish range (φ_dom < -90° OR φ_dom > +90°)
AND phase_locked = true
AND entangled_pairs >= minimum threshold
Collapse Signal :
CI at bar minus CI at current bar > collapse threshold (e.g., 0.55)
AND CI at bar was above 0.6 (must collapse from coherent state, not from already-low state)
These are strict conditions. A high CI alone does not generate a signal—dominant phase must align with direction, oscillators must be phase-locked, and sufficient pairwise entanglement must exist. This multi-factor gating dramatically reduces false signals compared to single-condition triggers.
Calculation Methodology
Phase 1: Oscillator Computation and Normalization
On each bar, the system calculates the raw values for all enabled oscillators using standard Pine Script functions:
RSI: ta.rsi(close, length)
MACD: ta.macd() returning histogram component
Stochastic: ta.stoch() smoothed with ta.sma()
CCI: ta.cci(close, length)
Williams %R: ta.wpr(length)
MFI: ta.mfi(hlc3, length)
ROC: ta.roc(close, length)
TSI: ta.tsi(close, short, long)
Each raw value is then passed through a normalization function:
normalize(value, overbought_level, oversold_level) = 2 × (value - oversold) / (overbought - oversold) - 1
This maps the oscillator's typical range to , where -1 represents extreme bearish, 0 represents neutral, and +1 represents extreme bullish.
For oscillators without fixed ranges (MACD, ROC, TSI), statistical normalization is used: divide by a rolling standard deviation or fixed divisor, then clamp to .
Phase 2: Phasor Extraction
For each normalized oscillator value val:
I = val (in-phase component)
Q = val - val (quadrature component, first difference)
Phase calculation:
phi_rad = atan2(Q, I)
phi_deg = phi_rad × (180 / π)
Amplitude calculation:
A = √(I² + Q²)
These values are stored in arrays: osc_phases and osc_amps for each oscillator n.
Phase 3: Complex Summation and Coherence
Initialize accumulators:
sum_cos = 0
sum_sin = 0
For each oscillator n = 0 to N-1:
phi_rad = osc_phases × (π / 180)
sum_cos += cos(phi_rad)
sum_sin += sin(phi_rad)
Resultant magnitude:
resultant_mag = √(sum_cos² + sum_sin²)
Coherence Index (raw):
CI_raw = resultant_mag / N
Smoothed CI:
CI = SMA(CI_raw, smoothing_window)
Dominant phase:
phi_dom_rad = atan2(sum_sin, sum_cos)
phi_dom_deg = phi_dom_rad × (180 / π)
Phase 4: Entanglement Matrix Population
For i = 0 to N-2:
For j = i+1 to N-1:
phi_i = osc_phases × (π / 180)
phi_j = osc_phases × (π / 180)
delta_phi = phi_i - phi_j
E = |cos(delta_phi)|
matrix_index_ij = i × N + j
matrix_index_ji = j × N + i
entangle_matrix = E
entangle_matrix = E
if E >= threshold:
entangled_pairs += 1
The matrix uses flat array storage with index mapping: index(row, col) = row × N + col.
Phase 5: Phase-Lock Check
max_spread = 0
For i = 0 to N-2:
For j = i+1 to N-1:
delta = |osc_phases - osc_phases |
if delta > 180:
delta = 360 - delta
max_spread = max(max_spread, delta)
phase_locked = (max_spread < tolerance)
Phase 6: Signal Evaluation
Ignition Long :
ignition_long = (CI crosses above threshold) AND
(phi_dom > -90 AND phi_dom < 90) AND
phase_locked AND
(entangled_pairs >= minimum)
Ignition Short :
ignition_short = (CI crosses above threshold) AND
(phi_dom < -90 OR phi_dom > 90) AND
phase_locked AND
(entangled_pairs >= minimum)
Collapse :
CI_prev = CI
collapse = (CI_prev - CI > collapse_threshold) AND (CI_prev > 0.6)
All signals are evaluated on bar close. The crossover and crossunder functions ensure signals fire only once when conditions transition from false to true.
Phase 7: Field Strength and Visualization Metrics
Average Amplitude :
avg_amp = (Σ osc_amps ) / N
Field Strength :
field_strength = CI × avg_amp
Collapse Risk (for dashboard):
collapse_risk = (CI - CI) / max(CI , 0.1)
collapse_risk_pct = clamp(collapse_risk × 100, 0, 100)
Quantum State Classification :
if (CI > threshold AND phase_locked):
state = "Ignition"
else if (CI > 0.6):
state = "Coherent"
else if (collapse):
state = "Collapse"
else:
state = "Chaos"
Phase 8: Visual Rendering
Orbit Plot : For each oscillator, convert polar (phase, amplitude) to Cartesian (x, y) for grid placement:
radius = amplitude × grid_center × 0.8
x = radius × cos(phase × π/180)
y = radius × sin(phase × π/180)
col = center + x (mapped to grid coordinates)
row = center - y
Heat Map : For each oscillator row and time column, retrieve historical phase value at lookback = (columns - col) × sample_rate, then map phase to color using a hue gradient.
Entanglement Web : Render matrix as table cell with background color opacity = E(i,j).
Field Cloud : Background color = (phi_dom > -90 AND phi_dom < 90) ? green : red, with opacity = mix(min_opacity, max_opacity, CI).
All visual components render only on the last bar (barstate.islast) to minimize computational overhead.
How to Use This Indicator
Step 1 : Apply QRFM to your chart. It works on all timeframes and asset classes, though 15-minute to 4-hour timeframes provide the best balance of responsiveness and noise reduction.
Step 2 : Enable the dashboard (default: top right) and the circular orbit plot (default: middle left). These are your primary visual feedback tools.
Step 3 : Optionally enable the heat map, entanglement web, and field cloud based on your preference. New users may find all visuals overwhelming; start with dashboard + orbit plot.
Step 4 : Observe for 50-100 bars to let the indicator establish baseline coherence patterns. Markets have different "normal" CI ranges—some instruments naturally run higher or lower coherence.
Understanding the Circular Orbit Plot
The orbit plot is a polar grid showing oscillator vectors in real-time:
Center point : Neutral (zero phase and amplitude)
Each vector : A line from center to a point on the grid
Vector angle : The oscillator's phase (0° = right/east, 90° = up/north, 180° = left/west, -90° = down/south)
Vector length : The oscillator's amplitude (short = weak signal, long = strong signal)
Vector label : First letter of oscillator name (R = RSI, M = MACD, etc.)
What to watch :
Convergence : When all vectors cluster in one quadrant or sector, CI is rising and coherence is forming. This is your pre-signal warning.
Scatter : When vectors point in random directions (360° spread), CI is low and the market is in a non-trending or transitional regime.
Rotation : When the cluster rotates smoothly around the circle, the ensemble is in coherent oscillation—typically seen during steady trends.
Sudden flips : When the cluster rapidly jumps from one side to the opposite (e.g., +90° to -90°), a phase reversal has occurred—often coinciding with trend reversals.
Example: If you see RSI, MACD, and Stochastic all pointing toward 45° (northeast) with long vectors, while CCI, TSI, and ROC point toward 40-50° as well, coherence is high and dominant phase is bullish. Expect an ignition signal if CI crosses threshold.
Reading Dashboard Metrics
The dashboard provides numerical confirmation of what the orbit plot shows visually:
CI : Displays as 0-100%. Above 70% = high coherence (strong regime), 40-70% = moderate, below 40% = low (poor conditions for trend entries).
Dom Phase : Angle in degrees with directional arrow. ⬆ = bullish bias, ⬇ = bearish bias, ⬌ = neutral.
Field Strength : CI weighted by amplitude. High values (> 0.6) indicate not just alignment but strong alignment.
Entangled Pairs : Count of oscillator pairs with E > threshold. Higher = more confirmation. If minimum is set to 4, you need at least 4 pairs entangled for signals.
Phase Lock : 🔒 YES (all oscillators within tolerance) or 🔓 NO (spread too wide).
State : Real-time classification:
🚀 IGNITION: CI just crossed threshold with phase-lock
⚡ COHERENT: CI is high and stable
💥 COLLAPSE: CI has dropped sharply
🌀 CHAOS: Low CI, scattered phases
Collapse Risk : 0-100% scale based on recent CI change. Above 50% warns of imminent breakdown.
Interpreting Signals
Long Ignition (Blue Triangle Below Price) :
Occurs when CI crosses above threshold (e.g., 0.80)
Dominant phase is in bullish range (-90° to +90°)
All oscillators are phase-locked (within tolerance)
Minimum entangled pairs requirement met
Interpretation : The oscillator ensemble has transitioned from disorder to coherent bullish alignment. This is a high-probability long entry point. The multi-layer confirmation (CI + phase direction + lock + entanglement) ensures this is not a single-oscillator whipsaw.
Short Ignition (Red Triangle Above Price) :
Same conditions as long, but dominant phase is in bearish range (< -90° or > +90°)
Interpretation : Coherent bearish alignment has formed. High-probability short entry.
Collapse (Circles Above and Below Price) :
CI has dropped by more than the collapse threshold (e.g., 0.55) over a 5-bar window
CI was previously above 0.6 (collapsing from coherent state)
Interpretation : Phase coherence has broken down. If you are in a position, this is an exit warning. If looking to enter, stand aside—regime is transitioning.
Phase-Time Heat Map Patterns
Enable the heat map and position it at bottom right. The rows represent individual oscillators, columns represent time bins (most recent on left).
Pattern: Horizontal Color Bands
If a row (e.g., RSI) shows consistent color across columns (say, green for several bins), that oscillator has maintained stable phase over time. If all rows show horizontal bands of similar color, the entire ensemble has been phase-locked for an extended period—this is a strong trending regime.
Pattern: Vertical Color Bands
If a column (single time bin) shows all cells with the same or very similar color, that moment in time had high coherence. These vertical bands often align with ignition signals or major price pivots.
Pattern: Rainbow Chaos
If cells are random colors (red, green, yellow mixed with no pattern), coherence is low. The ensemble is scattered. Avoid trading during these periods unless you have external confirmation.
Pattern: Color Transition
If you see a row transition from red to green (or vice versa) sharply, that oscillator has phase-flipped. If multiple rows do this simultaneously, a regime change is underway.
Entanglement Web Analysis
Enable the web matrix (default: opposite corner from heat map). It shows an N×N grid where N = number of active oscillators.
Bright Yellow/Gold Cells : High pairwise entanglement. For example, if the RSI-MACD cell is bright gold, those two oscillators are moving in phase. If the RSI-Stochastic cell is bright, they are entangled as well.
Dark Gray Cells : Low entanglement. Oscillators are decorrelated or in quadrature.
Diagonal : Always marked with "—" because an oscillator is always perfectly entangled with itself.
How to use :
Scan for clustering: If most cells are bright, coherence is high across the board. If only a few cells are bright, coherence is driven by a subset (e.g., RSI and MACD are aligned, but nothing else is—weak signal).
Identify laggards: If one row/column is entirely dark, that oscillator is the outlier. You may choose to disable it or monitor for when it joins the group (late confirmation).
Watch for web formation: During low-coherence periods, the matrix is mostly dark. As coherence builds, cells begin lighting up. A sudden "web" of connections forming visually precedes ignition signals.
Trading Workflow
Step 1: Monitor Coherence Level
Check the dashboard CI metric or observe the orbit plot. If CI is below 40% and vectors are scattered, conditions are poor for trend entries. Wait.
Step 2: Detect Coherence Building
When CI begins rising (say, from 30% to 50-60%) and you notice vectors on the orbit plot starting to cluster, coherence is forming. This is your alert phase—do not enter yet, but prepare.
Step 3: Confirm Phase Direction
Check the dominant phase angle and the orbit plot quadrant where clustering is occurring:
Clustering in right half (0° to ±90°): Bullish bias forming
Clustering in left half (±90° to 180°): Bearish bias forming
Verify the dashboard shows the corresponding directional arrow (⬆ or ⬇).
Step 4: Wait for Signal Confirmation
Do not enter based on rising CI alone. Wait for the full ignition signal:
CI crosses above threshold
Phase-lock indicator shows 🔒 YES
Entangled pairs count >= minimum
Directional triangle appears on chart
This ensures all layers have aligned.
Step 5: Execute Entry
Long : Blue triangle below price appears → enter long
Short : Red triangle above price appears → enter short
Step 6: Position Management
Initial Stop : Place stop loss based on your risk management rules (e.g., recent swing low/high, ATR-based buffer).
Monitoring :
Watch the field cloud density. If it remains opaque and colored in your direction, the regime is intact.
Check dashboard collapse risk. If it rises above 50%, prepare for exit.
Monitor the orbit plot. If vectors begin scattering or the cluster flips to the opposite side, coherence is breaking.
Exit Triggers :
Collapse signal fires (circles appear)
Dominant phase flips to opposite half-plane
CI drops below 40% (coherence lost)
Price hits your profit target or trailing stop
Step 7: Post-Exit Analysis
After exiting, observe whether a new ignition forms in the opposite direction (reversal) or if CI remains low (transition to range). Use this to decide whether to re-enter, reverse, or stand aside.
Best Practices
Use Price Structure as Context
QRFM identifies when coherence forms but does not specify where price will go. Combine ignition signals with support/resistance levels, trendlines, or chart patterns. For example:
Long ignition near a major support level after a pullback: high-probability bounce
Long ignition in the middle of a range with no structure: lower probability
Multi-Timeframe Confirmation
Open QRFM on two timeframes simultaneously:
Higher timeframe (e.g., 4-hour): Use CI level to determine regime bias. If 4H CI is above 60% and dominant phase is bullish, the market is in a bullish regime.
Lower timeframe (e.g., 15-minute): Execute entries on ignition signals that align with the higher timeframe bias.
This prevents counter-trend trades and increases win rate.
Distinguish Between Regime Types
High CI, stable dominant phase (State: Coherent) : Trending market. Ignitions are continuation signals; collapses are profit-taking or reversal warnings.
Low CI, erratic dominant phase (State: Chaos) : Ranging or choppy market. Avoid ignition signals or reduce position size. Wait for coherence to establish.
Moderate CI with frequent collapses : Whipsaw environment. Use wider stops or stand aside.
Adjust Parameters to Instrument and Timeframe
Crypto/Forex (high volatility) : Lower ignition threshold (0.65-0.75), lower CI smoothing (2-3), shorter oscillator lengths (7-10).
Stocks/Indices (moderate volatility) : Standard settings (threshold 0.75-0.85, smoothing 5-7, oscillator lengths 14).
Lower timeframes (5-15 min) : Reduce phase sample rate to 1-2 for responsiveness.
Higher timeframes (daily+) : Increase CI smoothing and oscillator lengths for noise reduction.
Use Entanglement Count as Conviction Filter
The minimum entangled pairs setting controls signal strictness:
Low (1-2) : More signals, lower quality (acceptable if you have other confirmation)
Medium (3-5) : Balanced (recommended for most traders)
High (6+) : Very strict, fewer signals, highest quality
Adjust based on your trade frequency preference and risk tolerance.
Monitor Oscillator Contribution
Use the entanglement web to see which oscillators are driving coherence. If certain oscillators are consistently dark (low E with all others), they may be adding noise. Consider disabling them. For example:
On low-volume instruments, MFI may be unreliable → disable MFI
On strongly trending instruments, mean-reversion oscillators (Stochastic, RSI) may lag → reduce weight or disable
Respect the Collapse Signal
Collapse events are early warnings. Price may continue in the original direction for several bars after collapse fires, but the underlying regime has weakened. Best practice:
If in profit: Take partial or full profit on collapse
If at breakeven/small loss: Exit immediately
If collapse occurs shortly after entry: Likely a false ignition; exit to avoid drawdown
Collapses do not guarantee immediate reversals—they signal uncertainty .
Combine with Volume Analysis
If your instrument has reliable volume:
Ignitions with expanding volume: Higher conviction
Ignitions with declining volume: Weaker, possibly false
Collapses with volume spikes: Strong reversal signal
Collapses with low volume: May just be consolidation
Volume is not built into QRFM (except via MFI), so add it as external confirmation.
Observe the Phase Spiral
The spiral provides a quick visual cue for rotation consistency:
Tight, smooth spiral : Ensemble is rotating coherently (trending)
Loose, erratic spiral : Phase is jumping around (ranging or transitional)
If the spiral tightens, coherence is building. If it loosens, coherence is dissolving.
Do Not Overtrade Low-Coherence Periods
When CI is persistently below 40% and the state is "Chaos," the market is not in a regime where phase analysis is predictive. During these times:
Reduce position size
Widen stops
Wait for coherence to return
QRFM's strength is regime detection. If there is no regime, the tool correctly signals "stand aside."
Use Alerts Strategically
Set alerts for:
Long Ignition
Short Ignition
Collapse
Phase Lock (optional)
Configure alerts to "Once per bar close" to avoid intrabar repainting and noise. When an alert fires, manually verify:
Orbit plot shows clustering
Dashboard confirms all conditions
Price structure supports the trade
Do not blindly trade alerts—use them as prompts for analysis.
Ideal Market Conditions
Best Performance
Instruments :
Liquid, actively traded markets (major forex pairs, large-cap stocks, major indices, top-tier crypto)
Instruments with clear cyclical oscillator behavior (avoid extremely illiquid or manipulated markets)
Timeframes :
15-minute to 4-hour: Optimal balance of noise reduction and responsiveness
1-hour to daily: Slower, higher-conviction signals; good for swing trading
5-minute: Acceptable for scalping if parameters are tightened and you accept more noise
Market Regimes :
Trending markets with periodic retracements (where oscillators cycle through phases predictably)
Breakout environments (coherence forms before/during breakout; collapse occurs at exhaustion)
Rotational markets with clear swings (oscillators phase-lock at turning points)
Volatility :
Moderate to high volatility (oscillators have room to move through their ranges)
Stable volatility regimes (sudden VIX spikes or flash crashes may create false collapses)
Challenging Conditions
Instruments :
Very low liquidity markets (erratic price action creates unstable oscillator phases)
Heavily news-driven instruments (fundamentals may override technical coherence)
Highly correlated instruments (oscillators may all reflect the same underlying factor, reducing independence)
Market Regimes :
Deep, prolonged consolidation (oscillators remain near neutral, CI is chronically low, few signals fire)
Extreme chop with no directional bias (oscillators whipsaw, coherence never establishes)
Gap-driven markets (large overnight gaps create phase discontinuities)
Timeframes :
Sub-5-minute charts: Noise dominates; oscillators flip rapidly; coherence is fleeting and unreliable
Weekly/monthly: Oscillators move extremely slowly; signals are rare; better suited for long-term positioning than active trading
Special Cases :
During major economic releases or earnings: Oscillators may lag price or become decorrelated as fundamentals overwhelm technicals. Reduce position size or stand aside.
In extremely low-volatility environments (e.g., holiday periods): Oscillators compress to neutral, CI may be artificially high due to lack of movement, but signals lack follow-through.
Adaptive Behavior
QRFM is designed to self-adapt to poor conditions:
When coherence is genuinely absent, CI remains low and signals do not fire
When only a subset of oscillators aligns, entangled pairs count stays below threshold and signals are filtered out
When phase-lock cannot be achieved (oscillators too scattered), the lock filter prevents signals
This means the indicator will naturally produce fewer (or zero) signals during unfavorable conditions, rather than generating false signals. This is a feature —it keeps you out of low-probability trades.
Parameter Optimization by Trading Style
Scalping (5-15 Minute Charts)
Goal : Maximum responsiveness, accept higher noise
Oscillator Lengths :
RSI: 7-10
MACD: 8/17/6
Stochastic: 8-10, smooth 2-3
CCI: 14-16
Others: 8-12
Coherence Settings :
CI Smoothing Window: 2-3 bars (fast reaction)
Phase Sample Rate: 1 (every bar)
Ignition Threshold: 0.65-0.75 (lower for more signals)
Collapse Threshold: 0.40-0.50 (earlier exit warnings)
Confirmation :
Phase Lock Tolerance: 40-50° (looser, easier to achieve)
Min Entangled Pairs: 2-3 (fewer oscillators required)
Visuals :
Orbit Plot + Dashboard only (reduce screen clutter for fast decisions)
Disable heavy visuals (heat map, web) for performance
Alerts :
Enable all ignition and collapse alerts
Set to "Once per bar close"
Day Trading (15-Minute to 1-Hour Charts)
Goal : Balance between responsiveness and reliability
Oscillator Lengths :
RSI: 14 (standard)
MACD: 12/26/9 (standard)
Stochastic: 14, smooth 3
CCI: 20
Others: 10-14
Coherence Settings :
CI Smoothing Window: 3-5 bars (balanced)
Phase Sample Rate: 2-3
Ignition Threshold: 0.75-0.85 (moderate selectivity)
Collapse Threshold: 0.50-0.55 (balanced exit timing)
Confirmation :
Phase Lock Tolerance: 30-40° (moderate tightness)
Min Entangled Pairs: 4-5 (reasonable confirmation)
Visuals :
Orbit Plot + Dashboard + Heat Map or Web (choose one)
Field Cloud for regime backdrop
Alerts :
Ignition and collapse alerts
Optional phase-lock alert for advance warning
Swing Trading (4-Hour to Daily Charts)
Goal : High-conviction signals, minimal noise, fewer trades
Oscillator Lengths :
RSI: 14-21
MACD: 12/26/9 or 19/39/9 (longer variant)
Stochastic: 14-21, smooth 3-5
CCI: 20-30
Others: 14-20
Coherence Settings :
CI Smoothing Window: 5-10 bars (very smooth)
Phase Sample Rate: 3-5
Ignition Threshold: 0.80-0.90 (high bar for entry)
Collapse Threshold: 0.55-0.65 (only significant breakdowns)
Confirmation :
Phase Lock Tolerance: 20-30° (tight clustering required)
Min Entangled Pairs: 5-7 (strong confirmation)
Visuals :
All modules enabled (you have time to analyze)
Heat Map for multi-bar pattern recognition
Web for deep confirmation analysis
Alerts :
Ignition and collapse
Review manually before entering (no rush)
Position/Long-Term Trading (Daily to Weekly Charts)
Goal : Rare, very high-conviction regime shifts
Oscillator Lengths :
RSI: 21-30
MACD: 19/39/9 or 26/52/12
Stochastic: 21, smooth 5
CCI: 30-50
Others: 20-30
Coherence Settings :
CI Smoothing Window: 10-14 bars
Phase Sample Rate: 5 (every 5th bar to reduce computation)
Ignition Threshold: 0.85-0.95 (only extreme alignment)
Collapse Threshold: 0.60-0.70 (major regime breaks only)
Confirmation :
Phase Lock Tolerance: 15-25° (very tight)
Min Entangled Pairs: 6+ (broad consensus required)
Visuals :
Dashboard + Orbit Plot for quick checks
Heat Map to study historical coherence patterns
Web to verify deep entanglement
Alerts :
Ignition only (collapses are less critical on long timeframes)
Manual review with fundamental analysis overlay
Performance Optimization (Low-End Systems)
If you experience lag or slow rendering:
Reduce Visual Load :
Orbit Grid Size: 8-10 (instead of 12+)
Heat Map Time Bins: 5-8 (instead of 10+)
Disable Web Matrix entirely if not needed
Disable Field Cloud and Phase Spiral
Reduce Calculation Frequency :
Phase Sample Rate: 5-10 (calculate every 5-10 bars)
Max History Depth: 100-200 (instead of 500+)
Disable Unused Oscillators :
If you only want RSI, MACD, and Stochastic, disable the other five. Fewer oscillators = smaller matrices, faster loops.
Simplify Dashboard :
Choose "Small" dashboard size
Reduce number of metrics displayed
These settings will not significantly degrade signal quality (signals are based on bar-close calculations, which remain accurate), but will improve chart responsiveness.
Important Disclaimers
This indicator is a technical analysis tool designed to identify periods of phase coherence across an ensemble of oscillators. It is not a standalone trading system and does not guarantee profitable trades. The Coherence Index, dominant phase, and entanglement metrics are mathematical calculations applied to historical price data—they measure past oscillator behavior and do not predict future price movements with certainty.
No Predictive Guarantee : High coherence indicates that oscillators are currently aligned, which historically has coincided with trending or directional price movement. However, past alignment does not guarantee future trends. Markets can remain coherent while prices consolidate, or lose coherence suddenly due to news, liquidity changes, or other factors not captured by oscillator mathematics.
Signal Confirmation is Probabilistic : The multi-layer confirmation system (CI threshold + dominant phase + phase-lock + entanglement) is designed to filter out low-probability setups. This increases the proportion of valid signals relative to false signals, but does not eliminate false signals entirely. Users should combine QRFM with additional analysis—support and resistance levels, volume confirmation, multi-timeframe alignment, and fundamental context—before executing trades.
Collapse Signals are Warnings, Not Reversals : A coherence collapse indicates that the oscillator ensemble has lost alignment. This often precedes trend exhaustion or reversals, but can also occur during healthy pullbacks or consolidations. Price may continue in the original direction after a collapse. Use collapses as risk management cues (tighten stops, take partial profits) rather than automatic reversal entries.
Market Regime Dependency : QRFM performs best in markets where oscillators exhibit cyclical, mean-reverting behavior and where trends are punctuated by retracements. In markets dominated by fundamental shocks, gap openings, or extreme low-liquidity conditions, oscillator coherence may be less reliable. During such periods, reduce position size or stand aside.
Risk Management is Essential : All trading involves risk of loss. Use appropriate stop losses, position sizing, and risk-per-trade limits. The indicator does not specify stop loss or take profit levels—these must be determined by the user based on their risk tolerance and account size. Never risk more than you can afford to lose.
Parameter Sensitivity : The indicator's behavior changes with input parameters. Aggressive settings (low thresholds, loose tolerances) produce more signals with lower average quality. Conservative settings (high thresholds, tight tolerances) produce fewer signals with higher average quality. Users should backtest and forward-test parameter sets on their specific instruments and timeframes before committing real capital.
No Repainting by Design : All signal conditions are evaluated on bar close using bar-close values. However, the visual components (orbit plot, heat map, dashboard) update in real-time during bar formation for monitoring purposes. For trade execution, rely on the confirmed signals (triangles and circles) that appear only after the bar closes.
Computational Load : QRFM performs extensive calculations, including nested loops for entanglement matrices and real-time table rendering. On lower-powered devices or when running multiple indicators simultaneously, users may experience lag. Use the performance optimization settings (reduce visual complexity, increase phase sample rate, disable unused oscillators) to improve responsiveness.
This system is most effective when used as one component within a broader trading methodology that includes sound risk management, multi-timeframe analysis, market context awareness, and disciplined execution. It is a tool for regime detection and signal confirmation, not a substitute for comprehensive trade planning.
Technical Notes
Calculation Timing : All signal logic (ignition, collapse) is evaluated using bar-close values. The barstate.isconfirmed or implicit bar-close behavior ensures signals do not repaint. Visual components (tables, plots) render on every tick for real-time feedback but do not affect signal generation.
Phase Wrapping : Phase angles are calculated in the range -180° to +180° using atan2. Angular distance calculations account for wrapping (e.g., the distance between +170° and -170° is 20°, not 340°). This ensures phase-lock detection works correctly across the ±180° boundary.
Array Management : The indicator uses fixed-size arrays for oscillator phases, amplitudes, and the entanglement matrix. The maximum number of oscillators is 8. If fewer oscillators are enabled, array sizes shrink accordingly (only active oscillators are processed).
Matrix Indexing : The entanglement matrix is stored as a flat array with size N×N, where N is the number of active oscillators. Index mapping: index(row, col) = row × N + col. Symmetric pairs (i,j) and (j,i) are stored identically.
Normalization Stability : Oscillators are normalized to using fixed reference levels (e.g., RSI overbought/oversold at 70/30). For unbounded oscillators (MACD, ROC, TSI), statistical normalization (division by rolling standard deviation) is used, with clamping to prevent extreme outliers from distorting phase calculations.
Smoothing and Lag : The CI smoothing window (SMA) introduces lag proportional to the window size. This is intentional—it filters out single-bar noise spikes in coherence. Users requiring faster reaction can reduce the smoothing window to 1-2 bars, at the cost of increased sensitivity to noise.
Complex Number Representation : Pine Script does not have native complex number types. Complex arithmetic is implemented using separate real and imaginary accumulators (sum_cos, sum_sin) and manual calculation of magnitude (sqrt(real² + imag²)) and argument (atan2(imag, real)).
Lookback Limits : The indicator respects Pine Script's maximum lookback constraints. Historical phase and amplitude values are accessed using the operator, with lookback limited to the chart's available bar history (max_bars_back=5000 declared).
Visual Rendering Performance : Tables (orbit plot, heat map, web, dashboard) are conditionally deleted and recreated on each update using table.delete() and table.new(). This prevents memory leaks but incurs redraw overhead. Rendering is restricted to barstate.islast (last bar) to minimize computational load—historical bars do not render visuals.
Alert Condition Triggers : alertcondition() functions evaluate on bar close when their boolean conditions transition from false to true. Alerts do not fire repeatedly while a condition remains true (e.g., CI stays above threshold for 10 bars fires only once on the initial cross).
Color Gradient Functions : The phaseColor() function maps phase angles to RGB hues using sine waves offset by 120° (red, green, blue channels). This creates a continuous spectrum where -180° to +180° spans the full color wheel. The amplitudeColor() function maps amplitude to grayscale intensity. The coherenceColor() function uses cos(phase) to map contribution to CI (positive = green, negative = red).
No External Data Requests : QRFM operates entirely on the chart's symbol and timeframe. It does not use request.security() or access external data sources. All calculations are self-contained, avoiding lookahead bias from higher-timeframe requests.
Deterministic Behavior : Given identical input parameters and price data, QRFM produces identical outputs. There are no random elements, probabilistic sampling, or time-of-day dependencies.
— Dskyz, Engineering precision. Trading coherence.
Supply and Demand Scanner Toolkit [TradingFinder]🔵 Introduction
The analytical system presented here is built upon a deep quantitative foundation designed to capture the dynamic behavior of supply and demand in live markets. At its core, it calculates continuously adaptive zones where institutional liquidity, volatility shifts, and momentum transitions converge. These zones are derived from a combination of a regression-based moving average, a long-period ATR, and Fibonacci expansion ratios, all working together to model real-time volatility, price momentum, and the underlying market imbalance.
In practice, this means that at any given moment, five primary bands and seven variable analytical zones are generated around price, representing different market states ranging from extreme overbought to extreme oversold.
Each band reacts dynamically to price volatility, recalibrating with every new candle, which allows the system to mirror the true, constantly changing structure of supply and demand. Every movement between these zones reflects a transition in the strength and dominance of buyers and sellers, a process referred to as volatility-driven price state transitions.
Traditional analytical models often rely on fixed or static indicators that cannot keep up with the rapid microstructural changes in modern markets. This system instead uses regression and smoothing logic to adapt on the fly. By combining a regression moving average with a smoothed moving average, the model calculates real-time trend direction, momentum flow, and trend strength.
When the regression average rises above the smoothed one, the system classifies the trend as bullish; when it falls below, bearish. This dual-layer structure not only helps confirm direction but also enables the automatic detection of critical structural shifts such as Break of Structure (BoS), Change of Character (CHoCH), and directional reversals.
Both the current trend (Live Trend) and projected future trend (Vision Trend) are calculated simultaneously across all available timeframes. This dual analysis allows traders to identify structural changes earlier and to recognize whether a trend is gaining or losing momentum.
In most conventional moving-average-based frameworks, trading signals are delayed because these models react to price rather than anticipate it. As a result, many buy or sell signals appear after the real move has already begun, leading to entries that contradict the current trend. This system eliminates that lag by employing a mean reversion trading model. Instead of waiting for crossovers, it observes how far price deviates from its statistical mean and reacts when that deviation begins to shrink, the moment when equilibrium forces reemerge.
This approach produces non-lagging, data-driven signals that appear at the exact moment price begins to revert toward balance. At the same time, traders can visually assess the market’s condition by observing the spacing, compression, or expansion of the dynamic bands, which represent volatility shifts and trend energy. Through this interaction, the trader can quickly gauge whether a trend is strengthening, losing power, or preparing for a reversal. In other words, the model provides both quantitative precision and intuitive visualization.
A unique visual element in this system is how candles are displayed during transitional states. When Live Trend and Vision Trend contradict each other, for instance, when the current trend is bullish but the projected trend turns bearish, candle bodies automatically appear as hollow.
These hollow candles act as visual alerts for zones of uncertainty or equilibrium between buyers and sellers, often preceding trend reversals, liquidity sweeps, or volatility compression phases. Traders quickly learn to interpret hollow candles as signals to pause, observe, or prepare for potential shifts rather than to act impulsively.
Signal generation in this model occurs when price reverts from extreme zones back toward neutrality. When price exits the strong overbought or strong oversold zones and reenters a milder area, the system produces a reversal signal that aligns with real-time market dynamics. To refine accuracy, these signals are confirmed through several filters, including momentum verification, volatility behavior, and smart money validation. This multi-layered signal logic significantly reduces false entries, helping traders avoid overreactions to temporary liquidity spikes and enhancing performance in volatility-driven markets.
On a broader level, the model supports full multi-timeframe analysis. It can analyze up to twenty symbols simultaneously, across multiple timeframes, to detect directional bias, correlation, and confluence. The result is a holistic map of market structure in real time, showing how each asset aligns or diverges from others and how lower timeframes fit into the macro trend. Variables such as Live Trend, Vision Trend, Directional Strength, and Zone Positioning combine to give a complete structural snapshot at any given moment.
Risk management is handled by an adaptive Trailing Stop Engine that continuously aligns with current volatility and price flow. It integrates pivot mapping with ATR-based calculations to dynamically adjust stop-loss levels as price evolves. The engine offers four adaptive modes, Grip, Flow, Drift, and Glide, each tailored to different levels of market volatility and trader risk tolerance. In visualization, the profit area between entry and stop-loss is shaded light green for long positions and light red for short positions. This design allows immediate recognition of active risk exposure and profit lock-in zones, all in real time.
Altogether, the combination of ATR Volatility Mapping, Fibonacci Band Calibration, Regression-Based Trend Engine, Dynamic Supply and Demand Equilibrium, Conflict Detection through Hollow Candles, Mean Reversion Signal Model, and Adaptive Trailing Stop forms a unified analytical system. It maps the market’s structure, identifies current and future trends, measures the real-time balance of buyers and sellers, and highlights optimal entry and exit points. The final result is higher analytical precision, improved risk control, and a clearer view of the true, data-defined market structure.
🔵 How to Use
Analyzing supply and demand in live financial markets is one of the most complex challenges traders face. Price rarely moves in a straight line; instead, it evolves through phases of expansion, compression, and redistribution. Many traders misinterpret these movements because the zones that appear strong or reactive at first glance often represent nothing more than temporary liquidity redistributions.
These areas, while visually convincing, may lose relevance quickly when volatility increases or when viewed from another timeframe. In high-volatility environments, traditional zone analysis becomes even more unreliable. Price may seem to respect a support or resistance level only to break through it a few candles later. This behavior creates false zones and misleading reversal points.
The key to filtering such movements lies in understanding the context, how volatility, momentum, and structural flow interact across different timeframes. A single timeframe can only tell part of the story. The market’s true structure emerges only when data is synchronized from macro to micro levels.
This is where multi-timeframe correlation becomes essential. Every timeframe offers a different lens through which supply and demand balance can be observed. For example, a trader might see a bullish setup on a 15-minute chart while the 4-hour chart is still showing a strong distribution phase. Without alignment between these layers, trades are easily positioned against the dominant liquidity flow. The model presented here solves this by processing all relevant timeframes simultaneously, allowing traders to see how short-term movements fit within higher-level structures.
Each market phase, whether accumulation, expansion, or reversion, carries a unique volatility fingerprint. The system tracks transitions in volatility regimes, momentum divergence, and structural breakouts to anticipate when a phase change is approaching. For instance, when volatility compresses and ATR readings narrow, it often signals an upcoming breakout or reversal. By monitoring these shifts in real time, the model helps the trader differentiate between liquidity grabs (temporary volatility spikes) and genuine structural changes.
Every supply-demand interaction within this system is adaptive rather than static. The zones continuously recalibrate based on live parameters such as price velocity, momentum distribution, and liquidity displacement. This adaptive structure ensures that the balance between buyers and sellers is represented accurately as market conditions evolve.
In practice, this allows the user to identify early signs of trend exhaustion, potential reversals, and continuation patterns long before traditional indicators would react.
In essence, successful supply and demand analysis requires moving beyond subjective interpretation toward data-driven decision-making.
Manual drawing of zones or relying solely on visual intuition can lead to inconsistent results, especially in fast-changing markets. By combining ATR-driven volatility mapping, mean reversion dynamics, and multi-timeframe alignment, this framework offers a clear, objective, and responsive model of how market forces actually operate. Each decision becomes grounded in measurable context, not assumptions.
The analytical interface is divided into two main sections : the visual chart framework and the scanner data table.
On the chart, five dynamic bands and seven analytical zones appear around price. These are calculated from ATR, regression moving average, and Fibonacci expansion ratios to define whether the market is overbought, oversold, or neutral. Each zone has distinct color coding, allowing traders to recognize the market state instantly without switching tools or indicators.
Price movement within these bands reveals more than just direction, it tells a story of volatility, liquidity flow, and market equilibrium. The upper zones typically indicate exhaustion of buying pressure, while lower zones highlight areas of overselling or potential recovery. The way price reacts near these boundaries can help determine whether a continuation or reversal is likely.
At the heart of the visualization are two layered trend components : Live Trend and Vision Trend.
The Live Trend shows the present market direction based on regression and smoothing logic, while the Vision Trend projects the probable future trajectory by analyzing slope deviation and momentum displacement. When these two align, the trader sees confirmation of market strength. When they diverge, candle bodies turn hollow, a simple yet powerful visual alert signaling hesitation, consolidation, or a possible turning point.
At the bottom of the interface, the Scanner Table organizes all analytical data into a structured display. Each row corresponds to a symbol and timeframe, showing the current Live Trend, Vision Trend, Directional Strength, Zone Position, and Signal Age. This table provides a real-time overview of all assets being tracked, showing which ones are trending, which are in reversal, and which are entering transition zones. By analyzing this table, traders can instantly identify correlation clusters, where multiple assets share the same trend direction, often a sign of broader market sentiment shifts.
The Scanner can simultaneously process multiple timeframes and up to twenty different assets, producing a panoramic market overview. This makes it easy to apply a top-down analytical workflow, starting with higher timeframe alignment, then drilling down into lower levels for execution. Instead of reacting to isolated signals, traders can see where confluence exists across structures and focus only on setups that align with overall market context.
The bands and their color coding make interpretation intuitive even for less experienced users. Darker shades correspond to extreme zones, typically where institutional orders are being absorbed or distributed, while lighter zones mark mild overbought or oversold conditions. When price transitions from an outer extreme zone into a milder region, a signal condition becomes active. At this point, traders can cross-check the event using momentum and volatility filters before acting.
The trailing stop section of the display adds another critical dimension to decision-making. It visualizes stop levels as continuously updating colored lines that follow price movement. These levels are calculated dynamically through pivot mapping and ATR-based sensitivity. The shaded area between the entry point and active stop loss (light green for buys, light red for sells) gives traders immediate insight into how much of the move is currently secured as profit and how much remains exposed. This simple visual cue transforms risk management from a static calculation into a living, responsive process.
All components of this analytical system are fully customizable. Users can adjust signal type, calculation periods, smoothing intensity, and band sensitivity to match their trading style. For example, a scalper might shorten ATR and MA periods to capture rapid fluctuations, while a swing trader might increase them for smoother and more stable readings. Because every element responds to live data, even small adjustments lead to meaningful changes in how the system behaves.
When combined with the scanner’s data table, these features enable a top-down analytical workflow, one where decisions are not made from isolated indicators but from a complete, multi-dimensional understanding of market structure. The result is a system that supports both reactive precision and proactive market awareness.
🟣 Long Signal
A long signal is generated when price begins to rebound from deeply oversold conditions. More precisely, when price enters the strong or extreme oversold zones and then returns into the mild oversold region, the system identifies the start of a mean reversion phase. This transition is not based on subjective interpretation but on mathematical deviation from equilibrium, meaning that selling pressure has been exhausted and liquidity begins to shift toward buyers.
Unlike delayed signals that depend on moving average crossovers or oscillators, this signal appears the moment price starts moving back toward balance. The model’s mean reversion logic detects when volatility contraction and momentum realignment coincide, producing a non-lagging entry condition.
In this situation, traders can visually confirm the setup by observing the spacing and curvature of the lower bands. When the lower volatility bands begin to flatten or curve upward while ATR readings stabilize, it indicates that the market is transitioning from distribution to accumulation.
The strength and quality of each long signal depend on the configuration of trend variables. When both Live Trend and Vision Trend are bullish, the probability of continuation is significantly higher. This alignment suggests that the market’s short-term momentum is supported by long-term structure. On the other hand, when the two trends contradict each other, which the chart highlights with hollow candles, it represents a temporary phase of indecision or conflicting forces.
In these moments, traders are encouraged to monitor volatility compression and observe whether the next few candles confirm a real breakout or revert back to range conditions.
Additional confirmation can be derived from observing the slope of the regression moving average and the magnitude of ATR fluctuations. A steeper upward slope combined with decreasing volatility indicates stronger bullish intent. In contrast, if ATR expands while price remains flat, it signals potential traps or fakeouts driven by short-term liquidity grabs.
Valid long signals often emerge near the end of volatility compression periods or immediately after liquidity sweeps around major lows. These are points where large players typically absorb remaining sell orders before initiating upward movement. Once the long condition triggers, the system automatically calculates the initial stop loss using a combination of recent pivots and ATR range. From that point, the Trailing Stop Engine dynamically adjusts as price rises, maintaining optimal distance from the entry point and locking in profits without restricting trade potential.
For educational context, consider a situation where the market has been trending downward for several sessions, and the ATR value begins to decline, showing that volatility is compressing. As price touches the lower extreme zone and reverses into the mild oversold region while Live Trend starts turning positive, this creates an ideal long condition. A new cycle of expansion often begins right after such compression, and the system captures that early shift automatically.
🟣 Short Signal
A short signal represents the opposite scenario, a point where buying momentum weakens after a strong rally, and price begins to revert downward toward equilibrium. When price exits the strong or extreme overbought zones and moves into the mild overbought region, the model detects the start of a bearish mean reversion phase.
Here too, the signal appears without delay, as it is based on the real-time relationship between price and its volatility boundaries rather than on indicator crossovers.
The system identifies these short conditions when upward momentum shows visible fatigue in the volatility bands. The upper bands start to flatten or turn downward while the regression slope begins to lose angle. This is often accompanied by rising ATR readings, showing an expansion in volatility that reflects distribution rather than continuation.
The quality of the short signal is strongly influenced by the interaction between the two trend layers. When both Live Trend and Vision Trend point downward, the likelihood of sustained bearish continuation increases dramatically. However, if they diverge, candle bodies turn hollow, clearly marking zones of conflict or hesitation. These phases often coincide with the end of a bullish impulse wave and the start of an early correction.
A practical example can illustrate this clearly. Imagine a market that has been trending upward for several days with expanding volatility. When price pushes into the extreme overbought zone and starts pulling back into the mild region, the system interprets it as the first sign of distribution. If at the same time the regression moving average flattens and ATR begins to rise, it strongly suggests that institutional participants are taking profit. The generated short signal allows the trader to position early in anticipation of the downward reversion that follows.
The initial stop loss for short trades is calculated above the most recent pivot high, ensuring logical protection based on the structural context. From there, the Trailing Stop Engine automatically tracks the price movement downward, tightening stops as volatility decreases or expanding them during sharp swings to avoid premature exits.
The engine’s dynamic nature makes it suitable for both aggressive scalpers and patient swing traders. Scalpers can set the trailing sensitivity to “Grip” mode for tighter control, while swing traders can use “Glide” mode to capture larger portions of the trend.
Most short signals form right after volatility expansion or liquidity grabs around major highs, classic exhaustion areas where momentum divergence becomes evident. The combination of visual cues (upper band curvature, hollow candles, ATR spikes) provides traders with multiple layers of confirmation before taking action.
In both long and short scenarios, this analytical system replaces emotional decision-making with structured interpretation. By translating volatility, momentum, and price positioning into clear contextual patterns, it empowers the trader to see where reversals are forming in real time rather than guessing after the move has started.
🔵 Setting
🟣 Logical Setting
Channel Period : The main channel period that defines the base moving average used to calculate the central line of the bands. Higher values create a smoother and longer-term structure, while lower values increase short-term sensitivity and faster reactions.
Channel Coefficient Period : The ATR period used to measure volatility for determining the channel width. Higher values provide greater channel stability and reduce reactions to short-term market noise.
Channel Coefficient : The ATR sensitivity factor that defines the distance of the bands from the central average. A higher coefficient widens the bands and increases the probability of detecting overbought or oversold conditions earlier.
Band Smooth Period : The smoothing period applied to the bands to filter minor price noise. Lower values produce quicker reactions to price changes, while higher values create smoother and more stable lines.
Trend Period : The period used in the regression moving average calculation to identify overall trend direction. Shorter values highlight faster trend shifts, while longer values emphasize broader market trends.
Trend Smooth Period : The smoothing period for the regression trend to reduce volatility and confirm the dominant market direction. This setting helps to better distinguish between corrective and continuation phases.
Signals Gap : The time interval between generated signals to prevent consecutive signal clustering. A higher value strengthens the temporal filter and produces more selective and refined signals.
Bars to Calculate : Defines the number of historical candles used in calculations. Limiting this value optimizes script performance and reduces processing load, especially when multiple symbols or timeframes are analyzed simultaneously. Higher values increase analytical depth by including more historical data, while lower values improve responsiveness and reduce potential lag during live chart updates.
Trailing Stop : Enables or disables the dynamic trailing stop engine. When active, the system automatically adjusts stop loss levels based on live volatility and price structure, maintaining alignment with market flow and trend direction.
Trailing Stop Level : Defines the operational mode of the trailing stop engine with four adaptive styles: Grip, Flow, Drift, and Glide. Grip offers tight stop management for scalping and high precision setups, while Glide allows wider flexibility for swing or long-term trades.
Trailing Stop Noise Filter : Applies an additional filtering layer that smooths minor fluctuations and prevents unnecessary stop adjustments caused by short-term market noise or micro volatility.
🟣 Display Settings
Show Trend on Candles : Displays the current trend direction directly on price candles by applying dynamic color coding. When Live Trend and Vision Trend align bullish, candles appear in green tones, while bearish alignment displays in red. If the two trends conflict, candle bodies turn hollow, marking a Trend Conflict Zone that signals potential indecision or upcoming reversal. This feature provides instant visual confirmation of market direction without the need for external indicators
Table on Chart : Allows users to choose whether the analytical table appears directly over the chart or positioned below it. This gives full control over screen layout based on personal workspace preference and chart design.
Number of Symbols : Controls how many symbols are displayed in the screener table, adjustable from 10 up to 20 in steps of 2. This flexibility helps balance between detailed screening and visual clarity on different screen sizes.
Table Mode : Defines how the screener table is visually arranged.
Basic Mode : Displays all symbols in a single column for vertical readability.
Extended Mode : Arranges symbols side by side in pairs to create a more compact and space-efficient layout.
Table Size : Adjusts the visual scaling of the table. Available options include auto, tiny, small, normal, large, and huge, allowing traders to optimize table visibility based on their screen resolution and preferred chart density.
Table Position : Determines the exact placement of the screener table within the chart interface. Users can select from nine available alignments combining top, middle, and bottom vertically with left, center, and right horizontally.
🟣 Symbol Settings
Each of the 10 available symbol slots includes a full range of adjustable parameters for personalized analysis.
Symbol : Defines or selects the asset to be tracked in the screener, such as XAUUSD, BTCUSD, or EURUSD. This enables multi-asset scanning across different markets including forex, commodities, indices, and crypto.
Timeframe : Sets the specific timeframe for analysis for each selected symbol. Examples include 15 minutes, 1 hour (60), 4 hours (240), or 1 day (1D). This flexibility ensures precise control over how each asset is monitored within the multi-timeframe structure.
🟣 Alert Settings
Alert : Enables alerts for AAS.
Message Frequency : Determines the frequency of alerts. Options include 'All' (every function call), 'Once Per Bar' (first call within the bar), and 'Once Per Bar Close' (final script execution of the real-time bar). Default is 'Once per Bar'.
Show Alert Time by Time Zone : Configures the time zone for alert messages. Default is 'UTC'.
🔵 Conclusion
Understanding financial markets requires more than indicators, it demands a framework that captures the interaction of price, volatility, and structure in real time. This analytical system achieves that by combining mean reversion logic, volatility mapping, and dynamic supply and demand modeling into an adaptive, data-driven environment. Its computational bands and trend layers visualize market intent, showing when momentum is strengthening, fading, or preparing to shift.
Each signal, derived from statistical equilibrium rather than delayed indicators, reflects the exact moment when the balance between buyers and sellers changes. Variables like Live Trend, Vision Trend, Directional Strength, and ATR-based Volatility Context help traders assess signal quality and alignment across multiple timeframes. The system blends automation with human interpretation, preserving macro-to-micro consistency and enabling confident entries, exits, and stop management through its adaptive Trailing Stop Engine.
Every component, from color-coded zones to hollow candles, forms part of a broader narrative that teaches traders to read the market’s language instead of reacting to it. Built on self-correcting analysis, the framework continuously recalibrates with live data. By transforming volatility, liquidity, and price behavior into structured insight, it empowers traders to move from reaction to prediction, a living ecosystem that evolves with both the market and the trader.
Mean Reversion Trading V1Overview
This is a simple mean reversion strategy that combines RSI, Keltner Channels, and MACD Histograms to predict reversals. Current parameters were optimized for NASDAQ 15M and performance varies depending on asset. The strategy can be optimized for specific asset and timeframe.
How it works
Long Entry (All must be true):
1. RSI < Lower Threshold
2. Close < Lower KC Band
3. MACD Histogram > 0 and rising
4. No open trades
Short Entry (All must be true):
1. RSI > Upper Threshold
2. Close > Upper KC Band
3. MACD Histogram < 0 and falling
4. No open trades
Long Exit:
1. Stop Loss: Average position size x ( 1 - SL percent)
2. Take Profit: Average position size x ( 1 + TP percent)
3. MACD Histogram crosses below zero
Short Exit:
1. Stop Loss: Average position size x ( 1 + SL percent)
2. Take Profit: Average position size x ( 1 - TP percent)
3. MACD Histogram crosses above zero
Settings and parameters are explained in the tooltips.
Important
Initial capital is set as 100,000 by default and 100 percent equity is used for trades
SerenitySerenity: Find Serenity in Market Chaos
Every trader starts somewhere, often diving headfirst into the markets with charts cluttered by layers of lines, oscillators, and signals. It's easy to get caught up testing one approach after another—adding more tools, tweaking strategies, chasing the latest idea that promises clarity. The cycle repeats: overload the setup, second-guess every move, switch things up when results don't click right away. Over time, it becomes clear that jumping between setups rarely builds the consistency needed to navigate the ups and downs.
That's where the idea for Serenity came from—a way to step back from the noise and focus on a structured approach that encourages sticking to a plan and building consistency.
Built on the philosophy that no single perspective captures the full picture, Serenity offers two complementary views—Skye and Shade—to provide a more rounded interpretation of the market. Serenity’s logic builds on core market concepts—trend, momentum, and volume—combining them through carefully structured conditions that work across multiple timeframes. By focusing on where these elements align, it highlights key moments in the market while filtering out noise, providing clear and meaningful visual cues for analysis.
How Serenity Works
Serenity is designed to cut through market noise and simplify complex price action. By combining public, simple, everyday indicators and concepts into a progressive decision hierarchy of multi-layered signals, it removes ambiguity and leaves no room for guesswork—providing traders with straightforward, easy-to-read visual cues for decision-making.
Serenity's foundation starts with a core trend bias, built around two key concepts that set the stage for all signals:
Volatility-adjusted trend boundary (ATR-based) defines real-time directional bias using a dynamic channel that expands in choppy markets and tightens in calm ones — it only shifts when price proves real strength or weakness. This provides the overall market context, ensuring signals are in harmony with the prevailing direction.
Four nested volume-weighted price zones create progressive support levels—each acting as a filter for signal quality. These zones build on the trend boundary, requiring price to prove itself at increasing levels of conviction before triggering visuals.
Skye: Agile Momentum
Skye focuses on the faster side of market behavior. It reacts quickly to changes in trend and momentum, making it well-suited for traders who prefer agility and earlier entries. Skye thrives in environments where price moves sharply and timing matters.
Skye activates only when five independent filters align:
Momentum reversal — fast oscillator crosses above slow.
Volume surge — confirms participation strength, signaling that fresh momentum is backed by meaningful activity rather than isolated price movement.
Zone break — price closes above the earliest volume-weighted level.
Trend support — price remains above the dynamic channel.
Directional strength — positive momentum index rises above a required minimum.
This multi-condition gate eliminates single-trigger noise.
Shade: Structural Conviction Filter
Shade takes a more conservative stance, emphasizing broader confirmations and requires sustained dominance across four core pillars:
Long-term structure — price holds above deep volume-weighted trend.
Directional control — one side clearly dominates.
Zone hold — price sustains in mid or deep confluence level.
Volume trend — reveals sustained directional flow, confirming underlying market commitment behind the trend.
Each pillar must confirm — no partial signals.
Twilight & Eclipse: Reversal Cues
Twilight Reversal
Twilight draws attention to areas where upward momentum might begin to build. It serves as a visual cue for zones where buying interest could be forming, helping you focus on potential opportunities for a positive shift in market behavior.
Eclipse Reversal
Eclipse highlights areas where downward pressure may be emerging. It marks zones where sellers could be gaining influence, guiding your attention to potential points where market strength may start to wane.
These markers appear using:
Smoothed divergence — oscillator deviates from price at extremes.
Trend peak — strength index rolls over from overbought/oversold.
Volume opposition — surge against price direction.
What Makes Serenity Unique
What sets Serenity apart is not which concepts or indicators are used—but how they are applied together. Serenity employs a progressive decision hierarchy of multi-layered signals to identify meaningful confluences across trend, momentum, volume, and structure.
Instead of using standard setups that rely on default indicator inputs, Serenity uses carefully chosen, non-standard tailored inputs, ensuring that familiar indicators work together in a unique, confluence-driven way—offering structured context and visually intuitive cues to support clearer decision-making.
ORB High/LowOpening Range High/Low (ORB) Indicator
This indicator plots the Opening Range High and Low (ORB) for a user-defined time window on your chart. It helps traders identify the initial price range after market open, which is commonly used for breakout and trend strategies.
Key Features:
Custom OR Window: Set your own start and end time for the Opening Range. Default is 08:30–08:45 CST.
ORB High/Low Lines: Automatically plots the high and low of the opening range.
Sticky Labels: “ORB High” and “ORB Low” labels follow the lines across the chart for easy visibility.
Shaded Box: Highlights the opening range area with customizable color and opacity.
Custom Colors: Separate colors for lines, shading, and labels, allowing for full chart customization.
Stop Time: Optionally stop plotting OR lines after a specific time.
Daily Reset: Automatically resets at the start of a new day, preventing carryover from the previous session.
Usage:
Identify breakout levels: watch for price to break above ORB High or below ORB Low.
Gauge early market volatility and momentum.
Combine with other technical tools for trend confirmation or intraday strategies.
Ideal For: Intraday and day traders who rely on the first 15 minutes of the trading session to identify key levels and potential breakout points.
NY Open 5 minute Range (5m Box Extended)Draws a box around the first 5 minute candle for the New York session.
Curvature Tensor Pivots🌀 Curvature Tensor Pivots
Curvature Tensor Pivots: Geometric Pivot Detection Through Differential Geometry
Curvature Tensor Pivots applies mathematical differential geometry to market price analysis, identifying pivots by measuring how price trajectories bend through space. Unlike traditional pivot indicators that rely solely on price highs and lows, this system calculates the actual geometric curvature of price paths and detects inflection points where the curvature changes sign or magnitude—the mathematical hallmarks of directional transitions.
The indicator combines three components: precise curvature measurement using second-derivative calculus, tensor weighting that multiplies curvature by volatility and momentum, and a tension-based prediction system that identifies compression before pivots form. This creates a forward-looking pivot detector with built-in confirmation mechanics.
What Makes This Original
Pure Mathematical Foundation
This indicator implements the classical differential geometry curvature formula κ = |y''| / (1 + y'²)^(3/2), which measures how sharply a curve bends at any given point. In price analysis, high curvature indicates sharp directional changes (active pivots), while curvature approaching zero indicates straight-line motion (inflection points forming). This mathematical approach is fundamentally different from pattern recognition or statistical pivots—it measures the actual geometry of price movement.
Tensor Weighting System
The core innovation is the tensor scoring mechanism, which multiplies geometric curvature by two market-state variables: volatility (ATR expansion/compression) and momentum (rate of change strength). This creates a multi-dimensional strength metric that distinguishes between meaningful pivots and noise. A high tensor score means high curvature is occurring during significant volatility with strong momentum—a genuine structural turning point. Low tensor scores during high curvature indicate choppy, low-conviction moves.
Tension-Based Prediction
The system calculates tension as the inverse of curvature (Tension = 1 - κ). When curvature is low, tension is high, indicating price is moving in a straight line and approaching an inflection point where it must curve. The tension cloud visualizes this compression, tightening before pivots form and expanding after they complete. This provides anticipatory signals rather than purely reactive confirmation.
Integrated Confirmation Architecture
Rather than simply flagging high curvature, the system requires convergence of four elements: geometric inflection detection (sign changes in second derivative or curvature extrema), traditional price structure pivots (pivot highs/lows), tensor strength above threshold, and minimum spacing between signals. This multi-layer confirmation prevents false signals while maintaining sensitivity to genuine turning points.
This is not a combination of existing indicators—it's an application of pure mathematical concepts (differential calculus and tensor algebra) to market geometry, creating a unique analytical framework.
Core Components and How They Work Together
1. Differential Geometry Engine
The foundation is calculus-based trajectory analysis. The system treats price as a function y(t) and calculates:
First derivative (y'): The slope of the price trajectory, representing directional velocity
Second derivative (y''): The acceleration of slope change, representing how quickly direction is shifting
Curvature (κ): The normalized geometric bend, calculated using the formula κ = |y''| / (1 + y'²)^(3/2)
This curvature value is then normalized to a 0-1 range using adaptive statistical bounds (mean ± 2 standard deviations over a rolling window). High κ values indicate sharp bends (active pivots), while κ approaching zero indicates inflection points where the trajectory is straightening before changing concavity.
2. Tensor Weighting Components
The raw curvature is weighted by market dynamics to create the tensor score:
Volatility Component: Calculated as current ATR divided by baseline ATR (smoothed average). Values above 1.0 indicate expansion (higher conviction moves), while values below 1.0 indicate compression (lower reliability). This ensures pivots forming during volatile periods receive higher scores than those in quiet conditions.
Momentum Component: Measured using rate of change (ROC) strength normalized by recent average. High momentum indicates sustained directional pressure, confirming that curvature changes represent genuine trend shifts rather than noise.
Tensor Score Fusion: The final tensor score = κ × Volatility × Momentum × Direction × Gain. This creates a directional strength metric ranging from -1 (strong bearish curvature) to +1 (strong bullish curvature). The magnitude represents conviction, while the sign represents direction.
These components work together by filtering geometric signals through market-state context. A high curvature reading during low volatility and weak momentum produces a low tensor score (likely noise), while the same curvature during expansion and strong momentum produces a high tensor score (likely genuine pivot).
3. Inflection Point Detection System
Inflection points occur where the second derivative changes sign (concave to convex or vice versa) or where curvature reaches local extrema. The system detects these through multiple methods:
Sign change detection: When y'' crosses zero, the price trajectory is transitioning from curving upward to downward (or vice versa)
Curvature extrema: When κ reaches a local maximum or minimum, indicating peak bend intensity
Near-zero curvature: When κ falls below an adaptive threshold, indicating straight-line motion before a directional change
These geometric signals are combined with traditional pivot detection (pivot highs and lows using configurable lookback/lookahead periods) to create confirmed inflection zones. The geometric math identifies WHERE inflections are forming, while price structure confirms WHEN they've completed.
4. Tension Cloud Prediction
Tension is calculated as 1 - κ, creating an inverse relationship where low curvature produces high tension. This represents the "straightness" of price trajectory—when price moves in a straight line, it's building tension that must eventually release through a curved pivot.
The tension cloud width adapts to this tension value: it tightens (narrows) when curvature is low and tension is high, providing visual warning that a pivot is forming. After the pivot completes and curvature increases, tension drops and the cloud expands, confirming the turn.
This creates a leading indicator component within the system: watch for the cloud to compress, then wait for the pivot marker and tensor direction confirmation to enter trades.
5. Multi-Layer Visualization System
The visual components work hierarchically:
Curvature ribbons (foundation): Width expands with curvature magnitude, color shifts with tensor direction (green bullish, red bearish)
Tension cloud (prediction): Purple overlay that compresses before pivots and expands after
Tensor waves (context): Harmonic oscillating layers driven by three phase accumulators (curvature, tensor magnitude, volatility), creating visual texture that becomes erratic before pivots and smooth during trends
Inflection zones (timing): Golden background highlighting when geometric conditions indicate inflection points forming
Pivot markers (confirmation): Triangles marking confirmed pivots where geometric inflection + price structure + tensor strength all align
Each layer adds information without redundancy: ribbons show current state, tension shows prediction, waves show regime character, zones show geometric timing, and markers show confirmed entries.
Calculation Methodology
Phase 1 - Derivative Calculations
Price is normalized by dividing by a 50-period moving average to improve numerical stability. The first derivative is calculated as the bar-to-bar change, then smoothed using a configurable smoothing length (default 3 bars) to reduce noise while preserving structure.
The second derivative is calculated as the bar-to-bar change in the first derivative, also smoothed. This represents the acceleration of directional change—positive values indicate price is curving upward (concave up), negative values indicate curving downward (concave down).
Phase 2 - Curvature Formula
The classical curvature formula is applied:
Calculate y'² (first derivative squared)
Calculate (1 + y'²)^1.5 as the denominator
Divide |y''| by this denominator to get raw curvature κ
This formula ensures curvature is properly normalized regardless of the steepness of the trajectory. A vertical line with high slope (large y') can still have low curvature (straight), while a gradual slope with changing direction produces high curvature (curved).
The raw curvature is then normalized to 0-1 range using adaptive bounds (rolling mean ± 2 standard deviations), allowing the system to adapt to different market volatility regimes.
Phase 3 - Tensor Weighting
ATR is calculated over the specified volatility length (default 14). Current ATR is divided by smoothed ATR to create the volatility ratio. Momentum is calculated as the rate of change over the momentum length (default 10), normalized by recent average ROC.
The tensor score is computed as: Curvature × Volatility × Momentum × Tensor Gain × Direction Sign
This creates the final directional strength metric used for ribbon coloring and signal generation.
Phase 4 - Inflection Detection
Multiple conditions are evaluated simultaneously:
Second derivative sign changes (y'' × y'' < 0)
Curvature local maxima (previous bar κ > current bar κ AND previous bar κ > two bars ago κ)
Curvature local minima (opposite condition)
Low curvature threshold (current κ < adaptive threshold)
Any of these conditions triggers inflection zone highlighting. For confirmed pivot signals, inflection detection must coincide with traditional pivot highs/lows AND tensor magnitude must exceed threshold AND minimum spacing since last signal must be satisfied.
Phase 5 - Tension Calculation
Tension = 1 - κ (smoothed)
This inverse relationship creates the compression/expansion dynamic. When curvature approaches zero (straight trajectory), tension approaches 1 (maximum compression). When curvature is high (sharp bend), tension approaches zero (released).
The tension cloud bands are calculated as: Basis ± (Ribbon Width × Tension)
This creates the visual tightening effect before pivots.
Phase 6 - Wave Generation
Three phase accumulators are maintained:
Phase 1: Accumulates based on curvature magnitude (0.1 × κ per bar)
Phase 2: Accumulates based on tensor magnitude (0.15 × tensor per bar)
Phase 3: Accumulates based on volatility (0.08 × volatility per bar)
For each wave layer (2-8 configurable), a unique frequency is used (layer number × 0.6). The wave offset is calculated as:
Amplitude × (sin(phase1 × frequency) × 0.4 + sin(phase2 × frequency × 1.2) × 0.35 + sin(phase3 × frequency × 0.8) × 0.25)
This creates complex harmonic motion that reflects the interplay of curvature, strength, and volatility. When these components are aligned, waves are smooth; when misaligned (pre-pivot conditions), waves become chaotic.
All calculations are deterministic and execute on closed bars only—there is no repainting.
How to Use This Indicator
Setup and Configuration
Apply the indicator to your chart with default settings initially
Enable the main dashboard (top right recommended) to monitor curvature, tensor, and tension metrics in real-time
Enable the curvature matrix (bottom right) to see historical patterns in the heatmap
Choose your ribbon mode: "Dual Ribbon" shows both bullish and bearish zones, "Tension Cloud" emphasizes the compression zones
For your first session, observe how the tension cloud behaves before confirmed pivots—you'll notice it consistently tightens (narrows) before pivot markers appear, then expands after.
Signal Interpretation
High Pivot (Bearish) - Red triangle above price:
Occurs when price makes a pivot high (local maximum)
Second derivative is negative (concave down curvature)
Tensor magnitude exceeds threshold (strong confirmation)
Minimum spacing requirement met (noise filter)
Interpretation: A confirmed bearish inflection point has formed. Price trajectory has curved over and is transitioning from upward to downward movement.
Low Pivot (Bullish) - Blue triangle below price:
Occurs when price makes a pivot low (local minimum)
Second derivative is positive (concave up curvature)
Tensor magnitude exceeds threshold
Spacing requirement met
Interpretation: A confirmed bullish inflection point has formed. Price trajectory has curved upward and is transitioning from downward to upward movement.
Dashboard Metrics
κ (Curvature): 0-100% reading. Above 70% = sharp active pivot, 40-70% = moderate curve, below 40% = gentle or approaching inflection
Tensor: Directional strength. Arrow indicates bias (⬆ bullish, ⬇ bearish, ⬌ neutral). Magnitude indicates conviction.
Volatility: Current ATR expansion state. Above 70% = high volatility (pivots more significant), below 40% = compressed (pivots less reliable)
Momentum: Directional strength. High values confirm trend continuation, low values suggest exhaustion
Tension: 0-100% reading. Above 70% = pivot forming soon (high compression), below 40% = pivot recently completed (expanded)
State: Real-time regime classification:
"🟢 STABLE" = normal trending conditions
"🟡 TENSION" = pivot forming (high compression)
"🔴 HIGH κ" = active sharp pivot in progress
"⚠ INFLECTION" = geometric inflection zone (critical transition)
Curvature Matrix Heatmap
The matrix shows the last 30 bars (configurable 10-100) of historical data across five metrics:
κ row: Curvature evolution (green = low, yellow = moderate, red = high)
Tension row: Purple intensity shows compression building
Tensor row: Strength evolution (green = strong, yellow = moderate, red = weak)
Volatility row: Expansion state
Momentum row: Directional conviction
Pattern recognition: Look for purple clustering in the tension row followed by red spikes in the κ row—this shows compression → release pivot sequence.
Trading Workflow
Step 1 - Monitor Tension:
Watch the tension cloud and dashboard tension metric. When tension rises above 60-70% and the cloud visibly tightens, a pivot is building. The matrix will show purple bands clustering.
Step 2 - Identify Inflection Zone:
Wait for the golden background glow (inflection zone) to appear. This indicates the geometric conditions are met: curvature is approaching zero, second derivative is near sign change, or curvature extrema detected. The dashboard state will show "⚠ INFLECTION ZONE".
Step 3 - Confirm Direction:
Check the tensor arrow in the dashboard:
⬆ (bullish tensor) = expect bullish pivot
⬇ (bearish tensor) = expect bearish pivot
Also verify the y'' status in the dashboard:
"🔵↑ Concave Up" = bullish curvature forming
"🔴↓ Concave Down" = bearish curvature forming
Step 4 - Wait for Pivot Marker:
Do not enter on inflection zones alone—wait for the confirmed pivot marker (triangle). This ensures all confirmation layers have aligned: geometric inflection + price structure pivot + tensor strength + spacing filter.
Step 5 - Execute Entry:
Long entry: Blue triangle below price + ⬆ tensor + tension releasing (dropping)
Short entry: Red triangle above price + ⬇ tensor + tension releasing
Step 6 - Manage Risk:
Initial stop: Place beyond the opposite ribbon edge plus one ATR buffer
Trailing stop: Follow the ribbon edge (basis ± adaptive width) as curvature sustains in your direction
Exit signal: If tension spikes again quickly (another inflection forming), consider taking profit—the trend may be reversing
Best Practices
Use multiple timeframe confirmation: Check that higher timeframe tensor aligns with your trade direction
Respect the spacing filter: If a pivot just fired, wait for minimum spacing before taking another signal
Distinguish regime: In "🔴 HIGH κ" state (choppy), reduce position size; in "🟢 STABLE" state, full confidence
Combine with support/resistance: Pivots near key levels have higher probability
Watch particle density: Clustering of particles indicates rising curvature intensity
Observe wave texture: Smooth flowing waves = trending environment (pivots are reversals); chaotic erratic waves = reversal environment (pivots are trend starts)
Ideal Market Conditions
Best Performance
Liquid markets with clear swing structure (forex majors, large-cap stocks, major indices)
Timeframes from 15-minute to daily (the system adapts across timeframes)
Markets with periodic swings and clear directional phases (where geometric curvature is meaningful)
Trending markets with consolidation phases (where tension builds before breakouts)
Challenging Conditions
Extremely choppy/sideways markets for extended periods (high curvature but low tensor magnitude—system will reduce signals appropriately)
Very low liquidity instruments (erratic price action creates false geometric signals)
Ultra-low timeframes (1-minute or below) where spread and noise dominate structure
Markets in deep consolidation (the system will show high tension but no clean pivot confirmation)
The indicator is designed to adapt: in poor conditions, tensor scores remain low and signals reduce naturally. In optimal conditions, tension compression → inflection → pivot confirmation sequences occur cleanly.
Parameter Optimization by Trading Style
Scalping (5-15 Minute Charts)
Curvature Window: 3-5 (faster response)
Curvature Smoothing: 2 (minimal lag)
Volatility Length: 10-14
Momentum Length: 8-10
Tensor Gain: 1.2-1.5 (moderate sensitivity)
Inflection Threshold: 0.10-0.15 (more sensitive)
Min Pivot Spacing: 3-5 bars
Pivot Mode: Aggressive
Ribbon Mode: Dual Ribbon (clearer entries)
Day Trading (15-60 Minute Charts)
Curvature Window: 5 (default)
Curvature Smoothing: 3 (balanced)
Volatility Length: 14
Momentum Length: 10
Tensor Gain: 1.5 (default)
Inflection Threshold: 0.15 (default)
Min Pivot Spacing: 5-8 bars
Pivot Mode: Normal or Adaptive
Ribbon Mode: Dual Ribbon
Swing Trading (4-Hour to Daily Charts)
Curvature Window: 7-10 (smoother)
Curvature Smoothing: 4-5 (noise reduction)
Volatility Length: 20-30
Momentum Length: 14-20
Tensor Gain: 1.8-2.5 (higher conviction requirement)
Inflection Threshold: 0.20-0.30 (more selective)
Min Pivot Spacing: 8-12 bars
Pivot Mode: Conservative
Ribbon Mode: Tension Cloud (focus on compression zones)
Performance Optimization
If you experience lag on lower-end systems:
Reduce Wave Layers: 4 → 2 (50% reduction in calculations)
Lower Particle Density: 3 → 1 (66% reduction in label creation)
Decrease Matrix History: 30 → 15 bars (50% reduction in table size)
Disable Tensor Waves entirely if not needed for your trading
Important Disclaimers
- This indicator is a technical analysis tool designed to identify potential pivot points through mathematical analysis of price trajectory geometry. It should not be used as a standalone trading system. Always combine with proper risk management, position sizing, and additional confirmation methods (support/resistance, volume analysis, multi-timeframe alignment).
- The curvature and tensor calculations are deterministic mathematical formulas applied to historical price data—they do not predict future price movements with certainty. Past geometric patterns do not guarantee future pivot behavior. The tension-based prediction system identifies conditions where pivots are likely to form based on trajectory straightness, but market conditions can change rapidly.
- All trading involves risk. Use appropriate stop losses and never risk more than you can afford to lose. The signal spacing filters and tensor confirmation layers are designed to reduce noise, but no indicator can eliminate false signals entirely.
This system is most effective when combined with sound trading principles, market context awareness, and disciplined execution.
Technical Notes
All calculations execute on closed bars only (no repainting)
Lookback functions limited to 5000 bars maximum
Arrays are fixed-size (waves) or hard-capped (particles at 80 labels)
Dashboard and matrix update only on the last bar to minimize computational load
Particle generation throttled to every 2 bars
Phase accumulators use modulo operations to prevent overflow
Statistical normalization (mean ± 2σ) automatically adapts to different volatility regimes
— Dskyz, Trade with insight. Trade with anticipation.
EXTPO TRENDIndicator designed for traders who prefer quick scalping or day trading.
Applicable to timeframes below M15.
Currently, I’m using it on BTC M1.
Note:
When the status is Buy, only buy signals will appear.
When the status is Sell, only sell signals will appear.
When the status is Off, no signals will appear because one of the entry conditions is not met.
Luxy BIG beautiful Dynamic ORBThis is an advanced Opening Range Breakout (ORB) indicator that tracks price breakouts from the first 5, 15, 30, and 60 minutes of the trading session. It provides complete trade management including entry signals, stop-loss placement, take-profit targets, and position sizing calculations.
The ORB strategy is based on the concept that the opening range of a trading session often acts as support/resistance, and breakouts from this range tend to lead to significant moves.
What Makes This Different?
Most ORB indicators simply draw horizontal lines and leave you to figure out the rest. This indicator goes several steps further:
Multi-Stage Tracking
Instead of just one ORB timeframe, this tracks FOUR simultaneously (5min, 15min, 30min, 60min). Each stage builds on the previous one, giving you multiple trading opportunities throughout the session.
Active Trade Management
When a breakout occurs, the indicator automatically calculates and displays entry price, stop-loss, and multiple take-profit targets. These lines extend forward and update in real-time until the trade completes.
Cycle Detection
Unlike indicators that only show the first breakout, this tracks the complete cycle: Breakout → Retest → Re-breakout. You can see when price returns to test the ORB level after breaking out (potential re-entry).
Failed Breakout Warning
If price breaks out but quickly returns inside the range (within a few bars), the label changes to "FAILED BREAK" - warning you to exit or avoid the trade.
Position Sizing Calculator
Built-in risk management that tells you exactly how many shares to buy based on your account size and risk tolerance. No more guessing or manual calculations.
Advanced Filtering
Optional filters for volume confirmation, trend alignment, and Fair Value Gaps (FVG) to reduce false signals and improve win rate.
Core Features Explained
### 1. Multi-Stage ORB Levels
The indicator builds four separate Opening Range levels:
ORB 5 - First 5 minutes (fastest signals, most volatile)
ORB 15 - First 15 minutes (balanced, most popular)
ORB 30 - First 30 minutes (slower, more reliable)
ORB 60 - First 60 minutes (slowest, most confirmed)
Each level is drawn as a horizontal range on your chart. As time progresses, the ranges expand to include more price action. You can enable or disable any stage and assign custom colors to each.
How it works: During the opening minutes, the indicator tracks the highest high and lowest low. Once the time period completes, those levels become your ORB high and low for that stage.
### 2. Breakout Detection
When price closes outside the ORB range, a label appears:
BREAK UP (green label above price) - Price closed above ORB High
BREAK DOWN (red label below price) - Price closed below ORB Low
The label shows which ORB stage triggered (ORB5, ORB15, etc.) and the cycle number if tracking multiple breakouts.
Important: Signals appear on bar close only - no repainting. What you see is what you get.
### 3. Retest Detection
After price breaks out and moves away, if it returns to test the ORB level, a "RETEST" label appears (orange). This indicates:
The original breakout level is now acting as support/resistance
Potential re-entry opportunity if you missed the first breakout
Confirmation that the level is significant
The indicator requires price to move a minimum distance away before considering it a valid retest (configurable in settings).
### 4. Failed Breakout Detection
If price breaks out but returns inside the ORB range within a few bars (before the breakout is "committed"), the original label changes to "FAILED BREAK" in orange.
This warns you:
The breakout lacked conviction
Consider exiting if already in the trade
Wait for better setup
Committed Breakout: The indicator tracks how many bars price stays outside the range. Only after staying outside for the minimum number of bars does it become a committed breakout that can be retested.
### 5. TP/SL Lines (Trade Management)
When a breakout occurs, colored horizontal lines appear showing:
Entry Line (cyan for long, orange for short) - Your entry price (the ORB level)
Stop Loss Line (red) - Where to exit if trade goes against you
TP1, TP2, TP3 Lines (same color as entry) - Profit targets at 1R, 2R, 3R
These lines extend forward as new bars form, making it easy to track your trade. When a target is hit, the line turns green and the label shows a checkmark.
Lines freeze (stop updating) when:
Stop loss is hit
The final enabled take-profit is hit
End of trading session (optional setting)
### 6. Position Sizing Dashboard
The dashboard (bottom-left corner by default) shows real-time information:
Current ORB stage and range size
Breakout status (Inside Range / Break Up / Break Down)
Volume confirmation (if filter enabled)
Trend alignment (if filter enabled)
Entry and Stop Loss prices
All enabled Take Profit levels with percentages
Risk/Reward ratio
Position sizing: Max shares to buy and total risk amount
Position Sizing Example:
If your account is $25,000 and you risk 1% per trade ($250), and the distance from entry to stop loss is $0.50, the calculator shows you can buy 500 shares (250 / 0.50 = 500).
### 7. FVG Filter (Fair Value Gap)
Fair Value Gaps are price inefficiencies - gaps left by strong momentum where one candle's high doesn't overlap with a previous candle's low (or vice versa).
When enabled, this filter:
Detects bullish and bearish FVGs
Draws semi-transparent boxes around these gaps
Only allows breakout signals if there's an FVG near the breakout level
Why this helps: FVGs indicate institutional activity. Breakouts through FVGs tend to be stronger and more reliable.
Proximity setting: Controls how close the FVG must be to the ORB level. 2.0x means the breakout can be within 2 times the FVG size - a reasonable default.
### 8. Volume & Trend Filters
Volume Filter:
Requires current volume to be above average (customizable multiplier). High volume breakouts are more likely to sustain.
Set minimum multiplier (e.g., 1.5x = 50% above average)
Set "strong volume" multiplier (e.g., 2.5x) that bypasses other filters
Dashboard shows current volume ratio
Trend Filter:
Only shows breakouts aligned with a higher timeframe trend. Choose from:
VWAP - Price above/below volume-weighted average
EMA - Price above/below exponential moving average
SuperTrend - ATR-based trend indicator
Combined modes (VWAP+EMA, VWAP+SuperTrend) for stricter filtering
### 9. Pullback Filter (Advanced)
Purpose:
Waits for price to pull back slightly after initial breakout before confirming the signal.
This reduces false breakouts from immediate reversals.
How it works:
- After breakout is detected, indicator waits for a small pullback (default 2%)
- Once pullback occurs AND price breaks out again, signal is confirmed
- If no pullback within timeout period (5 bars), signal is issued anyway
Settings:
Enable Pullback Filter: Turn this filter on/off
Pullback %: How much price must pull back (2% is balanced)
Timeout (bars): Max bars to wait for pullback (5 is standard)
When to use:
- Choppy markets with many fake breakouts
- When you want higher quality signals
- Combine with Volume filter for maximum confirmation
Trade-off:
- Better signal quality
- May miss some valid fast moves
- Slight entry delay
How to Use This Indicator
### For Beginners - Simple Setup
Add the indicator to your chart (5-minute or 15-minute timeframe recommended)
Leave all default settings - they work well for most stocks
Watch for BREAK UP or BREAK DOWN labels to appear
Check the dashboard for entry, stop loss, and targets
Use the position sizing to determine how many shares to buy
Basic Trading Plan:
Wait for a clear breakout label
Enter at the ORB level (or next candle open if you're late)
Place stop loss where the red line indicates
Take profit at TP1 (50% of position) and TP2 (remaining 50%)
### For Advanced Traders - Customized Setup
Choose which ORB stages to track (you might only want ORB15 and ORB30)
Enable filters: Volume (stocks) or Trend (trending markets)
Enable FVG filter for institutional confirmation
Set "Track Cycles" mode to catch retests and re-breakouts
Customize stop loss method (ATR for volatile stocks, ORB% for stable ones)
Adjust risk per trade and account size for accurate position sizing
Advanced Strategy Example:
Enable ORB15 only (disable others for cleaner chart)
Turn on Volume filter at 1.5x with Strong at 2.5x
Enable Trend filter using VWAP
Set Signal Mode to "Track Cycles" with Max 3 cycles
Wait for aligned breakouts (Volume + Trend + Direction)
Enter on retest if you missed the initial break
### Timeframe Recommendations
5-minute chart: Scalping, very active trading, crypto
15-minute chart: Day trading, balanced approach (most popular)
30-minute chart: Swing entries, less screen time
60-minute chart: Position trading, longer holds
The indicator works on any intraday timeframe, but ORB is fundamentally a day trading strategy. Daily charts don't make sense for ORB.
DEFAULT CONFIGURATION
ON by Default:
• All 4 ORB stages (5/15/30/60)
• Breakout Detection
• Retest Labels
• All TP levels (1/1.5/2/3)
• TP/SL Lines (Detailed mode)
• Dashboard (Bottom Left, Dark theme)
• Position Size Calculator
OFF by Default (Optional Filters):
• FVG Filter
• Pullback Filter
• Volume Filter
• Trend Filter
• HTF Bias Check
• Alerts
Recommended for Beginners:
• Leave all defaults
• Session Mode: Auto-Detect
• Signal Mode: Track Cycles
• Stop Method: ATR
• Add Volume Filter if trading stocks
Recommended for Advanced:
• Enable ORB15 + ORB30 only (disable 5 & 60)
• Enable: Volume + Trend + FVG
• Signal Mode: Track Cycles, Max 3
• Stop Method: ATR or Safer
• Enable HTF Daily bias check
## Settings Guide
The settings are organized into logical groups. Here's what each section controls:
### ORB COLORS Section
Show Edge Labels: Display "ORB 5", "ORB 15" labels at the right edge of the levels
Background: Fill the area between ORB high/low with color
Transparency: How see-through the background is (95% is nearly invisible)
Enable ORB 5/15/30/60: Turn each stage on or off individually
Colors: Assign colors to each ORB stage for easy identification
### SESSION SETTINGS Section
Session Mode: Choose trading session (Auto-Detect works for most instruments)
Custom Session Hours: Define your own hours if needed (format: HHMM-HHMM)
Auto-Detect uses the instrument's natural hours (stocks use exchange hours, crypto uses 24/7).
### BREAKOUT DETECTION Section
Enable Breakout Detection: Master switch for signals
Show Retest Labels: Display retest signals
Label Size: Visual size for all labels (Small recommended)
Enable FVG Filter: Require Fair Value Gap confirmation
Show FVG Boxes: Display the gap boxes on chart
Signal Mode: "First Only" = one signal per direction per day, "Track Cycles" = multiple signals
Max Cycles: How many breakout-retest cycles to track (6 is balanced)
Breakout Buffer: Extra distance required beyond ORB level (0.1-0.2% recommended)
Min Distance for Retest: How far price must move away before retest is valid (2% recommended)
Min Bars Outside ORB: Bars price must stay outside for committed breakout (2 is balanced)
### TARGETS & RISK Section
Enable Targets & Stop-Loss: Calculate and show trade management
TP1/TP2/TP3 checkboxes: Select which profit targets to display
Stop Method: How to calculate stop loss placement
- ATR: Based on volatility (best for most cases)
- ORB %: Fixed % of ORB range
- Swing: Recent swing high/low
- Safer: Widest of all methods
ATR Length & Multiplier: Controls ATR stop distance (14 period, 1.5x is standard)
ORB Stop %: Percentage beyond ORB for stop (20% is balanced)
Swing Bars: Lookback period for swing high/low (3 is recent)
### TP/SL LINES Section
Show TP/SL Lines: Display horizontal lines on chart
Label Format: "Short" = minimal text, "Detailed" = shows prices
Freeze Lines at EOD: Stop extending lines at session close
### DASHBOARD Section
Show Info Panel: Display the metrics dashboard
Theme: Dark or Light colors
Position: Where to place dashboard on chart
Toggle rows: Show/hide specific information rows
Calculate Position Size: Enable the position sizing calculator
Risk Mode: Risk fixed $ amount or % of account
Account Size: Your total trading capital
Risk %: Percentage to risk per trade (0.5-1% recommended)
### VOLUME FILTER Section
Enable Volume Filter: Require volume confirmation
MA Length: Average period (20 is standard)
Min Volume: Required multiplier (1.5x = 50% above average)
Strong Volume: Multiplier that bypasses other filters (2.5x)
### TREND FILTER Section
Enable Trend Filter: Require trend alignment
Trend Mode: Method to determine trend (VWAP is simple and effective)
Custom EMA Length: If using EMA mode (50 for swing, 20 for day trading)
SuperTrend settings: Period and Multiplier if using SuperTrend mode
### HIGHER TIMEFRAME Section
Check Daily Trend: Display higher timeframe bias in dashboard
Timeframe: What TF to check (D = daily, recommended)
Method: Price vs MA (stable) or Candle Direction (reactive)
MA Period: EMA length for Price vs MA method (20 is balanced)
Min Strength %: Minimum strength threshold for HTF bias to be considered
- For "Price vs MA": Minimum distance (%) from moving average
- For "Candle Direction": Minimum candle body size (%)
- 0.5% is balanced - increase for stricter filtering
- Lower values = more signals, higher values = only strong trends
### ALERTS Section
Enable Alerts: Master switch (must be ON to use any alerts)
Breakout Alerts: Notify on ORB breakouts
Retest Alerts: Notify when price retests after breakout
Failed Break Alerts: Notify on failed breakouts
Stage Complete Alerts: Notify when each ORB stage finishes forming
After enabling desired alert types, click "Create Alert" button, select this indicator, choose "Any alert() function call".
## Tips & Best Practices
### General Trading Tips
ORB works best on liquid instruments (stocks with good volume, major crypto pairs)
First hour of the session is most important - that's when ORB is forming
Breakouts WITH the trend have higher success rates - use the trend filter
Failed breakouts are common - use the "Min Bars Outside" setting to filter weak moves
Not every day produces good ORB setups - be patient and selective
### Position Sizing Best Practices
Never risk more than 1-2% of your account on a single trade
Use the built-in calculator - don't guess your position size
Update your account size monthly as it grows
Smaller accounts: use $ Amount mode for simplicity
Larger accounts: use % of Account mode for scaling
### Take Profit Strategy
Most traders use: 50% at TP1, 50% at TP2
Aggressive: Hold through TP1 for TP2 or TP3
Conservative: Full exit at TP1 (1:1 risk/reward)
After TP1 hits, consider moving stop to breakeven
TP3 rarely hits - only on strong trending days
### Filter Combinations
Maximum Quality: Volume + Trend + FVG (fewest signals, highest quality)
Balanced: Volume + Trend (good quality, reasonable frequency)
Active Trading: No filters or Volume only (many signals, lower quality)
Trending Markets: Trend filter essential (indices, crypto)
Range-Bound: Volume + FVG (avoid trend filter)
### Common Mistakes to Avoid
Chasing breakouts - wait for the bar to close, don't FOMO into wicks
Ignoring the stop loss - always use it, move it manually if needed
Over-leveraging - the calculator shows MAX shares, you can buy less
Trading every signal - quality > quantity, use filters
Not tracking results - keep a journal to see what works for YOU
## Pros and Cons
### Advantages
Complete all-in-one solution - from signal to position sizing
Multiple timeframes tracked simultaneously
Visual clarity - easy to see what's happening
Cycle tracking catches opportunities others miss
Built-in risk management eliminates guesswork
Customizable filters for different trading styles
No repainting - what you see is locked in
Works across multiple markets (stocks, forex, crypto)
### Limitations
Intraday strategy only - doesn't work on daily charts
Requires active monitoring during first 1-2 hours of session
Not suitable for after-hours or extended sessions by default
Can produce many signals in choppy markets (use filters)
Dashboard can be overwhelming for complete beginners
Performance depends on market conditions (trends vs ranges)
Requires understanding of risk management concepts
### Best For
Day traders who can watch the first 1-2 hours of market open
Traders who want systematic entry/exit rules
Those learning proper position sizing and risk management
Active traders comfortable with multiple signals per day
Anyone trading liquid instruments with clear sessions
### Not Ideal For
Swing traders holding multi-day positions
Set-and-forget / passive investors
Traders who can't watch market open
Complete beginners unfamiliar with trading concepts
Low volume / illiquid instruments
## Frequently Asked Questions
Q: Why are no signals appearing?
A: Check that you're on an intraday timeframe (5min, 15min, etc.) and that the current time is within your session hours. Also verify that "Enable Breakout Detection" is ON and at least one ORB stage is enabled. If using filters, they might be blocking signals - try disabling them temporarily.
Q: What's the best ORB stage to use?
A: ORB15 (15 minutes) is most popular and balanced. ORB5 gives faster signals but more noise. ORB30 and ORB60 are slower but more reliable. Many traders use ORB15 + ORB30 together.
Q: Should I enable all the filters?
A: Start with no filters to see all signals. If too many false signals, add Volume filter first (stocks) or Trend filter (trending markets). FVG filter is most restrictive - use for maximum quality but fewer signals.
Q: How do I know which stop loss method to use?
A: ATR works for most cases - it adapts to volatility. Use ORB% if you want predictable stop placement. Swing is for respecting chart structure. Safer gives you the most room but largest risk.
Q: Can I use this for swing trading?
A: Not really - ORB is fundamentally an intraday strategy. The ranges reset each day. For swing trading, look at weekly support/resistance or moving averages instead.
Q: Why do TP/SL lines disappear sometimes?
A: Lines freeze (stop extending) when: stop loss is hit, the last enabled take-profit is hit, or end of session arrives (if "Freeze at EOD" is enabled). This is intentional - the trade is complete.
Q: What's the difference between "First Only" and "Track Cycles"?
A: "First Only" shows one breakout UP and one DOWN per day maximum - clean but might miss opportunities. "Track Cycles" shows breakout-retest-rebreak sequences - more signals but busier chart.
Q: Is position sizing accurate for options/forex?
A: The calculator is designed for shares (stocks). For options, ignore the share count and use the risk amount. For forex, you'll need to adapt the lot size calculation manually.
Q: How much capital do I need to use this?
A: The indicator works for any account size, but practical day trading typically requires $25,000 in the US due to Pattern Day Trader rules. Adjust the "Account Size" setting to match your capital.
Q: Can I backtest this strategy?
A: This is an indicator, not a strategy script, so it doesn't have built-in backtesting. You can visually review historical signals or code a strategy script using similar logic.
Q: Why does the dashboard show different entry price than the breakout label?
A: If you're looking at an old breakout, the ORB levels may have changed when the next stage completed. The dashboard always shows the CURRENT active range and trade setup.
Q: What's a good win rate to expect?
A: ORB strategies typically see 40-60% win rate depending on market conditions and filters used. The strategy relies on positive risk/reward ratios (2:1 or better) to be profitable even with moderate win rates.
Q: Does this work on crypto?
A: Yes, but crypto trades 24/7 so you need to define what "session start" means. Use Session Mode = Custom and set your preferred daily reset time (e.g., 0000-2359 UTC).
## Credits & Transparency
### Development
This indicator was developed with the assistance of AI technology to implement complex ORB trading logic.
The strategy concept, feature specifications, and trading logic were designed by the publisher. The implementation leverages modern development tools to ensure:
Clean, efficient, and maintainable code
Comprehensive error handling and input validation
Detailed documentation and user guidance
Performance optimization
### Trading Concepts
This indicator implements several public domain trading concepts:
Opening Range Breakout (ORB): Trading strategy popularized by Toby Crabel, Mark Fisher and many more talanted traders.
Fair Value Gap (FVG): Price imbalance concept from ICT methodology
SuperTrend: ATR-based trend indicator using public formula
Risk/Reward Ratio: Standard risk management principle
All mathematical formulas and technical concepts used are in the public domain.
### Pine Script
Uses standard TradingView built-in functions:
ta.ema(), ta.atr(), ta.vwap(), ta.highest(), ta.lowest(), request.security()
No external libraries or proprietary code from other authors.
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice.
Trading involves substantial risk of loss and is not suitable for every investor. Past performance shown in examples is not indicative of future results.
The indicator provides signals and calculations, but trading decisions are solely your responsibility. Always:
Test strategies on paper before using real money
Never risk more than you can afford to lose
Understand that all trading involves risk
Consider seeking advice from a licensed financial advisor
The publisher makes no guarantees regarding accuracy, profitability, or performance. Use at your own risk.
---
Version: 3.0
Pine Script Version: v6
Last Updated: October 2024
For support, questions, or suggestions, please comment below or send a private message.
---
Happy trading, and remember: consistent risk management beats perfect entry timing every time.
Risk Leverage ToolRisk Leverage Tool – Calculate Position Size and Required Leverage
This script automatically calculates the optimal position size and the leverage needed based on the amount of capital you are willing to risk on a trade. It is designed for traders who want precise control over their risk management.
The script determines the distance between the entry and stop-loss price, calculates the maximum position size that fits within the defined risk, and derives the notional value of the trade. Based on the available margin, it then calculates the required leverage. It also displays the percentage of margin at risk if the stop-loss is hit.
All results are displayed in a table in the top-right corner of the chart. Additionally, a label appears at the entry price level showing the same data.
To use the tool, simply input your planned entry price, stop-loss price, the maximum risk amount in dollars, and the available margin in the settings menu. The script will update all values automatically in real time.
This tool works with any market where capital risk is expressed in absolute terms (such as USD), including futures, CFDs, and leveraged spot positions. For inverse contracts or percentage-based stops, manual adjustment is required.
EXTPO TRENDIndicator designed for traders who prefer quick scalping or day trading.
Applicable to time frames below M15.
Currently, I’m using it on BTC M1.
Note:
When the status is Buy, only buy signals will appear.
When the status is Sell, only sell signals will appear.
When the status is Off, no signals will appear because one of the entry conditions is not met.
Market Order BubblesMarket Order Bubbles is a streamlined, volume-driven overlay indicator designed to spotlight sudden spikes in trading activity, highlighting potential shifts in market momentum.
By detecting deviations in volume from its recent average, it plots intuitive bubble markers to reveal aggressive order flows—ideal for traders seeking early warnings of exhaustion or reversal setups in fast-moving markets.
What makes this indicator different
This indicator draws inspiration from established volume analysis tools but stands out with a refined, lightweight approach. Unlike more complex models that layer multiple filters or emulate cumulative metrics, it leverages a weighted moving average (WMA) of volume paired with statistical deviation for a direct, responsive measure of "surge intensity."
This results in cleaner signals with less noise, making it particularly suited for intraday scalpers or swing traders who value simplicity without sacrificing depth. The focus on excess volume relative to a dynamic baseline ensures bubbles only emerge during truly anomalous activity, setting it apart from generic volume oscillators or basic footprint indicators that often flood charts with irrelevant data.
Core Mechanics
At its heart, the indicator computes a smoothed volume baseline using a WMA over a user-defined period, then applies a volatility-adjusted threshold derived from the standard deviation of that same period. A "surge" triggers when actual volume exceeds this baseline plus the threshold, with the excess amount determining bubble size. Price direction (bullish or bearish close) classifies the surge as buying or selling pressure:
Buy Surges (plotted as blue bubbles above the bar): Indicate potential overextension in upward moves.
Sell Surges (plotted as red bubbles below the bar): Flag possible downside fatigue.
Bubble opacity and size scale with surge magnitude—fainter, smaller bubbles for mild excesses; bolder, larger ones for extreme outliers—providing a visual gradient of intensity at a glance.
How to use this tool:
Use this tool as a contrarian edge to anticipate potential pullbacks or reversals, rather than chasing the trend. Large clusters of buy bubbles during a rally could signal "capitulation" from late entrants or forced covers, priming the market for a downside move. Conversely, sell bubbles in a downward move can mark bottoming exhaustion, cueing possible upside bounces.
For best results:
Confluence: Pair with price action, momentum indicators, or other orderflow tools.
Timeframe Flexibility: Excels on low timeframe for day trading; scale up to hourly for swings.
Treat bubbles as filters, not standalone signals—always confirm with broader context.
In essence bubbles don't predict direction but can illuminate when the crowd's aggression might soon flip.
Bubble Sizing and Interpretation
Bubbles are tiered by surge strength for quick assessment:
Small Bubbles: Minor excess — a little more pressure on volume.
Medium Bubbles: Notable excess — moderate alert.
Large Bubbles: Major excess — high-impact event.
Customizing Settings
The indicator keeps things minimal with just two changeable inputs, highlighting quick tweaks without overwhelming options.
WMA Length (default: 100): Controls the lookback for the volume baseline. Increase for smoother, less reactive signals (fewer but more reliable bubbles in volatile assets). Decrease for heightened sensitivity (more frequent alerts in choppy sessions).
Threshold Multiplier (default: 1.5): Scales the deviation buffer. Higher values tighten criteria, reducing bubble frequency for more conservative filtering; lower values loosen it, capturing subtler surges but risking more noise.
These adjustments let traders dial in the indicator to their style.
Frankator BBRSI🧭Strategy Description of Frankator BBRSI: Bollinger Bands + RSI Signal (only on 5 min chart)
Overview
This indicator combines Bollinger Bands and the Relative Strength Index (RSI) to identify potential overbought and oversold market conditions.
It generates buy and sell signals when the price reaches extreme levels confirmed by RSI momentum — helping traders anticipate potential reversals or continuation setups.
📊 How It Works
Bollinger Bands
The script plots three lines:
Upper Band: SMA + (Standard Deviation × Multiplier)
Basis (Middle Band): Simple Moving Average (SMA)
Lower Band: SMA - (Standard Deviation × Multiplier)
When the price touches or breaks the upper band, it may indicate an overbought market.
When the price touches or drops below the lower band, it may indicate an oversold market.
RSI Confirmation
RSI measures momentum to confirm whether the market is truly overbought or oversold.
Default RSI levels:
Overbought: RSI > 70
Oversold: RSI < 30
Signal Conditions
Buy Signal:
Price closes at or below the lower Bollinger Band
RSI < 30 (oversold)
A green triangle appears below the candle
Sell Signal:
Price closes at or above the upper Bollinger Band
RSI > 70 (overbought)
A red triangle appears above the candle
Alerts
You can set TradingView alerts for automatic notifications when either a Buy or Sell condition is met.
Go to “Add Alert” → “Condition” → Choose this indicator → Select Buy/Sell Signal, or Any alert for both alerts.
⚠️ Disclaimer
This indicator is a technical analysis tool, not a guarantee of future performance. Always use proper risk management and confirm signals with other indicators or price patterns before entering trades.
FX Realized Volatility *The downward signal for Euqities!?*The Russel 2000 put in a new ath today as capital is moving further out the risk curve. Risk-Assets continue to rally to the upside.
This will last until we see a lasting driver happening on a real time basis that drag pull equties down
When volatility rises, we need to see the DRIVER of the volatility have persistence behind it as opposed to one off shocks.
We are not there yet as volatility in FX and bonds continues to compress since the April lows in equities.
Equities will continue to rally until long end yields blow out or the carry trade unwinds. Long end yields blowing out is not occuring on an imminent basis but the FX side of things could be a significant risk soon.
Its all about: When will that liquidity beginn to create inflation or a problem in the currency
Monitoring the equity vol, Bond vol and FX volatiliy is crucial here
You can watch them via:
VIX,
Move,
+ i build an Trading view modell which conducts the vol of the major FX pairs.
(its 100% free)
If you just want it simple, just look at USD & EUR vol as they are the most trades foreign exchange currencies.
Watching these 2 Risks (Vol & long-end) will put you upfront most people in the market.
Once we see information in the underlying economy shifting i will adjust my views as they relate to every major asset class.
But for now we are likely moving higher in basically every risky asset.
**Feel free to ask me any questions**
Liquidity Levels - PMH/PWH/PDH/HODWhat is it?
An indicator that tracks the main liquidity levels on TradingView, displaying the highs and lows of reference for month, week, previous day and current day.
What's it for?
It identifies price zones where there are many pending orders (liquidity). Traders use it to:
Find support and resistance points
Identify areas where price could bounce or break through
Receive alerts when price touches or breaks these levels
Which levels does it show?
LevelDescriptionColorLinePMH/PMLPrevious month's high and lowPurpleSolidPWH/PWLPrevious week's high and lowBlueSolidPDH/PDLPrevious day's high and lowOrangeSolidHOD/LODCurrent day's high and lowGrayDotted
How to use it?
Apply the indicator to your chart
Customize colors and enable/disable the levels you prefer
Set alerts to receive notifications when price touches or breaks levels
Use the levels to make trading decisions (entry, exit, stop loss)
Perfect for: Scalping, Day Trading, Swing Trading on any asset (forex, crypto, stocks)
BTC OI Delta (binance, okx, bybit, htx, bitget, deribit)📊 BTC Open Interest (OI) Delta (Binance, OKX, Bybit, HTX, Bitget, Deribit)
📝 Overview
This Pine Script indicator tracks and visualizes the changes (delta) in Bitcoin (BTC) open interest (OI) for perpetual futures across multiple major crypto exchanges: Binance, OKX, Bybit, Bitget, HTX, and Deribit. It calculates the total net delta by summing the OI delta from each exchange and displays positive (OI increase) and negative (OI decrease) deltas as separate column charts. Users can choose which exchanges to include or exclude and utilize the spike highlight feature to differentiate delta intensity with color based on user-defined thresholds.
⚡ Key Features
🌐 Multi-exchange OI delta tracking
Fetches and calculates BTC perpetual futures OI delta individually from Binance, OKX, Bybit, Bitget, HTX, and Deribit.
📈 Total net delta calculation
Sums the OI delta from all selected exchanges to represent overall market open interest changes.
🎨 Visualization
Column plots: Displays net OI increases (positive delta) and decreases (negative delta) as separate column charts for intuitive trend analysis.
Spike highlights: Changes in OI delta are color-coded according to user-defined thresholds to make significant moves easily identifiable.
⚙️ User settings
Users can select which exchanges to display, enable/disable spike highlights, and set thresholds for “strong” and “very strong” OI delta changes.
🛠 Input Settings
Show Zero Line (bool, default: true): Show a zero baseline on the chart.
Highlight Spikes (bool, default: true): Enable color highlighting based on OI delta intensity.
Strong Threshold (int, default: 1000): Delta value considered a “strong” change (in BTC).
Very Strong Threshold (int, default: 2000): Delta value considered a “very strong” change (in BTC).
Show Binance (bool, default: true): Include Binance OI delta.
Show OKX (bool, default: true): Include OKX OI delta.
Show Bybit (bool, default: true): Include Bybit OI delta.
Show Bitget (bool, default: true): Include Bitget OI delta.
Show HTX (bool, default: true): Include HTX OI delta.
Show Deribit (bool, default: true): Include Deribit OI delta.
🔢 Calculation Method
🧮 Individual OI request
Uses request.security() to fetch OI data from each exchange.
➕ Delta calculation
Current bar OI minus previous bar OI (oi - oi ).
❌ Handling na values
If OI data is missing (exchange disabled or no data), the delta is treated as 0 to avoid sum errors.
🔗 Total net delta
Sums all selected exchange deltas as totalCombinedDelta.
↔️ Separate net increase/decrease
Positive (netIncreaseCombined) and negative (netDecreaseCombined) parts of total delta are split.
🎨 Color determination
getNetDeltaHighlightedColor function dynamically sets column colors based on highlightSpike and threshold settings.
🎨 Color Scheme
Highlight disabled:
Positive delta: teal shades
Negative delta: red shades
Highlight enabled:
Positive delta (normal): dark teal (#026628)
Positive delta (strong): bright teal (#00ff95)
Positive delta (very strong): yellow (#eeff00)
Negative delta (normal): dark red (#6b0d0d)
Negative delta (strong): bright red (#ff1044)
Negative delta (very strong): pink (#ff00ea)
📊 Usage
💹 Market sentiment analysis
Total net OI delta increase → capital inflow and position building
Total net OI delta decrease → capital outflow and position liquidation
⚖️ Position interpretation
BTC rising + positive OI delta → increasing long positions
BTC falling + negative OI delta → decreasing long positions
BTC falling + positive OI delta → increasing short positions
BTC rising + negative OI delta → decreasing short positions
📈 Trend confirmation
Sustained positive delta → bullish signal
Sustained negative delta → bearish signal
🌪 Volatility prediction
“Strong” or “very strong” spikes may indicate increased price volatility.
🏦 Exchange-specific impact
Enable/disable exchanges to analyze how each exchange’s OI changes affect the overall market.
Gaussian RibbonSummary
Adaptive Gaussian ribbon with inner/outer sigma bands and soft regime colors—green trend, red pressure, gray neutral.
What it is
A clean Gaussian filter ribbon that maps trend + volatility without the jitter. It uses a Gaussian smoother, a tiny EMA basis, and two standard-deviation bands. Color fades with distance from the basis, and flips softly (no knife-edge).
How it works
Gaussian core: IIR-style smoothing on your chosen source (default hlc3).
Basis: EMA(3) of the Gaussian for a steadier slope.
Bands: Inner = Basis ± (σ × Inner Mult), Outer = Basis ± (σ × Outer Mult).
Regime: z-score → softsign → EMA(3) → bull / neutral / bear.
Faded look: opacity ramps with distance; neutral turns gray.
What “Regime” Means (Simple)
A regime is the market’s “weather.” It shifts between Bull, Neutral, and Bear. Different tactics work in each.
How this indicator detects regime
Builds a smoothed score of price vs. the basis (z-score → softsign → EMA).
Score > 0 = Bull, score < 0 = Bear. Inside the inner band = Neutral filter to cut noise.
Color changes are soft (faded) so flips don’t knife-edge.
Playbook (What to do)
Bull (Green): Buy pullbacks to the inner band; add on strength; cut fast if price falls back inside the ribbon.
Neutral (Gray): Reduce size, fade extremes, or stand down. Wait for a clean break in either direction.
Bear (Red): Sell/short rallies to the ribbon; protect capital; flip long only after a confirmed regime turn.
For Pros (Tuning & Confirmation)
Timeframe bias: Use higher TF (1W/2W) for context; trade on 1D/4H in the higher-TF direction.
Smoother vs faster: Increase Length to reduce flip-flop; decrease for earlier turns.
Vol filter: Widen Outer/Inner multipliers in choppy markets; narrow in strong trends.
Confirm: Use structure (HH/HL vs LH/LL), volume/OBV, or your MA; ribbon = context, not a standalone trigger.
How to read it
Green = trend support; pullbacks to the inner band are typical buy-the-dip zones.
Gray = inside ribbon; chop/mean reversion. Size down or wait.
Red = trend pressure; rallies into ribbon are fade zones until regime flips.
Opacity increases with distance = stronger momentum.
Good starting presets
Macro (1W–2W): Length 90–110, Outer 2.3, Inner 1.3, Source hlc3.
Swing (1D): Length 60–80, Outer 2.0, Inner 1.4.
Intraday (1–4H): Length 30–40, Outer 1.8, Inner 1.2.
Options
Opens in a separate pane (overlay=false). Set overlay=true to place on candles (consider +5 transparency on fills).
Watermark is “CAYEN” (table-based, no editor drama).
Why it’s “safe”
No repaint. No lookahead; uses only closed-bar data.
Deterministic state and divide-by-zero guards.
Limitations
It’s a context tool. It will lag at regime turns (by design). Use structure/volume to time entries.
Credits
Script by Jason Cayen. Gaussian smoothing is classic DSP math (public domain).
Release notes (v1.0)
Initial public release: faded bands, neutral zone, soft regime colors, Non-repainting; pane by default.
THAIT Moving Averages Tight within # ATR EMA SMA convergence
THAIT(tight) indicator is a powerful tool for identifying moving average convergence in price action. This indicator plots four user-defined moving averages (EMA or SMA). It highlights moments when the MAs converge within a user specified number of ATRs, adjusted by the 14-period ATR, signaling potential trend shifts or consolidation.
A convergence is flagged when MA1 is the maximum, the spread between MAs is tight, and the price is above MA1, excluding cases where the longest MA (MA4) is the highest. The indicator alerts and visually marks convergence zones with a shaded green background, making it ideal for traders seeking precise entry or exit points.
Flux AI PullBack System (Hybrid Pro)Flux AI PullBack System (Hybrid Pro)
//Session-Aware | Adaptive Confluence | Grace Confirm Logic//
Overview:
The Flux AI PullBack System (Hybrid Pro v5) is an adaptive, session-aware pullback indicator designed to identify high-probability continuation setups within trending markets. It automatically adjusts between “Classic” and “Enhanced” logic modes based on volatility, volume, and ATR slope, allowing it to perform seamlessly across different market sessions (Asian, London, and New York).
Core Features:
Hybrid Auto Mode — Dynamically switches between Classic (fast-moving) and Enhanced (strict) modes.
Session-Aware Context — Optimized for intraday trading in ES, NQ, and SPY.
Grace Confirmation Logic — Validates pullbacks with a follow-through condition to reduce noise.
Adaptive EMA Zone (38/62) — Highlights pullback areas with dynamic aqua fill and transparency linked to trend strength.
Noise Suppression Filter — Prevents false pullbacks during EMA crossovers or unstable transitions.
Weighted Confluence Model — Combines trend, ATR, volume, and swing structure for confirmation strength.
Pine v6 Compliant Alerts — Constant-string safe, ready for webhooks and automation.
Visual Elements:
Aqua EMA Zone: Displays the “breathing” pullback band (tightens during volatility spikes).
PB↑ / PB↓ Markers: Confirmed pullbacks with subtle transparency and fixed label size.
Bar Highlights: Yellow for pullbacks; ice-blue for confirmed continuation.
Use Cases
Perfect for:
Intraday trend traders
0DTE SPX / ES scalpers
Futures traders (NQ, MNQ, MES)
Algorithmic strategy builders using webhooks
Recommended Timeframes:
1–15 minute charts (scalping / intraday)
Higher timeframes for swing confirmations.
Attribution:
This open-source script was inspired by Chris Moody’s “CM Slingshot System” and JustUncleL’s Pullback Tools, but it was built from scratch using AI-assisted code refinement (ChatGPT).
All logic and enhancements are original, not derived from proprietary software.
License: MIT (Open Source)
© 2025 Ken Anderson — You may modify, use, or redistribute with credit.
Keywords:
Pullback, Reversal, AI Trading, EMA Zone, Session Aware, Futures Trading, SPX, ES, NQ, ATR Filter, Volume Confirmation, Flux System, Pine Script v6, Non-Repainting, Adaptive Trading Indicator.
williams vix fix strategy maybe working thshshtssrjsrndbf
hrthnnndhzmhfbdhdrzmh
nnnfgngmhmxfnxhm
xmmxfhnmfndygngny
ngf
mfm
Smart Money Concept: FVG Block Filter Smart Money Concept: FVG Block Filter (FVG Block Range vs N Range) with Candle Highlighter
Summary:
Smart Money Concept (SMC): An advanced indicator designed to visualize and filter Fair Value Gaps (FVG) blocks based on their size (Range) compared to the preceding N Range candle movement. It also includes a customizable Candle Highlighter function that marks the specific candle responsible for creating the FVG. The indicator allows full color customization for both blocks and the highlighter, and features clean, label-free charts by default.
Key Features:
FVG Block Detection: Automatically identifies and groups sequential FVG imbalances to form consolidated FVG blocks.
FVG Block Filtering (N Range): Filters blocks based on a user-defined rule, comparing the block's size (Range) to the range of the preceding N candles (e.g., requiring the FVG block to be larger than the range of the previous 6 candles).
Customizable Candle Highlighter: Marks the central candle (B) within the FVG structure (A-B-C) to highlight the source of the price imbalance. Highlighter colors are fully adjustable via inputs.
Visualization Control: Labels are turned OFF by default to keep the chart clean but can be easily enabled via the indicator settings.
Full Color Customization: Allows independent customization of Bullish and Bearish FVG Block colors, Block Transparency, and Bullish/Bearish Highlighter colors.
Keywords:
Smart Money Concept, SMC, Fair Value Gap, FVG, Imbalance, Block Filter, Candle Highlighter, Range.






















