Quantum Feynman Path Integral Oscillator MT5
- 지표
-
Anthony Cooke
Quantitative Systems Architect and C++, Python, MQL5, MQL4, and Pine Script developer specializing in non-repainting mathematical indicators, Expert Advisors, and statistical strategy audits. I combine industrial quality-control engineering and Applied Mathematics with multi-physics market modeling - 버전: 1.0
- 활성화: 5
Overview & Scientific Origin
The Quantum Feynman Path Integral Oscillator is an institutional quantitative indicator engineered from Quantum Field Theory and Theoretical Physics. Developed by Nobel Prize-winning physicist Richard Feynman, the Path-Integral formulation is used in quantum mechanics and particle physics to evaluate every trajectory a subatomic particle can take between two states—calculating whether waves cancel each other out inside a confining "potential well" or align constructively with enough kinetic energy to quantum-tunnel straight through a barrier. This indicator brings path-integral phase coherence and Lagrangian action to financial price series, replacing lagging retail oscillators with a strictly causal, non-repainting breakout confirmation engine built for Gold (XAUUSD), Silver (XAGUSD), Major Forex pairs, and US Indices.
Mathematical Mechanism & What It Does
Markets frequently swing back and forth inside noisy consolidation zones (a "potential well") where standard momentum indicators fire constant false signals. Instead of smoothing price with simple averages, this algorithm measures whether price trajectories are genuinely aligned and energetically breaking free:
- Potential Well Equilibrium: Across a 55-bar lookback window (InpEquilPeriod = 55), the indicator transforms closing prices into log-prices and log-returns to compute the rolling equilibrium mean, price dispersion, and return volatility.
- Interferometric Phase Coherence: Over a 13-bar coherent path window (InpPathWindow = 13), each normalized bar return is mapped onto a phase angle (φ = arctan(v_norm)). By combining the sine and cosine components across the path window, the engine measures whether recent bars are reinforcing each other in a single direction (high coherence) or canceling each other out in chop (low coherence).
- Lagrangian Action & Tunneling Gate: Across the same 13-bar path, the formula computes average Lagrangian Action—kinetic energy (squared return velocity) minus potential energy (squared distance from equilibrium). Passing this action through a sigmoid escape gate scales the coherent drift Z-score into a continuous DeepSkyBlue wave (Feynman_Amplitude) bounded between -4.5 and +4.5. Only when amplitude breaches the threshold and kinetic energy strictly exceeds potential resistance (action > 0) does the MediumOrchid Tunneling_Burst histogram ignite.
How to Trade With This Indicator
- Bullish Quantum Tunneling (+2.0 Burst): When the DeepSkyBlue Feynman_Amplitude line crosses above +2.0 and triggers a positive MediumOrchid Tunneling_Burst histogram pillar, kinetic buying energy and phase alignment have officially escaped the potential well—confirming a high-conviction bullish breakout.
- Bearish Quantum Tunneling (-2.0 Burst): When the DeepSkyBlue wave drops below -2.0 and triggers a negative MediumOrchid Tunneling_Burst pillar, the model confirms a structurally aligned bearish breakdown.
- Destructive Interference & Equilibrium Filter (-2.0 to +2.0): When Feynman_Amplitude oscillates inside the -2.0 to +2.0 band—or even stretches beyond 2.0 without triggering a MediumOrchid histogram bar because Lagrangian action is negative—price lacks kinetic escape energy and breakout trades should be avoided.
Technical Specifications & Input Parameters
- Calculation Engine: 100% causal bar-by-bar indexing with zero repainting, zero backpainting, and zero external DLL calls.
- InpEquilPeriod (Default: 55): Rolling potential-well equilibrium window for log-price mean and volatility scaling.
- InpPathWindow (Default: 13): Coherent path window used to evaluate interferometric phase coherence and Lagrangian action.
- InpThreshold (Default: 2.0): Critical quantum tunneling gate required to trigger Tunneling_Burst histogram alerts.
- Prop-Firm & EA Ready: Lightweight 4-buffer architecture (ExtTunnelBuffer, ExtWaveBuffer, ExtLogCloseBuffer, ExtLogRetBuffer) designed to plug directly into Expert Advisors.
----------Also Available for MetaTrader 4 (MT4): Running MT4 instead of MT5? The identically engineered MetaTrader 4 version of Quantum Feynman Path Integral Oscillator is already published on my MQL5 Seller Profile with the exact same icon, parameters, and mathematical engine. Click my seller name to grab the MT4 edition.
