#1 AI Trading EA 2026
NEW: LightGBM + Q-Learning v1.0 Now Available

Trade Smarter with
AI-Powered Consensus

FxMath_RFConsensus is the first EA to offer two AI engines in one package: the original Random Forest (100% pure MQL, no DLLs) and the new LightGBM + Q-Learning version powered by a cross-compiled C++ DLL — gradient boosting with adaptive thresholds that learn from every trade.

✅ Set & Forget — Zero Manual Optimization ✓ Proven on Forex, Indices, Crypto & Commodities ✓ ATR-Adaptive — Works on Any Symbol & Timeframe
📡 Free Real-Time Signals — Join @FxMathGold on Telegram
Random Forest — DLL-Free LightGBM + Q-Learning
Online Learning — no manual optimization needed. The EA learns from live market data, adapts automatically, and evolves its strategy as conditions change.
28
Features (19+9)
3
Timeframe Vote
2
AI Engines
RL
Q-Learning
RF G G Pred: 60.3% M1 68% M5 57% M15 49% VOTE: BUY 2/3
Lifetime License
RF: DLL-Free / LGBM: Static DLL
MT4 + MT5 Included
Free Updates
Premium Support
Any Broker: ECN / STP / Market Maker
Any Pair & Timeframe

Powered by Real Machine Learning

Two AI engines in one package. The original Random Forest (pure MQL) and the new LightGBM + Q-Learning version (gradient boosting + RL).

Single-TF Decision Pipeline 28 Features RF / LGBM Model Ensemble Predict 3-TF Vote TRADE Multi-Timeframe Consensus Vote M168.2% UP M557.1% UP M1548.5% UP 2 of 3 Vote BUY → TRADE

Two AI Engines RFLGBM

Original Random Forest (pure MQL, zero dependencies) and new LightGBM gradient boosting (via static C++ DLL). LightGBM uses gradient boosting — it builds trees sequentially, each one correcting the errors of the previous. This converges to higher accuracy than bagging (RF) with fewer trees. Both share the same feature pipeline and multi-TF voting. Choose RF for zero-DLL simplicity, or LGBM for maximum accuracy.

Q-Learning RL Agent NEW

Tabular Q-learning that dynamically adjusts trading thresholds based on market conditions. 27 discrete states (win rate x volatility x consecutive losses) map to 3 actions: Conservative (tighter filters after losses), Normal (balanced), Aggressive (looser filters on high win rate). Epsilon decays automatically from 0.30 by 0.998x per trade — early exploration, later exploitation. The Q-table persists across sessions, so knowledge compounds over weeks of trading.

Online Learning — Self Optimizing

No manual optimization or parameter tweaking needed. The EA retrains its models every N bars (default 200) using the latest price data — it automatically adapts to changing volatility, trends, and market regimes. Unlike static EAs that require frequent re-optimization, this EA learns from live market data continuously. The LGBM+RL version adds a Q-Learning agent that adjusts buy/sell thresholds based on every trade outcome — the EA literally gets smarter the longer it runs. Set it and forget it.

MT4 + MT5 — Any Broker, Any Account

Both platform versions for both RF and LGBM+RL. Works on any broker type: ECN, STP, Market Maker, FIFO-compliant brokers. Compatible with hedged and netted accounts. Supports any symbol — Forex majors, minors, exotics, indices, commodities, metals, crypto, stocks. Any timeframe — M1 to MN1. Any leverage, any deposit currency. No broker restrictions whatsoever.

28 Technical Features

19 original (RSI, MACD, BB, SMA, ATR, momentum, candle body) plus 9 new: volatility ratio, linreg slope, volume ratio, skew, kurtosis, Elder-Ray, CMO.

Multi-Timeframe Voting — The Secret to Filtering Noise

Three independent ML models run on three different timeframes simultaneously (default M1, M5, M15). Each model independently analyzes its own timeframe and outputs an UP probability with a confidence score. The EA then applies confidence-weighted voting: a high-confidence M5 signal carries more weight than a low-confidence M15 signal. A trade is only executed when at least 2 of 3 timeframes agree. This eliminates false signals that appear on a single timeframe due to market noise. The result: fewer but higher-quality trades with statistically stronger confluence.

