Forex Signal Engine
Phase 1 · 110 Engines · 100 Paper Models · Signal System Live
v6.0
LIVE
Forex Signal Engine
v6.0 · 111 Engines · Complete Institutional Architecture
110
Engines
200+
Variables
11
Layers
30
Pipeline Stages
Version History
VersionEnginesAdded
v11–54Original 105-page document
v255–62COT · OB · FVG · Reversal Warning
v363–86Kalman · HMM · Fourier · Wyckoff · Entropy
v3.187Monte Carlo Simulation
v488–95Stats · PCA · Kelly · Bayes · ML
v596–110100 Paper Models — 6 new groups
v6111Liquidity Intent Engine + Phase 1 Signal System
Group 1 — E63–68
E63
Derivatives Model
E64
Microstructure ↑
E65
Timing Engine
E66
Kalman Filter ↑
E67
OFI Multi-Window ↑
E68
Stochastic Calc ↑
Group 2 — E69–74
E69
Integrals Model
E70
Macro Flow
E71
Regime Engine
E72
VWAP + Vol Profile ↑
E73
OFI Footprint
E74
Entropy Filter
Group 3 — E75–79
E75
Partition Model
E76
Structure Engine
E77
Hidden Markov Model
E78
K-Means + DBSCAN
E79
Liquidity Traps
Group 4 — E80–86
E80
Acceleration ↑
E81
Signal Strength
E82
Manipulation Detect
E83
Cross-Asset Influence
E84
Fourier Series
E85
Wyckoff Accumulation
8 Mathematical Models — E88–95 (v4)
E88
Statistical Model
Z-score · t-test · p<0.05 gate
E89
Linear Algebra / PCA
160→8 independent factors
E90
Optimization ↑
Kelly · Sharpe · Vol targeting
E91
Methodology Model
IC · Walk-forward · SHAP
E92
Information Theory
MI · KL Divergence · Transfer Entropy
E93
Bayesian + EV ↑
BMA · Sequential update · EV gate
E94
Bayesian + Structure
P(Up/Down/Range) per candle
E95
Machine Learning ↑
XGBoost · RF · LSTM · CV
Client Signal UI
Clean card · exactly what clients see · probability · confidence · grade · levels · timer
NEW SIGNAL
EUR / USD
● SELL
LONDON · 15M
74%
Probability
WIN CHANCE
88%
Confidence
HIGH
A+
Grade
INSTITUTIONAL
Entry Price
1.0955
Stop Loss
1.0988
TP1 · 40%
1.0855
TP2 · 35%
1.0810
✓ Trade Safe
E62 active · 1/7 signals
18%
TRENDING 62% MC:71% HMM:Bear 84% IM:3/4 ✓ No Manip
Signal Valid For
12:00
Auto-expires
Cancel if missed
Configure Card
Currency Pair
Direction
Probability %74%
Confidence %88%
Reversal Level
Client Sees
✓ Pair + Direction
✓ Probability % (win chance)
✓ Confidence % (reliability)
✓ Grade A+/A/B/Reject
✓ Entry · SL · TP1 · TP2
✓ Reversal Warning status
✓ 12-min countdown timer
✓ Session · Regime · COT tags
Grade System v6
GradeProb%Conf%Size
A+>70%>80%Full (Half-Kelly)
A>60%>70%Normal
B>55%>60%Half size
<55%anySkip
Engine 62 — Reversal Warning
7 weighted signals · 4 alert levels · active post-entry until TP/SL hit
7 Signals — Weighted Scoring
RV1 Structure Break25 pts · CHoCH fires against position
RV2 OFI Delta Flip20 pts · order flow reverses
RV3 Counter Absorption18 pts · institutions against you
RV4 Volume Spike Against15 pts · large opposing volume
RV5 RSI/MACD Divergence10 pts · momentum diverging
RV6 Spread Expansion7 pts · liquidity withdrawing
RV7 Opposing Pool Active5 pts · opposing pool tapped
RevScore = Σ(signal_i × weight_i) [Max 100] 0–15 → L0 CLEAR · Hold full position 16–35 → L1 WATCH · Tighten SL + close 25% 36–65 → L2 WARNING · Close 50–75%, SL to entry 66–100→ L3 EXIT NOW · Close 100% immediately
Live Calculator
RV1 Structure BreakNO
RV2 OFI Delta FlipNO
RV3 Counter AbsorptionNO
RV4 Volume Spike AgainstNO
RV5 RSI/MACD DivergenceNO
RV6 Spread ExpansionNO
RV7 Opposing Pool ActiveNO
✓ LEVEL 0 — CLEAR
Trade healthy. Hold.
Action: Hold
Active signals0/7
Engine 87 — Monte Carlo
10,000 GBM price path simulations · P(TP)% · P(SL)% · Confidence% · Expected PnL
Formulas + All 15 Variables
// GBM SIMULATION (10,000 paths) S_t = S₀ × exp((μ−σ²/2)×dt + σ×√dt×Z) Z ~ N(0,1) N=10,000 dt=1 bar // OUTCOMES P(TP) = Count(TP hit first) / N P(SL) = Count(SL hit first) / N // WILSON CI → CONFIDENCE % CI = P ± 1.96×√(P×(1−P)/N) Confidence% = (1 − CI_width) × 100 // EXPECTED PnL E[PnL] = P(TP)×RR − P(SL)×1 [R-multiples] // VARIABLES: MC-1:N MC-2:μ MC-3:σ // MC-4:S₀ MC-5:dt MC-6:TP MC-7:SL // MC-8:MaxBars MC-9:P(TP)% MC-10:P(SL)% // MC-11:CI_width MC-12:Confidence% // MC-13:E[PnL] MC-14:P05 MC-15:Median
Live Simulator
Entry Price1.0955
Stop Loss1.0988
Take Profit1.0855
Volatility σ (pips)8p
Drift μ-2
Simulations N5k
P(TP)
P(SL)
Confidence
Exp PnL
MC Grade
Calculating...
Engine 77 — Hidden Markov Model
Viterbi algorithm · regime switching · detects transitions 2–5 bars before price confirms
Complete HMM Specification
Hidden StatesBull · Bear · Range · Crisis
ObservationsReturns · Vol · Volume · Spread
AlgorithmViterbi (most likely sequence)
TrainingBaum-Welch EM algorithm
Output 1Most likely current state
Output 2Transition probability (warning)
Warning thresholdP(transition) > 0.25
// VITERBI State_t = argmax P(S_t | O_1..O_t, λ) λ = (A_transition, B_emission, π_initial) // TRANSITION MATRIX A (FX calibrated) Bull Bear Range Crisis Bull [0.85 0.08 0.05 0.02] Bear [0.07 0.84 0.07 0.02] Range [0.10 0.10 0.78 0.02] Crisis [0.05 0.15 0.10 0.70] // FORWARD ALGORITHM α_1(i) = π_i × B_i(O_1) α_t(j) = [Σ_i α_{t-1}(i) × A_ij] × B_j(O_t) // REGIME CHANGE WARNING If P(Bear→Range) > 0.25 → fire warning → Reduce position 30%, tighten SL
Current HMM State — Live Example
Bull Trend
10%
Bear Trend
84%
Range
4%
Crisis
2%
BEAR TREND — 84% confidence
Transition to Range: 7% (below 25% warning)
Regime stable → hold SELL signal
HMM Feeds Into
→ E71 Regime EngineConfirms 5-state vector
→ E94 Bayesian StructureHMM state = prior
→ E107 Regime-MLSelects model per state
→ E62 Reversal WarningTransition → raises RV score
→ Client Card tag"HMM:Bear 84%"
HMM vs Rule-Based Regime Detection
FeatureRule-Based (E36)HMM (E77)
Detection speedAfter price confirms2–5 bars EARLIER
Output typeBinary stateProbability distribution
UncertaintyNot handledQuantified as %
Transition warningNoneYes — P(transition) > 0.25
Adapts to dataFixed rulesBaum-Welch learns from market
Upgraded Engines
12 existing engines · new formulas from papers · nothing removed · only expanded
E66 Kalman Filter Paper Model 5
✓ NEW: 3-state vector [price + velocity + acceleration] + Kalman trend slope
= [x_t, ẋ_t, ẍ_t]ᵀ ← 3-state Kalman F = [1 dt dt²/2; 0 1 dt; 0 0 1] Trend slope = ẋ_t (velocity component) ẋ > 0 AND ẍ > 0 → accelerating up ẋ > 0 AND ẍ < 0 → decelerating → reversal
E68 Stochastic Calculus Paper Models 17,18
✓ NEW: OU Half-life estimation formula added
Half-life = ln(2) / θ θ from OLS: ΔX_t = α + β·X_{t-1} θ = -β/dt HL < 2 bars → scalp · HL 2–10 → intraday
E72 VWAP + Vol Profile Paper Models 20,21
✓ NEW: VWAP deviation Z-score + intraday reversion probability
VWAP_Z = (Price - VWAP) / σ_VWAP |VWAP_Z| > 2.0 → reversion likely P_revert = 1 - exp(-λ × |VWAP_Z|)
E80 Acceleration Shift Paper Model 12
✓ NEW: Jerk (3rd derivative) + TAS score
Jerk = (A_t - A_{t-n}) / n TAS = tanh(A / ATR) ∈ [-1, +1] A>0, Jerk<0 → peak → prepare exit
E29 Volatility Expansion Paper Models 30,31,32
✓ NEW: GARCH(1,1) + EGARCH + Realized Volatility
GARCH: σ²_t = ω + α·ε²_{t-1} + β·σ²_{t-1} EGARCH: ln(σ²_t) = ω+α|z|+γz+β·ln(σ²) RV_t = √(Σ r²_{t,i}) [intraday]
E50 Dynamic Stop Paper Models 38,39
✓ NEW: Rolling ATR + intraday seasonality
ATR_adj = ATR_roll × Season_factor London open: 1.45× · NY: 1.38× · Asia: 0.62× SL = Entry − 1.5 × ATR_adj
E90 Optimization Paper Models 84,86,87
✓ NEW: Sharpe optimizer + Vol targeting + Dynamic leverage
Lev_t = Target_σ / (σ_t × √252) DynLev = min(MaxLev, Target/GARCH_σ_t) w_opt = argmax[(μ-r_f)/σ_p]
E93 Bayesian + EV Paper Model 78
✓ NEW: Bayesian Model Averaging across all ML models
BMA_P = Σ_k [P(M_k|data) × P(win|M_k)] Models: MC · Bayesian · XGBoost · RF · LSTM · RL → More robust than fixed ensemble weights
E95 Machine Learning Paper Models 69,71,80
✓ NEW: Random Forest + LSTM added. Cross-validation scoring.
RF_P = (1/T) × Σ tree_t.predict(X) LSTM: 60-bar sequence → P̂(win) CV_score = mean OOS accuracy k=5 folds
E67 OFI Multi-Window Paper Model 25
✓ NEW: Order flow exhaustion signal
Exhaustion = (OFI_peak - OFI_current) / OFI_peak Score > 0.60 → flow exhausting → reversal
E64 Microstructure Paper Models 56,68
✓ NEW: Tick imbalance + Price impact elasticity
TI_t = Σ sign(ΔP_i) / √n PIE = ΔPrice / ΔVolume
E35 Liquidity Trap Paper Model 62
✓ NEW: Formal stop-hunt probability model
SHP = Σ(condition_i × weight_i) Weights: [.30,.25,.20,.15,.10] SHP > 0.65 → stop hunt → enter opposite
Momentum & Trend — E96–98
Paper Models 1–15 · Log-return · EMA · MACD · Hurst · Wavelet · RSI regime
E96 — Momentum & Trend Core NEW
Paper 1 — Log-returnr_t(τ) = ln(P_t/P_{t-τ})
Paper 2 — EMA spreadEMA(8)-EMA(55)/ATR
Paper 3 — MACD strength(MACD-Signal)/ATR
Paper 4 — Momentum Z-score(r_t-mean)/std
Mom_composite = Σ(w_τ × ln(P_t/P_{t-τ})) MACD_strength = (MACD - Signal) / ATR Mom_Z = (r_t - mean(r,100)) / std(r,100)
E97 — Trend Advanced NEW
Paper 8 — DonchianPrice vs n-period H/L
Paper 10 — Hurst exponentH = log(R/S)/log(n)
H > 0.5Trending (persistent)
H < 0.5Mean reverting
Paper 11 — Adaptive MAAMA = AMA + c×(P-AMA)
Paper 13 — WaveletTrend = IDWT(low_freq)
H = log(R/S) / log(n) c = (ER × (fast_sc - slow_sc) + slow_sc)² AMA_t = AMA_{t-1} + c × (P_t - AMA_{t-1})
E98 — Momentum Regime NEW
Paper 14 — RSI regimeRSI state classification
RSI > 70Overbought — fade
RSI 55–70Bullish momentum
RSI 30–55Bearish momentum
Paper 15 — Cross-pair corrρ(EUR,GBP)~0.82
RSI_slope = (RSI_t - RSI_{t-3}) / 3 ρ(A,B) = Corr(r_A(τ), r_B(τ)) Cross_confirm = 1 if both pairs same dir
Mean Reversion — E99–100
Paper Models 16–29 · Z-score · OU · Half-life · Bollinger · Spread · Entropy
E99 — Mean Reversion Core NEW
Paper 16 — Z-scoreZ=(X-μ)/σ · |Z|>2.0
Paper 17 — OU processdX=θ(μ-X)dt+σdW
Paper 18 — Half-lifeHL=ln(2)/θ
Paper 19 — Bollinger rev.BRS=(P-Lo)/(Hi-Lo)
Paper 20 — VWAP deviationZ-score from VWAP
Z_t = (Price - MA(n)) / std(n) HL = ln(2)/θ [bars to 50% reversion] BRS < 0.05 → extreme low → buy
E100 — Mean Reversion Advanced NEW
Paper 21 — Intraday rev. probP=1-exp(-λ|Z|)
Paper 23 — Spread reversionEURUSD vs DXY ratio
Paper 28 — Quantile rev.Pct_rank >95% → sell
Paper 29 — Entropy reversionLow H + |Z|>1.5
Z_spread = (Spread - mean) / std Pct_rank = Rank(Price, 252) / 252 H < 2.0 AND |Z| > 1.5 → high conf reversal
Volatility — E101–102
Paper Models 30–44 · GARCH · EGARCH · Realized Vol · Jump Detection · Vol-of-Vol
E101 — Volatility Core NEW
Paper 30 — GARCH(1,1)σ²=ω+αε²+βσ²
α+β constraint<1 for stationarity
Paper 31 — EGARCHLeverage: γ<0
Paper 32 — Realized volRV=√Σr²_intraday
Paper 34 — ClusteringAutocorr(|r_t|,lag)
σ²_t = ω + α·ε²_{t-1} + β·σ²_{t-1} ln(σ²_t)=ω+α|z|+γz+β·ln(σ²_{t-1}) γ<0 → down moves → higher vol
E102 — Volatility Advanced NEW
Paper 36 — IV vs realizedIV-RV=risk premium
Paper 41 — Jump detectionBN-S statistic
Paper 42 — Vol-of-volstd(σ)/mean(σ)
Jump ratio >0.5Significant jump → avoid
J_t = max(0, RV_t - BV_t) BV_t = (π/2)·Σ|r_i||r_{i-1}| VoV_t = std(σ_{t-n}..σ_t) / mean(σ)
Macro & Carry — E103–104
Paper Models 45–54 · Rate Differential · CB Expectations · RORO · Commodity
E103 — Macro & Carry Core NEW
Paper 45 — Rate differentiali_base - i_quote
Paper 46 — CB expectationsOIS market pricing
Paper 47 — Inflation diffCPI_A - CPI_B
Paper 49 — DXY correlationρ(pair,DXY,20bars)
Real_rate = nominal - CPI Expected_Δrate = OIS_12m - current_rate ρ_DXY: EURUSD ≈ -0.92 typical
E104 — Macro Regime NEW
Paper 50 — RORO indexSPX+Gold+VIX+DXY
RORO > +0.5Risk ON → AUD/JPY ↑
RORO < -0.5Risk OFF → JPY/CHF ↑
Paper 53 — CommodityOil→CAD ρ≈-0.75
RORO = Σ(w_i × asset_i) w = [0.35, 0.25, 0.20, 0.20] Chow test: structural break detection
Microstructure Advanced — E105
Paper Models 55–68 · Full 14-model microstructure suite
E105 — Microstructure Advanced NEW
Paper 55 — OFIBuyVol-SellVol
Paper 56 — Tick imbalanceTI=Σsign(ΔP)
Paper 57 — Spread expansionSpread/ATR ratio
Paper 58 — Liq depthΣ(size at level)
Paper 59 — Hidden liqIceberg detection
Paper 60 — Trade clusteringDBSCAN on trades
Paper 61 — Volume deltaAskVol-BidVol
Paper 62 — Stop-hunt probSHP=Σ(cond×w)
Paper 63 — Market impactα×σ×√(Q/V)
Paper 64 — Price boundVWAP±kσ
Paper 65 — Liq vacuumSparse vol zones
Paper 66 — Exec pressureUrgency of fills
Paper 67 — OB proxyReconstructed book
Paper 68 — PIEΔP/ΔVolume
TI_t = Σ sign(ΔP_i) / √n PIE = ΔPrice / ΔVolume [basis points per 1M] Iceberg: Refresh_rate = Volume_at_level / Time SHP = Σ(condition_i × weight_i) > 0.65 → stop hunt
Deep ML & Meta — E106–108
Paper Models 69–82 · LSTM · Transformer · Autoencoder · Meta-labeling · RL Agent
E106 — Deep Learning NEW
Paper 71 — LSTM60-bar sequence → P̂
Paper 72 — TransformerMulti-head attention
Paper 73 — AutoencoderAnomaly detect
LSTM: 128→64→32 hidden Attention(Q,K,V)=softmax(QKᵀ/√d_k)V Recon_err > mean+3σ → anomaly → block
E107 — ML Meta Layer NEW
Paper 74 — Meta-labelingWhen to act on signal
Paper 75 — Regime MLModel per regime state
Paper 79 — Online learningPrequential eval
Meta_P = P(primary signal profitable) Execute only if Meta_P > 0.60 Model weight decay: w_t = w_{t-1} × 0.98
E108 — RL & Validation NEW
Paper 77 — RL agent (PPO)Position sizing RL
Paper 80 — Cross-validationk=5 OOS scoring
Paper 82 — CalibrationPlatt scaling
PPO: max E[min(ratio×A, clip(ratio,1±ε)×A)] P_calibrated = σ(A × P_raw + B) → P=0.70 means 70% empirical win rate
Risk & Execution — E109–110
Paper Models 83–92 · VaR/CVaR · Kelly · Drawdown · Slippage · Execution Cost
E109 — Risk Advanced NEW
Paper 83 — VaR/CVaRHistorical simulation
Paper 85 — DD controlCircuit breakers
DD > 5%Reduce size 50%
DD > 10%Halt all signals
Paper 87 — Vol targetingTarget_σ/Realized_σ
VaR_α = -Quantile(P&L, 1-α) CVaR_α = E[-P&L | P&L < -VaR] DD_t = (Peak - NAV) / Peak Lev_t = Target_σ / (σ_t × √252)
E110 — Execution Advanced NEW
Paper 89 — Corr riskρ-adjusted sizing
Paper 90 — Slippage modelf(vol, size, spread)
Paper 91 — Trade timingTWAP / VWAP optimal
Paper 92 — Execution costTotal=S+I+C
TotalCost = Spread + MarketImpact + Commission Net_edge = EV - TotalCost Trade only if Net_edge > 0 CorRisk: reduce by √(1/(1+ρ))
All 111 Engines
Complete reference · v1 original → v6 new · every engine listed
Engines 1–62 (v1 Original + v2)
#Engine NameVer
E01–E11Entry Timing · Real Market · Sweep Detection · Signal Decay · Portfolio Exposure · Strategy Health · Execution Opt · Position Sizing · Multi-TF · Manipulation · Signal Qualityv1
E12–E22MicroStructure · Sweep Confirm · Liq Target · Decay II · LSI · Corr Regime · Sweep MisClass · Session Regime · Exec Drift · Vol Phase · Consensusv1
E23–E333-Layer Stability · Currency Strength ×4 · Liq Map · Vol Expansion↑ · Global Liq · CB Divergence · Session Liq · Corr Shockv1
E34–E44Liq Gravity · Liq Trap↑ · Market Regime · Noise Filter · Footprint · Momentum · Mean Reversion · Breakout Prob · Adaptive Weight · Risk Filters · Recalibrationv1
E45–E54Signal Quality II · Trailing Stop · SMC+VP · Cross-Asset · MicroStruct Pred · Dynamic Stop↑ · Liq Intent · Risk/Reward · Trade Filter · Liq Gravity Finalv1
E55–E62News Impact · Intermarket · COT · OB Valid · FVG Prob · Session Range · Divergence · Live Reversal Warningv2
Engines 63–95 (v3 + v4)
#EngineVer
63Derivatives Model (GEX · Barriers · Delta)v3
64↑Microstructure (Tick imbalance · PIE added)v3↑
65Timing Enginev3
66↑Kalman Filter (3-state: price+vel+accel)v3↑
67↑OFI Multi-Window (exhaustion signal added)v3↑
68↑Stochastic Calculus (OU half-life added)v3↑
69Integrals Model (CVPOC · ∫OFI dt)v3
70Macro Flow Modelv3
71Regime Engine (5-state vector)v3
72↑Volume Profile + VWAP (Z-score + P_revert)v3↑
73OFI Footprintv3
74Entropy Filter (H>3.5 block)v3
75Partition Modelv3
76Structure Engine (CHoCH · BOS)v3
77Hidden Markov Model (Viterbi)v3
78K-Means + DBSCANv3
79Liquidity Trapsv3
80↑Acceleration Shift (Jerk + TAS)v3↑
81Signal Strength Output (0–100)v3
82Manipulation Detectionv3
83Cross-Asset Influencev3
84Fourier Series Modelv3
85Wyckoff Accumulationv3
86Momentum Spikesv3
87Monte Carlo (10k paths · P(TP)% · Conf%)v3.1
88Statistical Model (Z-score · t-test)v4
89Linear Algebra / PCA (160→8 factors)v4
90↑Optimization (Kelly · Sharpe · Vol targeting↑)v4↑
91Methodology (IC · Walk-forward · SHAP)v4
92Information Theory (MI · KL · Transfer Entropy)v4
93↑Bayesian + EV (BMA added)v4↑
94Bayesian + Structurev4
95↑Machine Learning (RF + LSTM added)v4↑
Engines 96–111 (v5 + v6)
#EngineVer
96Momentum & Trend Core (log-ret · EMA · MACD · Z-score)v5
97Trend Advanced (Donchian · Hurst · AMA · Wavelet)v5
98Momentum Regime (RSI regime · Cross-pair corr)v5
99Mean Reversion Core (Z-score · OU · Half-life · Bollinger)v5
100Mean Reversion Advanced (Spread · Quantile · Entropy)v5
101Volatility Core (GARCH · EGARCH · RV · Clustering)v5
102Volatility Advanced (IV · Jump · VoV · Tail · Seasonality)v5
103Macro & Carry Core (Rate diff · CB · Inflation · DXY)v5
104Macro Regime (RORO · BoP · FX regime · Commodity)v5
105Microstructure Advanced (Full 14-model suite)v5
106Deep Learning (LSTM · Transformer · Autoencoder)v5
107ML Meta Layer (Meta-labeling · Regime-ML · Online)v5
108RL & Validation (PPO agent · CV scoring · Calibration)v5
109Risk Advanced (VaR/CVaR · DD control · Vol targeting)v5
110Execution Advanced (Slippage · TWAP · Exec cost)v5
112Liquidity Intent Engine (E112) — 15 variables, 5 sub-enginesv6 NEW
Complete Pipeline v6 — 30 Stages
All 111 engines sequenced · 5 new v5 stages · 110 engines · Phase 1
1
DATA INPUT
OHLC · Tick · Volume · COT · Options · DXY · US10Y · Gold · SPX · CPI
2
KILL SWITCHES (E74 · E82 · E88 · E92)
Entropy · Manipulation · Statistical · KL Divergence → one fail = STOP ALL
3
AUTOENCODER ANOMALY (E106)
Reconstruction error > 3σ → unknown condition → STOP ALL
4
WEEKLY BIAS (E57 · E70 · E103 · E104)
COT Z-score · Macro flow · IRD · RORO index · Macro regime classifier
5
KALMAN (E66↑) + PCA (E89)
3-state Kalman: price+vel+accel. 160 vars → 8 independent factors.
6
GARCH VOLATILITY (E101 · E102)
GARCH(1,1) + EGARCH → σ estimate · Vol regime: Low/Med/High/Extreme · Jump detection
7
MARKET CONTEXT (E71 · E77 · E94 · E104)
Regime vector · HMM state · Bayesian structure · Macro regime classifier
8
REGIME-AWARE ML (E107)
Select model trained on current regime: Trend/Range/Crisis model activated
9
MOMENTUM + MEAN REVERSION (E96–E100)
Log-return mom · Hurst · AMA · Wavelet · Z-score · OU half-life · Bollinger · Spread rev
10
ALL FEATURES (200+ VARIABLES)
All engines calculate normalized scores 0–1 on cleaned, context-aware data
11
MICROSTRUCTURE SUITE (E64↑ · E67↑ · E73 · E105)
Tick imbalance · OFI exhaustion · PIE · Hidden liq · Trade clustering · Liq vacuum
12
STRUCTURE + CYCLE (E76 · E84 · E85 · E80↑)
CHoCH · BOS · Wyckoff Phase · Fourier phase · Acceleration Jerk · TAS score
13
LIQUIDITY SUITE (E28 · E34 · E35↑ · E51 · E79)
Stop-hunt prob · Sweep → Absorption → Intent → Trap prob · Footprint confirm
14
6 FAMILY FUSION + INTEGRALS (E69–E74)
Micro · Price · Momentum · Macro · AI · Behavioral → 6 independent probabilities
15
DEEP LEARNING ENSEMBLE (E106 · E107)
LSTM 60-bar · Transformer attention · Meta-labeling filter (Meta_P > 0.60)
16
INTERMARKET (E56 · E83 · E103 · E104)
DXY+US10Y+Gold+SPX min 3/4 · RORO · Rate diff · Transfer entropy
17
ML ENSEMBLE + BMA (E95↑ · E93↑)
XGBoost + RF + LSTM → BMA weights. CV score per model.
18
MONTE CARLO (E87)
10,000 GBM paths → P(TP)=71% · P(SL)=22% · Confidence=88% · EV=+1.22R
19
BAYESIAN UPDATING (E93↑ BMA)
Sequential Bayes + BMA. Posterior = 74%. Updated this bar.
20
5 HARD DECISION GATES
EV>0 · IM 3/4 · KL<0.5 · COT not contra · No manipulation → ALL 5 must pass
21
EXECUTION COST CHECK (E110)
Net_edge = EV - TotalCost. If Net_edge < 0 → skip trade.
22
VaR / DD CIRCUIT BREAKER (E109)
DD>5% → size 50%. DD>10% → halt all. VaR limit check.
23
SIGNAL STRENGTH (E81) + RL SIZE (E108)
SS=82/100 → Grade A+. RL agent selects position multiplier.
24
KELLY + VOL TARGETING (E90↑ · E109)
f*=0.61 → Half-Kelly=30.5%. DynLev=Target_σ/GARCH_σ. Final size.
25
CORRELATION RISK (E110)
Correlated positions: reduce by √(1/(1+ρ)). Max 6% portfolio.
26
TIMING + EXECUTION (E65 · E110)
Execution timing score. TWAP/VWAP optimal. AdjEntry = Raw + Spread + Slippage.
FINAL SIGNAL → CLIENT CARD
EURUSD SELL · Probability 74% · Confidence 88% · Grade A+ · Entry/SL/TP · 12 min
30
REVERSAL MONITOR (E62) + ONLINE LEARN (E107)
7 signals · 4 levels · Active until TP/SL. Trade outcome → online model update.
All Formulas
Complete mathematical reference · all 111 engines
Core Risk & Liquidity
L_i = w1·S + w2·V + w3·P + w4·F G = Strength / Distance Lot = Risk / (SL × PipValue) SL = Entry − 1.5 × ATR_adj EV = P×RR − (1-P)
Kalman + Stochastic
x̂_k = x̂_k-1 + K(z_k - x̂_k-1) dS = μSdt + σSdW_t [GBM] dX = θ(μ-X)dt + σdW_t [OU] HL = ln(2)/θ [half-life]
Volatility + GARCH
σ²_t = ω + α·ε²_{t-1} + β·σ²_{t-1} ln(σ²_t)=ω+α|z|+γz+β·ln(σ²) RV_t = √(Σ r²_{t,i}) J_t = max(0, RV_t - BV_t)
Bayesian + Kelly
P(w|e) = P(e|w)×P(w)/P(e) BMA_P = Σ P(M_k|data)×P(win|M_k) f* = (p×RR-(1-p))/RR Lev_t = Target_σ/(σ_t×√252)
Monte Carlo + PCA
S_t=S₀×exp((μ-σ²/2)dt+σ√dt·Z) P(TP) = Count(TP first)/N CI = P±1.96×√(P(1-P)/N) Σ×v=λ×v [eigendecomposition]
Info Theory + Entropy
H = -Σ p·log₂(p) I(X;Y)=Σ p(x,y)·log[p(x,y)/p(x)p(y)] D_KL(P‖Q)=Σ P·log[P/Q] T(X→Y)=H(Y_t|Y_{t-1})-H(Y_t|Y_{t-1},X_{t-1})
Momentum + Mean Rev
r_t(τ) = ln(P_t/P_{t-τ}) H = log(R/S)/log(n) [Hurst] Z_t = (Price-MA)/std P_rev = 1-exp(-λ×|Z|) Z_spread = (Spread-mean)/std
Risk + Execution
VaR_α = -Quantile(P&L, 1-α) CVaR_α = E[-P&L | P&L < -VaR] TotalCost = Spread+Impact+Comm Net_edge = EV - TotalCost DD_t = (Peak-NAV)/Peak
Engine 112 — Liquidity Intent Engine
Next liquidity price predictor · reversal vs continuation · timing window · 5 sub-engines · 15 variables
5
Sub-Engines
15
Variables
4
Layers
2
Outcomes
74%
P(Reversal) Live
12m
Pred. Window
Key Principle — From Your Research Papers
The Liquidity Intent Model does not predict direction from the sweep alone. It predicts the behaviour of market participants after the sweep — and from that behaviour, infers the next liquidity price target with a timing window.
Question the model answers: After a liquidity sweep occurs, will price REVERSE or CONTINUE? AND what is the next liquidity target price? AND how long until it gets there? Reversal (Stop Hunt): Sweep + High Absorption → price returns → Target: opposite liquidity pool Continuation (Breakout Fuel): Sweep + Strong Momentum → price continues → Target: next stop cluster in sweep direction
// FULL PIPELINE (from PDF research) Market Data ↓ SUB-ENGINE 1: Liquidity Sweep Detection ↓ SUB-ENGINE 2: Feature Extraction (15 vars) ↓ SUB-ENGINE 3: Intent Classification Model ↓ SUB-ENGINE 4: Regime Adjustment Layer ↓ SUB-ENGINE 5: Target Selection + Timing ↓ SIGNAL OUTPUT: Next Liquidity Price: 1.0855 Direction: REVERSAL SHORT P(Reversal): 74% Time Window: 8–14 min Confidence: A
Sub-Engine 1 — Liquidity Sweep Detection
TRIGGER
Converts raw price data into a discrete, mathematically-defined sweep event. Nothing downstream fires unless this confirms TRUE.
LIM-1 SweepDepth|BreakPrice − LiqLevel| / ATR
LIM-2 SweepDirectionUp = BSS above highs · Down = below lows
LIM-3 VolumeSpikeVol_sweep / AvgVol(20) · gate: >1.5×
LIM-4 ReversionTimeBars until price returns inside range
Liquidity sourcesEqual H/L · Session H/L · VWAP bands · OB levels
// SWEEP DETECTION (from PDF) SweepDepth = |BreakPrice − LiquidityLevel| / ATR // THREE CONDITIONS ALL REQUIRED Condition 1: Price breaks liquidity level Condition 2: SweepDepth > 0.25 ATR Condition 3: VolumeSpike > 1.5× average // ADDITIONAL CONFIRMATION + Spread expansion detected (E16) + Liquidity cluster penetrated (E28) Output: SweepDetected = TRUE / FALSE SweepDirection = Up / Down SweepDepth = 0.40 ATR (example) // DEPTH INTERPRETATION 0.10–0.25 ATR → micro sweep → weak signal 0.25–0.50 ATR → valid sweep → good signal > 0.50 ATR → deep sweep → strong signal
Sub-Engine 2 — Feature Extraction (15 Variables)
FEATURES
Immediately after sweep detection, 15 variables are calculated across 5 categories. These form the feature vector fed into the intent classifier.
// CATEGORY 1: LIQUIDITY VARIABLES LIM-1 SweepDepth = |Break−Level| / ATR LIM-5 LiquidityDensity = n_touches × vol_cluster_strength LIM-11 NextLiqDistance = distance to next pool (pips) LIM-12 StopDensity = stops per ATR band near sweep // CATEGORY 2: ORDER FLOW VARIABLES LIM-6 OFI = (BuyVol − SellVol) / TotalVol LIM-7 AbsorptionScore = Volume / |PriceChange| LIM-8 IcebergProb = refresh_rate at level (E105) LIM-3 VolumeSpike = Vol_sweep / AvgVol(20) // CATEGORY 3: MICROSTRUCTURE VARIABLES LIM-9 BookImbalance = BidVol / (BidVol + AskVol) LIM-13 SpreadExpansion = Spread_current / AvgSpread LIM-14 MicroPriceDiverg = MicroPrice − MarketPrice MicroPrice = (Ask×BidVol + Bid×AskVol)/(BidVol+AskVol) // CATEGORY 4: MOMENTUM VARIABLES LIM-10 MomentumVelocity = ΔPrice / ΔTime (post-sweep) LIM-4 ReversionSpeed = Time_return / Time_breakout LIM-15 VolatilityExpan = ATR_current / ATR_prev // CATEGORY 5: MACRO ALIGNMENT LIM-X MacroAlignment = sweep_dir matches macro bias? (+1 = aligned, 0 = neutral, -1 = opposed) Sources: COT(E57) · DXY · Bond yields · RORO(E104) // EXAMPLE FEATURE VECTOR (EURUSD reversal case) X = [0.40, 0.70, 1.9, -0.22, 0.65, 0.18, 1.3, 0.25, 45, 0.8] [Depth RevSpd VolSpk OFI Abs Mom Spr Vol Dist Macro]
Sub-Engine 3 — Intent Classification Model
CLASSIFIER
Converts 15 features into a probability score. Uses a weighted logistic model with learned weights. Output: P(Reversal) and P(Continuation).
// WEIGHTED INTENT SCORE (from PDF) IntentScore = w1 × SweepDepth [w1 = +0.80] + w2 × ReversionSpeed [w2 = +1.20] + w3 × VolumeSpike [w3 = +0.70] + w4 × AbsorptionScore [w4 = +1.10] − w5 × MomentumVelocity [w5 = −0.90] + w6 × BookImbalance [w6 = +0.85] + w7 × SpreadExpansion [w7 = +0.60] + w8 × MacroAlignment [w8 = +0.60] + w9 × LiquidityDensity [w9 = +0.75] − w10× VolatilityExpansion [w10= −0.40] // POSITIVE score → REVERSAL bias // NEGATIVE score → CONTINUATION bias // PROBABILITY TRANSFORMATION (sigmoid) P(Reversal) = 1 / (1 + exp(−IntentScore)) P(Continuation) = 1 − P(Reversal) // EXAMPLE CALCULATION (EURUSD) IntentScore = 0.8×0.40 + 1.2×0.70 + 0.7×1.9 + 1.1×0.65 − 0.9×0.18 + 0.6×0.8 IntentScore = 0.32 + 0.84 + 1.33 + 0.72 − 0.16 + 0.48 = 3.53 P(Reversal) = sigmoid(3.53) = 0.97 → 97% // ML ENHANCEMENT: XGBoost replaces fixed weights // Training label: 1=reversal, 0=continuation // Features: all 15 LIM variables // Validated via walk-forward (E91 methodology)
Sub-Engine 4 — Regime Adjustment Layer
REGIME
Liquidity sweeps behave completely differently depending on market regime. This layer adjusts the raw probability from Sub-Engine 3 based on the current regime (from E71 HMM + E77).
// REGIME DETECTION INPUTS (from existing engines) TrendStrength = ADX + Kalman velocity (E66) HurstExponent = H from E97 VolatilityReg = GARCH regime (E101) HMM_State = Bear/Bull/Range/Crisis (E77) RangeCompress = Bollinger band width (E99) // REGIME CLASSIFICATION TRENDING: ADX > 25 AND H > 0.55 AND HMM=Bull/Bear RANGING: ADX < 20 AND H < 0.45 AND range compress high VOL_EXPAND: GARCH_σ > 1.5× average LOW_LIQ: Volume < 0.5× average // REGIME ADJUSTMENT RULES (from PDF) TRENDING regime: → continuation_weight × 1.40 → reversal_weight × 0.70 → P(Reversal) adjusted DOWN RANGING regime: → reversal_weight × 1.35 → continuation_weight× 0.75 → P(Reversal) adjusted UP VOL_EXPAND regime: → continuation_weight × 1.25 → wider timing window (+50%) LOW_LIQ regime: → all probabilities pulled toward 0.50 → timing window × 2.0 (more uncertain) // EXAMPLE ADJUSTMENT Raw P(Reversal) = 0.70 [from Sub-Engine 3] Regime = RANGING [from E71 + E77] Adjustment factor = 1.35 Adjusted P(Reversal) = min(0.95, 0.70 × 1.35) = 0.74 // REGIME ALSO ADJUSTS TIMING WINDOW Trending → faster moves → shorter time window Ranging → slower moves → longer time window
Sub-Engine 5 — Target Selection + Timing Prediction (The Signal)
SIGNAL OUTPUT
This is the core output. After knowing intent (reversal vs continuation), the engine selects the most probable NEXT LIQUIDITY PRICE and calculates the time window for price to reach it — based on momentum velocity, ATR, session timing, and OU mean-reversion speed.
// STEP 1: IDENTIFY CANDIDATE TARGETS If REVERSAL signal: Target candidates (opposite side): T1 = Previous session low/high (E60) T2 = VWAP ± 1σ deviation (E72) T3 = Next stop cluster (E14, K-Means E78) T4 = Equal high/low opposite side (E28) T5 = Options barrier / GEX flip (E63) If CONTINUATION signal: Target candidates (same direction): T1 = Next equal highs/lows above/below T2 = Previous week high/low T3 = Next volume profile node (E72) T4 = Next options strike cluster (E63) T5 = Session extension target (E60) // STEP 2: SCORE EACH TARGET Target_Score(T) = LiquidityDensity(T) × 0.35 + Distance_probability(T) × 0.25 + OFI_alignment(T) × 0.20 + MacroAlignment(T) × 0.20 Best_Target = argmax(Target_Score) // STEP 3: TIMING PREDICTION Method 1: OU mean-reversion speed (reversal) HL = ln(2) / θ [half-life from E68 + E99] Time_to_target_bars = -ln(0.5) / θ Time_minutes = bars × timeframe_minutes Method 2: Momentum extrapolation (continuation) Time_bars = Distance_pips / MomentumVelocity_pips_per_bar Method 3: ATR-based window (both) Distance = |Entry − Target| ATR_bars = Distance / ATR_per_bar Time_window = ATR_bars × [0.8, 1.4] band Final timing = weighted average of 3 methods Session adjustment: London open: × 0.75 (faster moves) NY open: × 0.80 (faster moves) Asia: × 1.60 (slower moves) Overlap: × 0.70 (fastest)
// STEP 4: ENTRY TIMING CONFIRMATION // Do NOT enter immediately after sweep Wait for ALL of: ✓ OFI flips direction (LIM-6) ✓ MomentumVelocity collapses (LIM-10) ✓ Spread normalizes (LIM-13) ✓ 2–3 candles after sweep close ✓ BookImbalance confirms (LIM-9) Entry rule (from PDF): ReversalProb > 0.60 AND MicrostructureShift = TRUE AND MomentumVelocity decreasing // STEP 5: VALIDATION WINDOW CALCULATION Short window (3–10 min): Conditions: high absorption + fast reversion + London/NY session + small distance Medium window (10–30 min): Conditions: moderate sweep + ranging regime + normal session Long window (1–4 hours): Conditions: deep sweep + trending regime + continuation signal + large distance // STEP 6: RECALIBRATION Weekly: update w1..w10 weights via IC score (E91) Monthly: retrain XGBoost on new labeled data Continuous: Bayesian update every sweep (E93) Regime thresholds: re-fit Hurst + ADX params // SIGNAL CONFIDENCE GRADE P(Reversal) > 0.75 AND regime confirms → A+ P(Reversal) > 0.65 AND 3+ features agree → A P(Reversal) > 0.55 → B P(Reversal) < 0.55 → SKIP
Live Signal Output — Interactive Calculator
INTERACTIVE
Pair
Current Price1.1048
Liquidity Level1.1040
ATR (pips)20p
LIM-6 OFI (–1 to +1)-0.22
LIM-7 Absorption Score0.65
LIM-10 Momentum Vel.0.18
LIM-4 Reversion Speed0.70
LIM-3 Volume Spike1.9×
Macro Alignment
Market Regime
Session
LIQUIDITY INTENT SIGNAL
EUR / USD
● REVERSAL SHORT
ENGINE 112
LIM v1.0
74%
P(Reversal)
HIGH
26%
P(Continue)
LOW
A+
Grade
STRONG
NEXT LIQUIDITY TARGET
1.1018
Source: Previous session low + Stop cluster
Entry Price
1.1042
Stop Loss
1.1060
TP1 (next pool)
1.1018
TP2 (deep pool)
1.1005
PREDICTED TIME WINDOW
8 – 14 min
Window type
SHORT
INTENT SCORE +0.83
CONTINUATIONNEUTRALREVERSAL
REGIME · ADJUSTMENT
Ranging · +35% reversal weight
All 15 LIM Variables — Complete Reference
LIQUIDITY VARIABLES
LIM-1 SweepDepth|Break−Level|/ATR · >0.25 gate
LIM-5 LiquidityDensityn_touches × vol_cluster_strength
LIM-11 NextLiqDistancePips to next pool
LIM-12 StopDensityStops per ATR band near level
ORDER FLOW
LIM-6 OFI(BuyVol−SellVol)/TotalVol
LIM-7 AbsorptionScoreVolume/|PriceChange|
LIM-8 IcebergProbabilityRefresh rate at level (E105)
LIM-3 VolumeSpikeVol_sweep/AvgVol(20) >1.5×
MICROSTRUCTURE
LIM-9 BookImbalanceBidVol/(BidVol+AskVol)
LIM-13 SpreadExpansionSpread_now/AvgSpread
LIM-14 MicroPriceDivergMicroPrice−MarketPrice
MOMENTUM
LIM-10 MomentumVelocityΔPrice/ΔTime (post-sweep)
LIM-4 ReversionSpeedTime_return/Time_breakout
LIM-15 VolatilityExpansionATR_current/ATR_previous
MACRO
LIM-X MacroAlignment+1 aligned · 0 neutral · -1 opposed
INTERPRETATION RULES
SweepDepth 0.1–0.3 → stop-hunt SweepDepth >0.5 → breakout ReversionSpeed fast → reversal ReversionSpeed slow → continuation High Absorption → reversal ↑ Low Absorption → continuation ↑ OFI opposite sweep → reversal ↑ OFI same direction → continuation ↑ BookImbalance opposite → reversal BookImbalance same dir → continuation VolatilityExpand >1.3 → continuation VolatilityExpand <0.9 → reversal SpreadExpansion >1.5 → stop run MacroAlignment +1 → continuation ↑ MacroAlignment -1 → reversal ↑ REVERSAL = absorption beats momentum CONTINUATION = momentum beats absorption
How Engine 112 Connects To All Other Engines
INPUTS FROM SYSTEM
E71 Regime EngineRegime classification → Sub-4
E77 HMMHidden state → regime confirm
E66 KalmanFiltered price → sweep depth calc
E97 HurstH exponent → trend/range detect
E101 GARCHσ estimate → vol regime gate
E105 MicrostructureIceberg prob + PIE → LIM-8,14
E104 Macro RegimeRORO + alignment → LIM-X
E57 COTWeekly bias → macro alignment
E72 VWAPTarget candidates T2
E78 K-MeansStop clusters → target T3
E63 DerivativesOptions barriers → target T5
E68 OU processHalf-life → timing window
OUTPUTS TO SYSTEM
→ Client CardNext liquidity price as TP
→ E62 Reversal WarningLIM reversal signal boosts RV score
→ E81 Signal StrengthLIM P(reversal) adds to SS score
→ E04 Signal DecayTiming window sets validity
→ E50 Dynamic StopSL placed above/below sweep high
→ E93 Bayesian EVP(reversal) feeds probability engine
ENGINE 112 POSITION IN PIPELINE
Pipeline Stage 15 (after Liq Suite) ↓ receives: sweep event from E03/E13 ↓ receives: regime from E71/E77 ↓ receives: features from E64/E73/E105 ↓ outputs: next liq target + timing ↓ sends to: Client Card + E62 + E81
RECALIBRATION SCHEDULE
ContinuousBayesian update each sweep (E93)
WeeklyUpdate w1..w10 via IC score (E91)
MonthlyRetrain XGBoost on labeled sweeps
QuarterlyRe-fit regime thresholds (E91)
REAL DIFFICULTY (from PDF)
1. Defining sweeps mathematically ✓ 2. Labeling historical data correctly → 1=reversal, 0=continuation 3. Training the probability model → XGBoost on 15 features 4. Adapting to regime changes → Sub-Engine 4 handles this "Most systems fail at step 2" → This system solves all 4.
Worked Example — EURUSD M15 London Open (from PDF research)
// MARKET CONTEXT Pair: EURUSD · Timeframe: M15 Session: London Open Equal highs: 1.1040 Price spikes to: 1.1048 ATR(14) = 20 pips = 0.0020 // SUB-ENGINE 1: SWEEP DETECTED SweepDepth = (1.1048−1.1040)/0.0020 = 0.40 ATR ✓ VolumeSpike = 1.9× average ✓ SweepDirection = UP (above equal highs) SweepDetected = TRUE // SUB-ENGINE 2: FEATURE VECTOR X = [SweepDepth=0.40, RevSpd=0.70, VolSpk=1.9, OFI=-0.22, Abs=0.65, Mom=0.18, SpreadExp=1.3, VolExp=0.25, Dist=45, Macro=0.8] // SUB-ENGINE 3: INTENT SCORE IntentScore = 0.8×0.40 + 1.2×0.70 + 0.7×1.9 + 1.1×0.65 − 0.9×0.18 + 0.6×0.8 = 0.32+0.84+1.33+0.72−0.16+0.48 = 3.53 P(Reversal) = sigmoid(3.53) = 0.97 raw
// SUB-ENGINE 4: REGIME ADJUSTMENT TrendSlope = weak · RangeCompress = high HMM_State = Range (E77) Regime = RANGING → reversal_weight × 1.35 Adjusted P(Reversal) = 0.74 (74%) // SUB-ENGINE 5: TARGET + TIMING Target candidates: T1 = Session low = 1.1018 (density=0.88) T2 = VWAP −1σ = 1.1012 (density=0.71) T3 = Stop cluster = 1.1005 (density=0.82) Best target: T1 = 1.1018 (score=0.91) Timing calculation: OU half-life θ=8.5 → HL=4.9 bars = 4.9×15 = 73min Momentum method: 26p / 1.8p/bar = 14.4 bars = 216min ATR method: 30p / 20p = 1.5 ATR = ~20–30min Session factor: London open × 0.75 Final window: 8–14 minutes (SHORT) // FINAL SIGNAL OUTPUT Direction: REVERSAL SHORT Entry: 1.1042 (2 bars after sweep) Stop: 1.1060 (above sweep high + buffer) TP1: 1.1018 TP2: 1.1005 Window: 8–14 min Grade: A+ (P=74%, regime confirmed) RR: 1:2.1
LIVE SIGNAL
EUR / USD
● SELL
· M5
74%
PROB
88%
CONF
A+
GRADE
ENTRY
1.0955
STOP
1.0988
TP1 40%
1.0855
TP2 35%
1.0810
✓ L0 Safe
VALID FOR12:00
HMM REGIME (E77)
Bull Trend
10%
Bear Trend
84%
Range
4%
Crisis
2%
BEAR TREND — 84% · Stable
MONTE CARLO (E87)
71%
P(TP)
22%
P(SL)
88%
CONF
E[PnL]: +1.22R · N=10,000 paths
KALMAN FILTER (E66)
Filtered price x̂1.0952
Velocity (trend slope)−0.0031
Acceleration−0.0008
Kalman gain K0.42
vel<0 + accel<0 → still falling
ENTROPY FILTER (E74)
Shannon H2.1 (LOW)
StatusSTRUCTURED
Gate thresholdH < 3.5
Signal allowedYES ✓
Entropy H = 2.1Structured ✓
PIPELINE STATUS
Waiting for data…