White Paper

โš›๏ธ Quantum Flux is a probabilistic trading strategy for binary options, implemented in the Chipa Trading Language (CHTL) โ†’ Get it on GitHub
๐Ÿ’ฌ Need help? Join the Chipa Discord ยท โšก Go no-code with ChipaEditor

Quantum Flux: A Probabilistic Trading System for Binary Options

CHTL Implementation White Paper ยท Download the original PDF

Abstract

The Quantum Flux Strategy is a multi-component, probabilistic trading system engineered primarily for binary options. By leveraging statistical deviation, multi-interval momentum filters, smoothing pipelines, and candlestick price action, the system is designed to identify highly accurate trend continuation and mean-reversion trade setups. This white paper outlines the theoretical and technical architecture of the strategy as implemented in the Chipa Trading Language (CHTL).

1. Introduction

Financial time-series data is notoriously noisy, frequently causing lagging indicators and false crossover signals. The Quantum Flux architecture, originally derived from the Python-based BlackLotusX-v2/strategies/quantum_flux, addresses these inefficiencies by compartmentalizing data processing, market analysis, decision execution, and risk management into distinct algorithmic modules.

2. Architectural Framework

The strategy is built upon four structural blocks that transform raw market data into executed trading signals:

  • DAPU (Data Processing Unit): Employs the PREPROCESS WaveletDenoise(4) module to eliminate market noise and high-frequency volatility without adding indicator lag.
  • QAE (Quantum Analytical Engine): Evaluates the market state across three dimensions: Trend, Statistics (Z-Score), and Momentum (RSI).
  • DEMU (Decision Engine Unit): Utilizes a SEQUENCE(First) structure to prioritize signals via tier structures, ensuring higher confluence signals are executed first.
  • Risk Management Core: Uses a TIMEOUT(2) mechanism to suppress overtrading by enforcing a strict cooldown window between execution vectors.

3. Data Processing Unit (DAPU): Wavelet Denoising

To mitigate the problem of micro-structural noise (such as market churn and high-frequency spikes) that triggers false indicator crossovers, Quantum Flux routes all incoming OHLCV (Open, High, Low, Close, Volume) data matrices through a Level 4 Haar Wavelet Denoising algorithm.

  • Mechanism: The discrete wavelet transform decomposes the price series into low-frequency trend components and high-frequency noise detail coefficients. The detail coefficients are zeroed out or soft-thresholded down to level 4.
  • Result: Indicators are computed using clean, smoothed price lines. This preserves sharp price turning points and avoids the lag penalty typically induced by long-period moving averages.

4. Quantum Analytical Engine (QAE)

The QAE classifies the market landscape by synthesizing structural, statistical, and momentum data.

4.1 Trend Analysis Matrix (EMA Cascade)

The engine extracts market directionality using an Exponential Moving Average (EMA) Cascade:

  • Fast EMA (5-period): Tracks short-term price velocity.
  • Slow EMA (13-period): Tracks the medium-term structural trend.
  • Trend EMA (21-period): Serves as the macro baseline anchor.

Immediate velocity cross-overs are determined by the relationship between the 5-period and 13-period EMAs, while true macro-directional expansion is validated when the 13-period EMA aligns correctly with the 21-period EMA.

4.2 Statistical Volatility Matrix (Dynamic Z-Score)

To capture mathematical extremes and mean-reversion thresholds, the system computes a rolling Z-Score based on a 20-period Simple Moving Average (SMA) and Standard Deviation (SD). This maps out two specific zones:

  1. Standard Reversion Threshold: Triggers when the absolute Z-Score is greater than 1.2, indicating a short-term pullback is statistically probable.
  2. Extreme Tail Reversion Threshold: Triggers when the absolute Z-Score exceeds 2.0, representing a severe over-extension and high-volatility exhaustion state that frequently results in a sharp counter-trend reversal.

4.3 Momentum Filtering (Relative Strength Index)

A 14-period Relative Strength Index (RSI) matrix maps out directional zones:

  • Exhaustion Boundaries: Values below 30 denote oversold conditions, while values above 70 denote overbought conditions.
  • Loading Zones: Values below 45 and above 55 act as bullish and bearish continuation loading zones, allowing the engine to spot structural entries inside a trend.

4.4 Micro-Price Action Confirmation

To confirm entries, the strategy identifies structural Reversal Bars (Hammers and Shooting Stars) by measuring closing prices against the total candle range:

  • Bullish Confirmation: Validates strong buying delta driving price up into the close.
  • Bearish Confirmation: Validates strong selling delta driving price down into the close.

5. Decision Engine Unit (DEMU): Confluence Logic

The decision engine processes market conditions using a top-down evaluation logic (SEQUENCE(First)), executing a trade on the very first rule that evaluates to true, and defaulting to a Hold state if conditions are ambiguous.

5.1 Tier 1: Strong Signals

High confidence setups where 3 or more components perfectly align:

  • Extreme Mean-Reversion: Targets high-velocity capitulation events or parabolic blow-off tops. Triggers when price hits an absolute Z-Score of 2.0 or higher, RSI reaches an exhaustion boundary (below 30 or above 70), and the current candle closes in the extreme top or bottom 20% of its range.
  • High-Velocity Trend Breakout: Targets trend continuation following a deep structural correction. Triggers when both short-term and macro trends align, RSI crosses over exhaustion barriers, and the active candle confirms the directional bias.

5.2 Tier 2: Medium Signals

Standard swing setups capturing minor pullbacks or momentum shifts (2 components agree):

  • Standard Mean-Reversion / Trend Pullback: Identifies entries where the absolute Z-Score exceeds 1.2 combined with secondary momentum confirmation zones or temporary oversold dips within an established uptrend.
  • Weak Momentum Cross-Over: Identifies baseline momentum breakouts based entirely on trend alignment and early RSI directional shifts (RSI crossing above 35 or below 65).

6. Risk & Safety Features

The algorithm inherently mitigates systemic risk via two primary functions:

  • Anti-Whipsaw Time Cooldown: The TIMEOUT(2) wrapper enforces an absolute two-candle block freeze immediately after any trade generation vector. This protects against cascading losses in highly volatile news events and provides the denoising engine time to recalibrate.
  • Implicit Volatility Protection: Because standard deviation acts as the baseline divisor for the Z-Score engine, the strategy automatically scales its boundaries outwards during highly volatile periods, preventing the bot from chasing dangerous anomalies.

Level Up Your Quantum Flux Setup