FxMath_RFConsensus is the first fully self-contained Expert Advisor that trains a real Random Forest machine learning model inside MetaTrader — no DLLs, no Python, no external servers. Three timeframe consensus voting, volatility-adaptive labels, and ATR-based risk management.
Online Learning — no manual optimization needed. The EA learns from live market data, adapts automatically, and evolves its strategy as market conditions change.
No external APIs. No Python scripts. Just pure MQL code running a complete Random Forest classifier.
Complete decision tree ensemble with Gini impurity splitting, bootstrap aggregation, and feature bagging — all written in pure MQL4/MQL5. Up to 50 trees.
No manual optimization or parameter tweaking needed. The model retrains automatically every N bars, adapting to current volatility and market regime. When the market changes, the EA evolves its strategy in real time — it learns from the market and adjusts without any user intervention.
Both platform versions in a single package. The exact same strategy, identical settings, same trading behavior across MetaTrader 4 and 5.
Zero external dependencies. No Python, no sockets, no API keys, no servers. Works on any VPS, any broker, any account type.
Three independent RF models on three timeframes. Confidence-weighted consensus requires agreement from at least 2 of 3 models before trading.
RSI, MACD, Bollinger %B, SMA crossovers, ATR volatility, candle body ratio, momentum, and more — all normalized and scale-invariant.
Training labels use ATR-relative thresholds. In high volatility, the threshold widens to avoid labeling noise. In low volatility, it tightens to capture real moves.
Stop-loss and take-profit based on ATR distance. Money management calculates lot size from equity risk %. Trailing stop and break-even available.
Real-time chart panel showing vote result, per-TF probabilities and confidences, entry / SL / TP levels, and current position status.
Watch the complete decision process — from price data to trade signal — in real time
Every new bar, the EA runs through these steps to decide whether to Buy, Sell, or Wait:
⬇ Try clicking the chart below to see how different market conditions change the tree votes.
FxMath_RFConsensus vs. traditional Expert Advisors & signal services
Lifetime license — one payment, both platforms, forever
.mq4 and .mq5 source files, plus compiled .ex4 and .ex5 binaries. Same strategy, identical settings, on both platforms.