Volatility-Adaptive Labels

Training labels use ATR-relative thresholds. In high volatility the threshold widens to avoid noise. In low volatility it tightens to capture real moves.

Q-Table Persistence NEW

Q-table saved to disk on shutdown, reloaded on startup. The RL agent remembers what it learned across sessions — knowledge compounds over time.

Professional Risk Management

ATR-based SL/TP automatically adapts to symbol volatility — wider stops during high vol, tighter during low vol. Built-in money management sizes positions as a percentage of equity risk. Trailing stop locks profits as price moves in your favor. Break-even moves SL to entry once a target is reached. Time filter restricts trading to specific hours. Spread filter prevents trading during high-spread events. All configurable to match your risk tolerance.

Two Versions. One Package.

Both share the same feature pipeline and trading logic. The LGBM+RL version adds gradient boosting and reinforcement learning.

Random Forest v1.1

  • Pure MQL — Zero DLLs
  • 19 Technical Features
  • Bagging + Gini Impurity
  • Up to 50 Trees
  • Multi-TF Consensus Voting
  • ATR Risk Management
  • Online Learning

LightGBM + RL v1.0

  • ALL RF v1.1 Features
  • LightGBM Gradient Boosting (DLL)
  • 28 Features (19 + 9 advanced)
  • Q-Learning Adaptive Thresholds
  • 27 States x 3 Actions
  • Tick Volume Analysis
  • Q-Table Persistence

Why LightGBM + Q-Learning Works

The combination of gradient boosting and reinforcement learning creates a self-improving trading system that adapts to any market condition.

Gradient Boosting Outperforms Random Forest

LightGBM builds trees sequentially — each new tree corrects the errors of all previous trees. This gradient boosting approach converges to higher accuracy with fewer trees compared to Random Forest's parallel bagging. LightGBM also handles non-linear relationships in financial data better than linear models, and its leaf-wise tree growth finds complex patterns that depth-wise trees miss. Result: significantly higher prediction accuracy on the same feature set.

RL Adapts in Real Time — No Static Thresholds

Traditional EAs use fixed thresholds that become obsolete when market regimes shift. The Q-Learning agent continuously monitors win rate, volatility, and consecutive losses — three dimensions that capture the current market "personality." When conditions become choppy, the agent selects Conservative mode (fewer trades, higher quality). During strong trends, it switches to Aggressive mode (captures more moves). This isn't a simple rule — it's a learned policy that optimizes for long-term cumulative reward.

28 Multi-Domain Features Capture Market Structure

Most EAs use 3-5 indicators. This EA extracts 28 carefully designed features spanning: momentum (RSI, CMO, returns), trend (linreg slope, MA distance, Elder-Ray), volatility (ATR ratio, bar strength, Bollinger %B), volume (tick volume ratio), distribution (rolling skew & kurtosis), and cross-asset signals (MACD, MA crossovers). Each feature captures a different market dimension — together they form a complete picture of price action that a single indicator cannot provide.

Volatility-Adaptive Labels Prevent Overfitting

The EA doesn't just predict "price up or down" — it uses ATR-relative labels. A bar is labeled UP only if future price moves by more than 0.3x the current ATR. In high volatility, this threshold widens (avoid labeling random noise as signal). In low volatility, it tightens (captures real directional moves). This makes the model robust across symbols and timeframes — no need to relabel for Gold vs EURUSD vs US30. The model learns the same underlying structure regardless of absolute price or volatility level.

Multi-TF Voting Eliminates False Signals

Financial markets have multi-scale structure — a trend on M15 may be a pullback on H1. Running three independent models on different timeframes captures this hierarchy. The confidence-weighted voting system ensures that only signals with multi-timeframe confluence generate trades. A breakout that appears on M1 but not on M5/M15 is likely noise and is filtered out. When all three timeframes align, the probability of a genuine move is dramatically higher. The minimum vote threshold (default 2 of 3) is configurable.

Self-Optimizing — Never Needs Manual Intervention

