📘 QuantFlow Engine — User Manual (MetaTrader 5 Expert Advisor)
🔹 Official Product Page (MQL5 Market)
https://www.mql5.com/en/market/product/157102
1) General Description 🚀
QuantFlow Engine is a professional multi-asset Expert Advisor for MetaTrader 5, designed to trade Forex, metals, stock indices, and cryptocurrencies simultaneously from a single chart.
The EA uses an independent analytical engine per instrument, meaning each symbol is evaluated individually while risk is handled through a centralized risk-control framework. This structure reduces concentration risk and improves stability versus single-symbol systems.
✅ No Martingale. No Grid. No Recovery.
All trades are executed only when the EA’s internal conditions confirm validated price behavior and controlled-risk logic.
2) Supported Markets and Instruments 🌍
QuantFlow Engine is optimized to trade the following instruments:
Forex 💱
-
EURUSD
-
GBPUSD
-
EURJPY
-
GBPJPY
-
USDJPY
Metals 🥇🥈
-
XAUUSD (Gold)
-
XAGUSD (Silver)
Stock Indices 📊 (broker-dependent naming)
-
US100 (NASDAQ)
-
US500 (S&P 500)
-
UK100 (UK 100)
-
GER40
-
EU50
Cryptocurrencies ₿
-
BTCUSD
⚠️ Important (Symbol Names): Symbol names may vary by broker (suffixes/prefixes).
Always ensure all symbols are visible in Market Watch so the EA can validate and manage them correctly.
3) Critical Rule: Attach to ONE Chart Only ⚠️
QuantFlow Engine is a single-instance multi-asset system.
✅ You must attach the EA to only ONE chart.
If you attach it to multiple charts, each instance may trade independently, which can cause duplicate trades and multiplied exposure.
Recommended chart and timeframe:
-
Chart symbol: XAUUSD
-
Timeframe: H1
-
Number of charts required: ONE chart only
Once attached, the EA internally manages all supported instruments from that single chart.
4) Installation Guide (Step-by-Step) ✅
-
Open MetaTrader 5
-
Add all symbols to Market Watch:
-
Market Watch → Right-click → “Show All”
-
-
Open the chart:
-
XAUUSD — H1
-
-
Attach QuantFlow Engine to the chart
-
Enable Algo Trading / AutoTrading
-
Confirm initialization in the Experts tab
Once initialized, the EA will automatically:
-
Detect available symbols
-
Validate broker conditions and symbol availability
-
Begin monitoring all supported markets
-
Execute trades only when internal conditions are fully confirmed
5) Trading Logic (High-Level Overview) 🧠
QuantFlow Engine uses a selective decision engine based on:
-
Volatility conditions
-
Directional volume behavior
-
Micro-structural price movements
-
Multi-timeframe confirmations
-
Exhaustion and reversal zones
📌 Important: The EA is designed to avoid overtrading. It may remain inactive for extended periods if conditions are not optimal. This is normal and intentional.
6) Risk Management Framework 🛡️
Risk is managed with asset-specific logic and portfolio-style discipline:
-
Controlled exposure per symbol
-
Correlation-aware risk limitation (reduces clustered exposure)
-
Automatic suspension after adverse sequences
-
Asset-specific Stop Loss and Take Profit logic
This framework is designed to keep the system stable even during mixed, volatile, or unfavorable periods.
7) Input Parameters (Explained) ⚙️
A) Trading Schedule Parameters ⏰ (Broker Server Time)
These parameters control when the EA starts trading, when it stops opening new trades on Friday, and when it force-closes all positions before the weekend.
⚠️ All times are based on BROKER SERVER TIME, not your PC local time.
🕒 StartTradingHour (Default: 1)
-
Defines the hour on Monday when the EA starts the trading cycle.
-
Default value 1 corresponds to 02:00 GMT (recommended to avoid low-liquidity early-week conditions).
-
If your broker’s server time is not GMT, you must adjust this value to match 02:00 GMT equivalent.
📌 Tip: Broker server time is shown at the top of the Market Watch window.
🛑 StopTradingHour (Default: 17)
-
Defines the hour on Friday when the EA stops opening new trades.
-
After this hour, no new trades are opened, but existing positions may continue until global close time.
-
Designed to reduce late-Friday low liquidity and pre-weekend risk.
🔒 CloseAllHour (Default: 22)
-
Defines the hour on Friday when the EA force-closes all open positions, regardless of status.
-
Prevents trades from remaining open over the weekend (reduces gap risk).
⏱ CloseAllMinute (Default: 30)
-
Defines the exact minute on Friday for forced closing.
-
Default means positions are closed at 20:30 (broker time).
✅ Important Notes
-
These parameters are critical for risk control and weekend exposure management.
-
Proper configuration is essential if your broker operates outside GMT.
B) Magic Number 🔢
InpMagicNumber (Default: 12345678)
Assigns a unique identifier to trades executed by the EA, allowing:
-
Separation from manual trades
-
Cleaner trade management
-
Ability to run other EAs (not recommended on the same account; see Best Practices)
C) Break-Even Mode 🔒
Enable_Move_SL_BE (Default: false)
When enabled, the EA moves Stop Loss to break-even once predefined profit progression levels are reached.
Available levels: 60% / 70% / 80% / 90%
✅ Best for: users who prioritize capital protection
⚠️ Note: enabling break-even can reduce long-run profit potential by closing trades earlier during normal retracements.
D) Maximum Daily Loss Percentage 📉
MaxDailyLossPercent (Default: 10.0)
Defines the maximum allowed daily loss as a percentage of the account balance. Once this threshold is reached, the EA stops opening new trades for the rest of the day. This is a protective mechanism designed for abnormal volatility events or extreme market conditions.
✅ Funded Accounts (Prop Firms) — Recommended Use
This parameter is primarily intended for funded accounts, where daily drawdown limits are strict and must be respected.
📌 Best practice is to set MaxDailyLossPercent slightly below the maximum daily loss allowed by the prop firm, to create a safety buffer.
Example:
-
If the prop firm allows 5% maximum daily loss → set MaxDailyLossPercent = 4%
This helps avoid accidental rule violations due to spread, slippage, commissions, or rapid price movements.
💰 Personal / Spot Accounts — Avoid “Bottlenecks”
For personal accounts (non-funded), this parameter should allow enough coverage for normal trade fluctuations. If MaxDailyLossPercent is set too low, the EA may hit the daily limit too quickly during normal market movement, causing a “bottleneck” where the EA pauses trading prematurely and performance becomes restricted.
This happens because the daily loss limit is calculated directly from the account balance.
So if the balance is $1,000 and you are using the recommended lot sizes, a realistic setting is typically around:
✅ MaxDailyLossPercent = 20% (for standard spot accounts using the suggested lot sizing)
This gives the EA enough room to let trades develop naturally, while still maintaining an important safety layer for exceptional conditions.
Summary:
-
✅ Funded accounts: set slightly below the rule limit (e.g., 5% rule → 4% setting)
-
✅ Personal accounts: allow sufficient coverage (e.g., around 20% with $1,000 and suggested lots)
-
⚠️ Too low = early daily shutdown / restricted performance (“bottleneck”)
E) CheckAndDisableSymbolBYSL (Additional SL-Based Protection) 🛡️
Type: Boolean (true / false)
When CheckAndDisableSymbolBYSL = true, the EA activates an additional safety layer designed to protect the account if a specific symbol enters an unfavorable or abnormal behavior phase.
If the EA detects that a symbol is accumulating consecutive Stop Loss (SL) events within a defined time window, it will automatically disable trading for that symbol for a predefined cooldown period. This helps prevent the EA from repeatedly trading a symbol that is temporarily “out of sync” with normal conditions.
✅ Purpose: Reduce risk during symbol-specific drawdown streaks and isolate problematic instruments without stopping the entire EA.
📌 Result: The EA continues operating normally on other instruments while the affected symbol remains temporarily disabled.
F) Sensitivity Levels — Adaptive Multibroker Intelligence 🧠⚙️
SensitivityLevels (Default: 0.0 — Neutral)
An advanced adaptive parameter based on an elastic sensitivity matrix designed to help align volume behavior across different brokers.
-
Conservative to aggressive calibration
-
Helps compensate for execution differences (spread, liquidity, fill behavior)
Examples (reference only):
-
IC Markets ≈ –35
-
Deriv ≈ –15
✅ Recommendation: test this parameter using backtests from the last 12 months.
8) Lot Size Reference Table (Base: $1,000) 💰📊
The table below is based on a $1,000 account.
If your capital differs, adjust lot sizes proportionally:
New Lot Size = Table Lot Size × (Your Capital / 1000)
Examples:
-
$500 account → multiply lots by 0.50
-
$2,000 account → multiply lots by 2.00
| Instrument | Lot Size | Contract Size |
|---|---|---|
| XAUUSD (P1–P4) | 0.03 | 100 |
| XAGUSD (P1–P2) | 0.03 | 5000 |
| EURUSD (P1–P2) | 0.12 | 100000 |
| GBPUSD (P1) | 0.12 | 100000 |
| GBPUSD (P2) | 0.10 | 100000 |
| EURJPY (P1–P2) | 0.10–0.12 | 100000 |
| GBPJPY (P1–P2) | 0.10–0.12 | 100000 |
| EU50 | 1.00 | 1 |
| UK100 | 1.00 | 1 |
| US100 | 0.40 | 1 |
| US500 | 1.00 | 1 |
| GER40 | 0.20 | 1 |
| BTCUSD (P1–P2) | 0.03 / 0.02 | 1 |
⚠️ Always verify your broker’s contract specifications and symbol settings.
9) Backtesting Recommendation (IMPORTANT) 🧪✅
Golden Trader AI includes an adaptive system calibrated to recent market behavior.
For accurate and realistic testing:
-
Use only the last 12 months of historical data
-
Use real spreads and commissions
-
Avoid multi-year backtests (the adaptive volume matrix is designed to match current market behavior)
This ensures the adaptive logic remains aligned with modern market conditions and execution realities.
10) Expected Behavior (Normal System Actions) ✅
The following behaviors are normal and intentional:
-
Periods with no trades
-
Uneven trade distribution across symbols
-
Automatic pauses due to risk protections
-
Selective execution (the EA trades only when all internal validations are met)
These behaviors are part of the EA’s capital-preservation approach.
11) ⚠️ IMPORTANT OPERATIONAL NOTE (PLEASE READ CAREFULLY)
ONCE THE EA HAS STARTED, IT IS STRONGLY RECOMMENDED NOT TO RESTART, RESET, OR RE-ATTACH IT, AS THIS MAY CAUSE THE SYSTEM TO LOSE ITS TIME/SPACE SYNCHRONIZATION (INTERNAL SEQUENCING AND EXECUTION CONTINUITY). FOR MAXIMUM STABILITY, WE RECOMMEND RUNNING THE EA ON A RELIABLE VPS TO AVOID DISCONNECTIONS, PLATFORM INTERRUPTIONS, OR INTERMITTENT OPERATION. IN ADDITION, FOR CLEAN EXECUTION AND PROPER TRADE MANAGEMENT, IT IS ADVISED TO USE THIS EA ON A DEDICATED TRADING ACCOUNT AND NOT TO COMBINE IT WITH OTHER EAs OR MANUAL TRADING ON THE SAME ACCOUNT.
12) Best Practices (Avoid Misunderstandings) ✅📌
-
✅ Attach the EA to ONE chart only (XAUUSD H1 recommended)
-
🚫 Do not run multiple chart instances
-
👁 Ensure all symbols are visible (Market Watch → Show All)
-
💰 Match lot sizes to account balance (scale proportionally)
-
🛡 Keep daily loss protection enabled and aligned with your account rules
-
🖥 Use a stable VPS to reduce interruptions and maintain continuity
13) Quick Troubleshooting 🧰
EA is not trading
Check:
-
✅ AutoTrading / Algo Trading is ON
-
✅ Symbols are visible (Market Watch → Show All)
-
✅ EA attached to one chart only
-
✅ Experts tab shows successful initialization
-
✅ Correct broker environment and symbol names
Trades multiplied / too many trades
Cause:
-
EA attached to multiple charts
Fix:
-
Remove EA from all charts and run only one instance
14) Disclaimer ⚠️
Trading financial markets involves risk. Past performance does not guarantee future results. Market conditions can change, and results may vary depending on broker conditions, liquidity, spreads, execution, volatility regimes, and user configuration. Always test on a demo account before using on a live account.