Most EAs require constant optimization — run a backtest this week, parameters work. Next month, market changes, need to re-optimize. This EA solves that permanently. The model retrains automatically every N bars (default 200) using the most recent data. When volatility increases, it adapts. When trends emerge, it captures them. When ranging markets appear, it filters them. The RL agent adds another layer of adaptation, adjusting execution thresholds based on recent performance. This is truly a "set and forget" EA — it evolves with the market.

Simple Pricing

One package. Two versions. Lifetime license with free updates.

$149
$99
Lifetime License — one-time payment
  • Random Forest v1.1 — Pure MQL
  • LightGBM + Q-Learning v1.0
  • Two AI Engines in One Package
  • 28 Technical Features
  • MT4 + MT5 Included
  • Multi-TF Consensus Voting
  • ATR Risk Management
  • Online Learning + RL
  • Lifetime Free Updates
  • Premium Support
Buy Now — $99

Frequently Asked Questions

What is the difference between RF and LGBM versions?
The Random Forest version is pure MQL code — zero DLLs, works on any broker. The LGBM+RL version uses a C++ DLL with LightGBM gradient boosting (more accurate) plus a Q-Learning agent that dynamically adjusts trading thresholds. Both share the same feature engineering, voting, and risk management. Both are included in the purchase.
Does the LGBM version require DLL installation?
Yes. The DLL is 15MB, fully statically linked — depends only on KERNEL32, msvcrt, WS2_32, and IPHLPAPI (standard Windows DLLs). No Python, no runtime. Just copy to MQL5\Libraries\ or MQL4\Libraries\. The RF version needs no DLL at all.
Can I run both versions simultaneously?
Yes. RF uses magic 202405, LGBM+RL uses 202406. They operate independently on the same chart, letting you compare performance side by side.
Does the Q-Learning agent really learn?
Yes. The Q-table stores expected future rewards for each of 27 state × 3 action combinations. Every trade updates the table via the Bellman equation. The table is saved to disk on shutdown and loaded on startup — knowledge accumulates across sessions.
What symbols and timeframes does it work on?
Any symbol — Forex, indices, commodities, crypto. Any timeframe — defaults to M1/M5/M15 but fully configurable. ATR-adaptive labels automatically adjust to each symbol's volatility.
What's included in the purchase?
Both versions: MT4 .mq4 + compiled .ex4, MT5 .mq5 + compiled .ex5, full documentation. For the LGBM+RL version: LGBM_RL_Engine.dll and C++ source code. Lifetime license with free updates.
Does it work with ECN, STP, and Market Maker brokers?
Yes, absolutely. The EA works on all broker types — ECN, STP, Market Maker, NDD, and DMA. It uses market execution (buy/sell) with a 100-point slippage tolerance. No hedging; single position only, so it is fully FIFO-compliant (NFA regulation). The RF version requires no special permissions. The LGBM version only needs the DLL in the Libraries folder — no broker restrictions apply.
Can it trade indices (US30, NASDAQ, FTSE) and crypto?
Yes. The EA is completely symbol-agnostic. It works on any CFD, index, commodity, cryptocurrency pair, or forex cross. The ATR-adaptive label system automatically adjusts to each symbol's unique volatility — no manual parameter changes needed. Backtest on EURUSD, then run live on US30 or BTCUSD with the same settings. The online learning ensures the model adapts to each symbol's behavior over time.
Which timeframes should I use?
The default multi-timeframe voting uses M1, M5, and M15 — this covers short-term, medium-term, and swing dynamics. You can change all three timeframes to any combination (e.g., M5/M15/H1 for swing trading, or M1/M1/M1 for pure scalping). The three models train and vote independently, so each timeframe's unique perspective adds robustness to the final signal.
Why is this EA "100% work" in trading?
No EA wins 100% of trades, but this EA is built on principles that make it "work" consistently. (1) Online learning — the model retrains on recent data, keeping up with market evolution. (2) Multi-TF voting — filters out noise by requiring confluence across timeframes. (3) ATR-adaptive risk — position sizing and labels adjust to volatility so the system survives drawdowns. (4) RL adaptation — the Q-Learning agent changes execution mode based on recent win rate, volatility, and consecutive losses. (5) 28 features — no single indicator drives decisions; the ensemble captures momentum, trend, volatility, volume, and distribution simultaneously. The result is a robust system that performs across market regimes, not just one optimized scenario.