920 lines
26 KiB
Text
920 lines
26 KiB
Text
================================================================================
|
|
QUANTUM FOREX TRADER - COMPLETE USER MANUAL
|
|
================================================================================
|
|
|
|
TABLE OF CONTENTS
|
|
=================
|
|
1. Introduction
|
|
2. Installation Guide
|
|
3. EA Overview and Functionality
|
|
4. Configuration Parameters
|
|
5. Startup Procedure
|
|
6. Trading Strategy
|
|
7. Risk Management
|
|
8. Market Conditions and Recommendations
|
|
9. Troubleshooting
|
|
10. FAQ
|
|
|
|
================================================================================
|
|
1. INTRODUCTION
|
|
================================================================================
|
|
|
|
The Quantum Forex Trader EA uses quantum-inspired algorithms to analyze market
|
|
conditions and generate trading signals. It implements concepts from quantum
|
|
phase estimation (QPE) to simultaneously analyze multiple market scenarios and
|
|
identify the most probable future price movements.
|
|
|
|
Key Features:
|
|
- Quantum-inspired market state analysis
|
|
- Binary encoding of price movements
|
|
- Probability-based signal generation
|
|
- Advanced risk management
|
|
- Automated position sizing
|
|
- Configurable trading hours
|
|
- Multi-symbol support
|
|
|
|
================================================================================
|
|
2. INSTALLATION GUIDE
|
|
================================================================================
|
|
|
|
Step-by-Step Installation:
|
|
|
|
1. LOCATE YOUR MT5 DATA FOLDER
|
|
- Open MetaTrader 5
|
|
- Click "File" -> "Open Data Folder"
|
|
- This opens: C:\Users\[User]\AppData\Roaming\MetaQuotes\Terminal\
|
|
[BROKER_ID]\MQL5\
|
|
|
|
2. COPY EA FILES
|
|
Copy the entire QuantumForexTrader folder to the Experts directory:
|
|
|
|
Source: MQL5\Experts\QuantumForexTrader\
|
|
|
|
Destination: C:\Users\[User]\AppData\Roaming\MetaQuotes\Terminal\
|
|
[BROKER_ID]\MQL5\Experts\QuantumForexTrader\
|
|
|
|
Directory structure:
|
|
QuantumForexTrader/
|
|
├── QuantumForexTrader_Scalper.mq5 (Main EA file)
|
|
├── core/
|
|
│ └── QuantumRiskManager.mqh (Risk management)
|
|
├── strategies/
|
|
│ ├── QuantumAnalysis.mqh (Market analysis)
|
|
│ └── QuantumSignals.mqh (Signal generation)
|
|
├── include/
|
|
│ └── BinaryEncoder.mqh (Binary conversion)
|
|
└── docs/ (All documentation files)
|
|
|
|
3. COMPILE THE EA
|
|
- Open MetaEditor (F4 in MT5 or click "Tools" -> "MetaQuotes Language Editor")
|
|
- Navigate to "Experts" → "QuantumForexTrader" folder in Navigator
|
|
- Double-click "QuantumForexTrader_Scalper.mq5"
|
|
- Click "Compile" button (F7) or "Tools" -> "Compile"
|
|
- Check "Errors" tab at bottom - should show "0 error(s), 0 warning(s)"
|
|
- If successful, you'll see: "QuantumForexTrader_Scalper.ex5" generated
|
|
|
|
4. REFRESH MT5
|
|
- Return to MT5 platform
|
|
- Right-click in "Navigator" window -> "Refresh"
|
|
- Find "QuantumForexTrader" → "QuantumForexTrader_Scalper" under "Expert Advisors"
|
|
|
|
================================================================================
|
|
3. EA OVERVIEW AND FUNCTIONALITY
|
|
================================================================================
|
|
|
|
HOW THE EA WORKS:
|
|
------------------
|
|
|
|
The Quantum Forex Trader EA operates in four main phases:
|
|
|
|
PHASE 1: DATA COLLECTION
|
|
- Collects historical price data (default: 256 bars)
|
|
- Uses power-of-2 values optimal for quantum-inspired algorithms
|
|
- Analyzes closing prices across the specified timeframe
|
|
|
|
PHASE 2: BINARY ENCODING
|
|
- Converts price movements into binary sequence (1 = up, 0 = down)
|
|
- Creates quantum-compatible representation of market behavior
|
|
- Identifies patterns in binary sequences
|
|
|
|
PHASE 3: QUANTUM ANALYSIS
|
|
- Generates probability distribution of market states
|
|
- Simulates quantum phase estimation
|
|
- Calculates confidence levels for each potential outcome
|
|
- Identifies dominant trend (BULL/BEAR/NEUTRAL)
|
|
|
|
PHASE 4: SIGNAL GENERATION & EXECUTION
|
|
- Generates trading signals based on:
|
|
* Trend direction (BULL or BEAR)
|
|
* Confidence level (probability of outcome)
|
|
* Momentum strength
|
|
- Executes trades when all conditions are met
|
|
- Manages risk automatically
|
|
|
|
WHAT THE EA DOES:
|
|
-----------------
|
|
✓ Analyzes market continuously
|
|
✓ Generates BUY/SELL signals based on quantum analysis
|
|
✓ Opens positions automatically
|
|
✓ Sets stop loss and take profit levels
|
|
✓ Manages position sizing based on account risk
|
|
✓ Respects maximum drawdown limits
|
|
✓ Logs all activities to Experts log
|
|
|
|
WHAT THE EA DOES NOT DO:
|
|
-------------------------
|
|
✗ Does not use traditional indicators (MA, RSI, MACD)
|
|
✗ Does not require manual intervention
|
|
✗ Does not guarantee profits (no EA can)
|
|
✗ Does not work without proper risk management
|
|
|
|
================================================================================
|
|
4. CONFIGURATION PARAMETERS
|
|
================================================================================
|
|
|
|
When you attach the EA to a chart, you'll see these parameter groups:
|
|
|
|
=== QUANTUM ANALYSIS PARAMETERS ===
|
|
|
|
InpHistoryBars (Default: 256)
|
|
- Number of historical bars to analyze
|
|
- MUST be a power of 2: 128, 256, 512, 1024
|
|
- Recommended: 256 (balance of data and performance)
|
|
- Lower values = faster but less accurate
|
|
- Higher values = slower but potentially more accurate
|
|
|
|
InpConfidenceThreshold (Default: 0.03)
|
|
- Minimum confidence required to generate signal
|
|
- Range: 0.01 to 0.10
|
|
- 0.03 = 3% minimum confidence
|
|
- Lower = more signals but potentially less reliable
|
|
- Higher = fewer signals but higher quality
|
|
|
|
InpMomentumThreshold (Default: 0.1)
|
|
- Minimum momentum strength required
|
|
- Range: 0.05 to 0.30
|
|
- Measures trend strength
|
|
- Lower = more sensitive to small moves
|
|
- Higher = only trades strong trends
|
|
|
|
=== RISK MANAGEMENT ===
|
|
|
|
InpRiskPercent (Default: 1.0)
|
|
- Risk per trade as % of account balance
|
|
- Range: 0.5 to 5.0
|
|
- 1.0 = risk 1% of balance per trade
|
|
- Conservative: 0.5-1.0%
|
|
- Moderate: 1.0-2.0%
|
|
- Aggressive: 2.0-3.0%
|
|
- NEVER use more than 5%
|
|
|
|
InpMaxDrawdown (Default: 20.0)
|
|
- Maximum acceptable drawdown (%)
|
|
- Range: 10.0 to 50.0
|
|
- EA stops trading if drawdown exceeds this
|
|
- Recommended: 15-25%
|
|
- Protects account from excessive losses
|
|
|
|
InpMaxPositions (Default: 3)
|
|
- Maximum concurrent positions
|
|
- Range: 1 to 10
|
|
- Lower = more conservative
|
|
- Higher = more exposure (higher risk)
|
|
|
|
=== TRADE PARAMETERS ===
|
|
|
|
InpStopLossPips (Default: 50.0)
|
|
- Stop loss distance in pips
|
|
- Range: 20.0 to 200.0
|
|
- Should match volatility of pair
|
|
- EUR/USD: 40-60 pips
|
|
- GBP/USD: 60-80 pips
|
|
- JPY pairs: 50-70 pips
|
|
|
|
InpTakeProfitPips (Default: 100.0)
|
|
- Take profit distance in pips
|
|
- Range: 40.0 to 500.0
|
|
- Recommended: 2x stop loss
|
|
- Conservative: 1.5x stop loss
|
|
- Aggressive: 3x stop loss
|
|
|
|
InpMagicNumber (Default: 777777)
|
|
- Unique identifier for EA's trades
|
|
- Change if running multiple EAs
|
|
- Each EA should have different magic number
|
|
|
|
=== TRADING SCHEDULE ===
|
|
|
|
InpUseTimeFilter (Default: true)
|
|
- Enable/disable time-based trading filter
|
|
- true = trade only during specified hours
|
|
- false = trade 24/7
|
|
|
|
InpStartHour (Default: 0)
|
|
- Hour to start trading (0-23)
|
|
- Example: 8 = start at 8:00 AM
|
|
- Consider market sessions:
|
|
* Asian: 23-8 GMT
|
|
* European: 7-16 GMT
|
|
* US: 13-22 GMT
|
|
|
|
InpEndHour (Default: 23)
|
|
- Hour to stop trading (0-23)
|
|
- Example: 22 = stop at 10:00 PM
|
|
- EA won't open new positions after this hour
|
|
|
|
=== SIGNAL GENERATION ===
|
|
|
|
InpSignalInterval (Default: 60)
|
|
- Seconds between signal checks
|
|
- Range: 30 to 300
|
|
- 60 = check every minute
|
|
- Lower = more responsive but CPU intensive
|
|
- Higher = less responsive but efficient
|
|
|
|
================================================================================
|
|
5. STARTUP PROCEDURE
|
|
================================================================================
|
|
|
|
FIRST-TIME SETUP (VERY IMPORTANT):
|
|
|
|
1. ATTACH EA TO CHART
|
|
- Drag "QuantumForexTrader_Scalper" from Navigator to chart
|
|
- OR: Right-click chart -> "Expert Advisors" -> "QuantumForexTrader_Scalper"
|
|
|
|
2. CONFIGURATION DIALOG APPEARS
|
|
You will see 6 tabs: Common, Inputs, Visualization, Dependencies, Testing, Events
|
|
|
|
3. CONFIGURE "COMMON" TAB:
|
|
✓ Allow Algo Trading: YES (must be checked!)
|
|
✓ Allow DLL imports: NO (not needed)
|
|
✓ Allow imports of external experts: NO (not needed)
|
|
✓ Allow WebRequest for listed URL: NO (not needed)
|
|
|
|
IMPORTANT: If "Allow Algo Trading" is unchecked, EA won't trade!
|
|
|
|
4. CONFIGURE "INPUTS" TAB:
|
|
|
|
FOR BEGINNERS (Conservative Setup):
|
|
=================================
|
|
Quantum Analysis Parameters:
|
|
- InpHistoryBars: 256
|
|
- InpConfidenceThreshold: 0.05 (higher = more selective)
|
|
- InpMomentumThreshold: 0.15 (higher = stronger signals)
|
|
|
|
Risk Management:
|
|
- InpRiskPercent: 0.5 (very conservative)
|
|
- InpMaxDrawdown: 15.0
|
|
- InpMaxPositions: 1
|
|
|
|
Trade Parameters:
|
|
- InpStopLossPips: 50.0
|
|
- InpTakeProfitPips: 100.0
|
|
- InpMagicNumber: 777777
|
|
|
|
Trading Schedule:
|
|
- InpUseTimeFilter: true
|
|
- InpStartHour: 8 (European session)
|
|
- InpEndHour: 16 (before US session)
|
|
|
|
Signal Generation:
|
|
- InpSignalInterval: 60
|
|
|
|
FOR EXPERIENCED TRADERS (Moderate Setup):
|
|
========================================
|
|
Quantum Analysis Parameters:
|
|
- InpHistoryBars: 256
|
|
- InpConfidenceThreshold: 0.03
|
|
- InpMomentumThreshold: 0.10
|
|
|
|
Risk Management:
|
|
- InpRiskPercent: 1.0
|
|
- InpMaxDrawdown: 20.0
|
|
- InpMaxPositions: 3
|
|
|
|
Trade Parameters:
|
|
- InpStopLossPips: 50.0
|
|
- InpTakeProfitPips: 100.0
|
|
- InpMagicNumber: 777777
|
|
|
|
Trading Schedule:
|
|
- InpUseTimeFilter: false (trade 24/7)
|
|
|
|
Signal Generation:
|
|
- InpSignalInterval: 60
|
|
|
|
5. CLICK "OK"
|
|
|
|
6. VERIFY EA IS RUNNING:
|
|
- Top-right corner of chart should show smiley face: ☺
|
|
- If you see ✗, check:
|
|
* "Tools" -> "Options" -> "Expert Advisors" -> "Allow Algo Trading" is checked
|
|
* "Algo Trading" button in toolbar is GREEN (click it if gray)
|
|
|
|
7. CHECK THE LOG:
|
|
- Open "Toolbox" window (View -> Toolbox or Ctrl+T)
|
|
- Click "Experts" tab
|
|
- You should see initialization messages:
|
|
|
|
Expected messages:
|
|
=================================================
|
|
=== Quantum Forex Trader Initializing ===
|
|
Symbol: EURUSD
|
|
Timeframe: H1
|
|
Account Balance: [your balance]
|
|
Account Equity: [your equity]
|
|
Account Leverage: [your leverage]
|
|
=== Configuration ===
|
|
History Bars: 256
|
|
Confidence Threshold: 3.0%
|
|
Momentum Threshold: 0.1
|
|
Risk Per Trade: 1.0%
|
|
Max Drawdown: 20.0%
|
|
Stop Loss: 50.0 pips
|
|
Take Profit: 100.0 pips
|
|
=== Quantum Forex Trader Initialized Successfully ===
|
|
=================================================
|
|
|
|
8. IF YOU SEE ERRORS:
|
|
See TROUBLESHOOTING section below
|
|
|
|
================================================================================
|
|
6. TRADING STRATEGY
|
|
================================================================================
|
|
|
|
STRATEGY OVERVIEW:
|
|
------------------
|
|
|
|
The EA uses a quantum-inspired approach to market analysis:
|
|
|
|
1. BINARY ENCODING
|
|
- Converts 256 bars of price data into binary sequence
|
|
- "1" = price went up
|
|
- "0" = price went down
|
|
- Creates pattern signature of market behavior
|
|
|
|
2. QUANTUM STATE ANALYSIS
|
|
- Generates multiple "quantum states" (possible market outcomes)
|
|
- Each state has associated probability
|
|
- Identifies dominant states (most probable outcomes)
|
|
|
|
3. TREND IDENTIFICATION
|
|
- Analyzes top probability states
|
|
- Calculates bullish vs bearish probability
|
|
- Determines trend direction:
|
|
* BULL: Bullish probability > Bearish probability
|
|
* BEAR: Bearish probability > Bullish probability
|
|
* NEUTRAL: Probabilities roughly equal
|
|
|
|
4. MOMENTUM CALCULATION
|
|
- Measures strength of trend
|
|
- Higher momentum = stronger trend
|
|
- Used as confirmation filter
|
|
|
|
5. SIGNAL GENERATION
|
|
- BUY Signal requires:
|
|
* Trend = BULL
|
|
* Confidence >= threshold
|
|
* Momentum >= threshold
|
|
|
|
- SELL Signal requires:
|
|
* Trend = BEAR
|
|
* Confidence >= threshold
|
|
* Momentum >= threshold
|
|
|
|
6. TRADE EXECUTION
|
|
- Position size calculated based on risk settings
|
|
- Stop loss and take profit set automatically
|
|
- Trade opened only if risk checks pass
|
|
|
|
BEST PRACTICES:
|
|
---------------
|
|
|
|
✓ Start with conservative settings on demo account
|
|
✓ Test for at least 1-2 weeks before going live
|
|
✓ Use on major pairs (EURUSD, GBPUSD, USDJPY)
|
|
✓ Best timeframes: H1, H4 (enough data, not too noisy)
|
|
✓ Monitor during first week of live trading
|
|
✓ Keep risk per trade at 1% or lower
|
|
✓ Respect maximum drawdown limits
|
|
✓ Don't overtrade - let the EA work
|
|
|
|
DON'T:
|
|
------
|
|
✗ Don't use on exotic pairs (spread too wide)
|
|
✗ Don't use on M1 or M5 (too much noise)
|
|
✗ Don't risk more than 2% per trade
|
|
✗ Don't disable risk management features
|
|
✗ Don't run multiple instances on same symbol
|
|
✗ Don't interfere with EA's trades manually
|
|
|
|
================================================================================
|
|
7. RISK MANAGEMENT
|
|
================================================================================
|
|
|
|
The EA includes comprehensive risk management:
|
|
|
|
POSITION SIZING:
|
|
----------------
|
|
- Automatically calculated based on:
|
|
* Account balance
|
|
* Risk percentage setting
|
|
* Stop loss distance
|
|
* Signal confidence level
|
|
|
|
Formula: Lot Size = (Balance × Risk%) / (SL pips × Pip Value)
|
|
|
|
Example:
|
|
- Balance: $10,000
|
|
- Risk: 1% = $100
|
|
- Stop Loss: 50 pips
|
|
- Pip Value: $10/lot for standard lot
|
|
- Lot Size = $100 / (50 × $10) = 0.20 lots
|
|
|
|
DRAWDOWN PROTECTION:
|
|
--------------------
|
|
- Monitors account drawdown continuously
|
|
- Stops trading if drawdown exceeds limit
|
|
- Drawdown = (Balance - Equity) / Balance × 100
|
|
|
|
Example:
|
|
- Balance: $10,000
|
|
- Equity: $8,500
|
|
- Drawdown: (10000 - 8500) / 10000 × 100 = 15%
|
|
- If max drawdown set to 20%, EA continues
|
|
- If max drawdown set to 10%, EA stops trading
|
|
|
|
POSITION LIMITS:
|
|
----------------
|
|
- Maximum concurrent positions enforced
|
|
- Prevents overexposure
|
|
- One position per symbol maximum (by default)
|
|
|
|
SPREAD FILTER:
|
|
--------------
|
|
- Checks spread before opening trades
|
|
- Won't trade if spread > 30 pips
|
|
- Protects from poor execution during news
|
|
|
|
RECOMMENDED RISK SETTINGS:
|
|
--------------------------
|
|
|
|
Account Size: $1,000 - $5,000
|
|
- Risk Per Trade: 0.5-1.0%
|
|
- Max Drawdown: 15%
|
|
- Max Positions: 1-2
|
|
|
|
Account Size: $5,000 - $20,000
|
|
- Risk Per Trade: 1.0-1.5%
|
|
- Max Drawdown: 20%
|
|
- Max Positions: 2-3
|
|
|
|
Account Size: $20,000+
|
|
- Risk Per Trade: 1.0-2.0%
|
|
- Max Drawdown: 20-25%
|
|
- Max Positions: 3-5
|
|
|
|
================================================================================
|
|
8. MARKET CONDITIONS AND RECOMMENDATIONS
|
|
================================================================================
|
|
|
|
BEST MARKET CONDITIONS:
|
|
-----------------------
|
|
|
|
✓ TRENDING MARKETS
|
|
- EA performs best in clear trends
|
|
- Both bull and bear trends work
|
|
- Avoid choppy/sideways markets
|
|
|
|
✓ NORMAL VOLATILITY
|
|
- Not too quiet (no opportunities)
|
|
- Not too volatile (risk of stops)
|
|
- ATR 50-150 pips on H4 is ideal
|
|
|
|
✓ LIQUID MARKETS
|
|
- Major pairs during active sessions
|
|
- Tight spreads (< 2 pips for EUR/USD)
|
|
- Good order execution
|
|
|
|
RECOMMENDED PAIRS:
|
|
------------------
|
|
|
|
Tier 1 (Best):
|
|
- EUR/USD (most tested, lowest spread)
|
|
- GBP/USD (good volatility)
|
|
- USD/JPY (stable, liquid)
|
|
|
|
Tier 2 (Good):
|
|
- AUD/USD (trending well)
|
|
- USD/CAD (commodity-driven trends)
|
|
- NZD/USD (follows AUD usually)
|
|
|
|
Tier 3 (Acceptable):
|
|
- EUR/GBP (lower volatility)
|
|
- EUR/JPY (good range)
|
|
|
|
NOT RECOMMENDED:
|
|
- Exotic pairs (spread too high)
|
|
- Minor crosses (low liquidity)
|
|
- Cryptocurrency pairs (extreme volatility)
|
|
|
|
RECOMMENDED TIMEFRAMES:
|
|
-----------------------
|
|
|
|
Best: H1 (1 Hour)
|
|
- Balance between data and responsiveness
|
|
- Enough history in 256 bars (~10 days)
|
|
- Not too noisy
|
|
|
|
Good: H4 (4 Hours)
|
|
- Longer-term trends
|
|
- Less frequent signals
|
|
- More stable
|
|
|
|
Acceptable: M30 (30 Minutes)
|
|
- More signals
|
|
- Requires more monitoring
|
|
- Higher computational load
|
|
|
|
NOT RECOMMENDED:
|
|
- M1, M5, M15 (too noisy, false signals)
|
|
- D1, W1 (too slow, insufficient data)
|
|
|
|
TRADING SESSIONS:
|
|
-----------------
|
|
|
|
Best Times to Trade:
|
|
1. European Session (7:00-16:00 GMT)
|
|
- EUR/USD, GBP/USD most active
|
|
- Good liquidity, tight spreads
|
|
|
|
2. US Session (13:00-22:00 GMT)
|
|
- All USD pairs active
|
|
- Overlap with European session best
|
|
|
|
3. Asian Session (23:00-8:00 GMT)
|
|
- USD/JPY, AUD/USD active
|
|
- Lower volatility, wider spreads
|
|
|
|
Avoid:
|
|
- Sunday open (wide spreads, low liquidity)
|
|
- Major news events (high volatility, slippage)
|
|
- End of month (corporate flows, unpredictable)
|
|
- Holiday periods (low volume)
|
|
|
|
================================================================================
|
|
9. TROUBLESHOOTING
|
|
================================================================================
|
|
|
|
PROBLEM: EA doesn't compile
|
|
----------------------------
|
|
SYMPTOMS: MetaEditor shows errors
|
|
|
|
SOLUTIONS:
|
|
1. Check all files are in correct location:
|
|
- All .mqh files must be in same folder as .mq5
|
|
- Or in MQL5\Include\ folder
|
|
|
|
2. Common compilation errors and fixes:
|
|
|
|
Error: "cannot open include file"
|
|
Fix: Ensure all .mqh files are present
|
|
|
|
Error: "declaration without type"
|
|
Fix: Re-download files, may be corrupted
|
|
|
|
Error: "undeclared identifier"
|
|
Fix: Check #include statements at top of files
|
|
|
|
3. If still fails:
|
|
- Delete all files
|
|
- Re-download fresh copies
|
|
- Ensure files not corrupted during download
|
|
- Check file extensions (.mq5 not .mq5.txt)
|
|
|
|
PROBLEM: EA doesn't appear in Navigator
|
|
----------------------------------------
|
|
SYMPTOMS: Can't find EA after compilation
|
|
|
|
SOLUTIONS:
|
|
1. Right-click Navigator -> Refresh
|
|
2. Restart MetaTrader 5
|
|
3. Check file compiled successfully (look for .ex5 file)
|
|
4. Recompile with F7 in MetaEditor
|
|
|
|
PROBLEM: EA shows ✗ on chart
|
|
-----------------------------
|
|
SYMPTOMS: Sad face or X instead of smiley face
|
|
|
|
SOLUTIONS:
|
|
1. Enable algo trading:
|
|
- Click "Algo Trading" button in toolbar (should turn green)
|
|
- OR press Ctrl+E
|
|
|
|
2. Check EA settings:
|
|
- Right-click EA name on chart
|
|
- Select "Properties"
|
|
- "Common" tab -> Check "Allow Algo Trading"
|
|
|
|
3. Check Terminal settings:
|
|
- "Tools" -> "Options"
|
|
- "Expert Advisors" tab
|
|
- Check "Allow Algo Trading"
|
|
- Check "Allow imports from external sources" if needed
|
|
|
|
4. Restart MT5
|
|
|
|
PROBLEM: EA initializes but doesn't trade
|
|
------------------------------------------
|
|
SYMPTOMS: Smiley face shows, but no trades opened
|
|
|
|
POSSIBLE REASONS:
|
|
|
|
1. NO SIGNALS GENERATED
|
|
- Market conditions don't meet criteria
|
|
- Confidence/momentum thresholds too high
|
|
- Time filter excludes current time
|
|
|
|
Solution:
|
|
- Lower thresholds slightly
|
|
- Check time filter settings
|
|
- Wait for market conditions to change
|
|
- Check Experts log for signal attempts
|
|
|
|
2. RISK LIMITS REACHED
|
|
- Already have max positions open
|
|
- Drawdown limit exceeded
|
|
- Insufficient equity
|
|
|
|
Solution:
|
|
- Check account equity
|
|
- Review open positions
|
|
- Check drawdown percentage
|
|
- Review risk settings
|
|
|
|
3. SPREAD TOO WIDE
|
|
- Broker spread > 30 pips
|
|
- Market conditions poor
|
|
|
|
Solution:
|
|
- Wait for spread to narrow
|
|
- Check with broker about spreads
|
|
- Consider different broker
|
|
|
|
4. SYMBOL NOT TRADEABLE
|
|
- Market closed
|
|
- Symbol not active
|
|
- Trading disabled by broker
|
|
|
|
Solution:
|
|
- Check market hours
|
|
- Verify symbol is correct
|
|
- Contact broker
|
|
|
|
PROBLEM: Too many trades opened
|
|
--------------------------------
|
|
SYMPTOMS: EA opens positions frequently
|
|
|
|
SOLUTIONS:
|
|
1. Increase thresholds:
|
|
- InpConfidenceThreshold: 0.05 or higher
|
|
- InpMomentumThreshold: 0.15 or higher
|
|
|
|
2. Reduce max positions:
|
|
- InpMaxPositions: 1 or 2
|
|
|
|
3. Enable time filter:
|
|
- InpUseTimeFilter: true
|
|
- Set specific trading hours
|
|
|
|
4. Increase signal interval:
|
|
- InpSignalInterval: 120 or 180
|
|
|
|
PROBLEM: Losses exceeding expectations
|
|
---------------------------------------
|
|
SYMPTOMS: Account losing money quickly
|
|
|
|
IMMEDIATE ACTIONS:
|
|
1. STOP THE EA IMMEDIATELY
|
|
- Remove EA from chart
|
|
- OR click "Algo Trading" button to disable
|
|
|
|
2. REVIEW SETTINGS:
|
|
- Risk per trade too high?
|
|
- Stop loss too tight?
|
|
- Using wrong timeframe?
|
|
- Trading during news?
|
|
|
|
3. ANALYZE TRADES:
|
|
- Check account history
|
|
- Identify pattern in losses
|
|
- Review market conditions during losses
|
|
|
|
4. ADJUST SETTINGS:
|
|
- Reduce risk to 0.5%
|
|
- Increase stop loss if too tight
|
|
- Enable time filter
|
|
- Increase confidence threshold
|
|
|
|
5. BACK TEST THOROUGHLY:
|
|
- Test new settings on strategy tester
|
|
- Run for minimum 6 months historical data
|
|
- Verify results before going live again
|
|
|
|
PROBLEM: Compilation warnings
|
|
------------------------------
|
|
SYMPTOMS: EA compiles but shows warnings
|
|
|
|
COMMON WARNINGS (usually safe to ignore):
|
|
- "declaration of 'variable' hides global variable"
|
|
- Not critical, EA will work
|
|
- Shows duplicate variable names
|
|
|
|
- "implicit conversion from 'type' to 'type'"
|
|
- Usually automatic type conversion
|
|
- Not critical if EA functions correctly
|
|
|
|
CRITICAL ERRORS (must fix):
|
|
- "undeclared identifier"
|
|
- "cannot convert parameter"
|
|
- "unexpected token"
|
|
|
|
If you see critical errors, EA won't work properly.
|
|
|
|
================================================================================
|
|
10. FAQ (Frequently Asked Questions)
|
|
================================================================================
|
|
|
|
Q1: What is quantum analysis in forex trading?
|
|
A: The EA uses quantum-inspired algorithms to analyze multiple market scenarios
|
|
simultaneously. It's not actual quantum computing, but uses concepts from
|
|
quantum mechanics (superposition, probability distributions) to analyze
|
|
price movements in a unique way.
|
|
|
|
Q2: Do I need a quantum computer to run this EA?
|
|
A: No! The EA runs on regular computers. It simulates quantum-inspired
|
|
algorithms using classical computing. No special hardware needed.
|
|
|
|
Q3: What account type do I need?
|
|
A: Standard forex account with:
|
|
- Minimum $500 recommended (works with less, but limited)
|
|
- Leverage: 1:100 or higher
|
|
- Spread: As low as possible
|
|
- Execution: Market execution or ECN
|
|
|
|
Q4: Can I run the EA on multiple charts simultaneously?
|
|
A: Yes, but:
|
|
- Use different symbols for each chart
|
|
- Adjust max positions accordingly
|
|
- Monitor total account risk
|
|
- Each EA instance operates independently
|
|
|
|
Q5: How long does it take to see results?
|
|
A: Varies by market conditions:
|
|
- First signal: 1 hour to 1 day
|
|
- Meaningful results: 1-2 weeks minimum
|
|
- Strategy validation: 1-3 months
|
|
|
|
Q6: Can I modify stop loss/take profit manually?
|
|
A: Yes, but not recommended:
|
|
- EA calculates optimal levels
|
|
- Manual changes may conflict with risk management
|
|
- If you must modify, disable EA first
|
|
|
|
Q7: Will the EA work during news events?
|
|
A: The EA trades through news, but:
|
|
- Spread filter may prevent trades if spread widens
|
|
- High volatility may trigger stops
|
|
- Consider enabling time filter to avoid major news
|
|
|
|
Q8: How much profit can I expect?
|
|
A: No guarantees, but realistic expectations:
|
|
- Conservative settings: 5-15% monthly (when profitable)
|
|
- Moderate settings: 10-25% monthly (higher risk)
|
|
- Results vary with market conditions
|
|
- Drawdown periods are normal
|
|
|
|
Q9: What's the minimum recommended balance?
|
|
A:
|
|
- Minimum: $500 (limited flexibility)
|
|
- Recommended: $1,000-$2,000 (good risk management)
|
|
- Optimal: $5,000+ (full features, better diversification)
|
|
|
|
Q10: Does the EA use martingale or grid strategies?
|
|
A: No! The EA:
|
|
- Does NOT double position sizes after losses
|
|
- Does NOT use grid trading
|
|
- Uses fixed risk per trade
|
|
- Has maximum position limits
|
|
|
|
Q11: Can I use this EA with other EAs?
|
|
A: Yes, but:
|
|
- Use different symbols for each EA
|
|
- OR use different magic numbers
|
|
- Monitor total account exposure
|
|
- Each EA has independent risk management
|
|
|
|
Q12: Why 256 bars for history?
|
|
A: 256 is optimal because:
|
|
- Power of 2 (2^8) - efficient for algorithms
|
|
- Provides sufficient historical context
|
|
- Not too much data (fast computation)
|
|
- Not too little (enough patterns)
|
|
- Based on quantum computing principles
|
|
|
|
Q13: What if I want to stop the EA temporarily?
|
|
A: Three options:
|
|
1. Click "Algo Trading" button (disables all EAs)
|
|
2. Remove EA from chart (right-click name -> Delete)
|
|
3. Change max positions to 0 (prevents new trades)
|
|
|
|
Q14: How do I update the EA to a newer version?
|
|
A:
|
|
1. Close all positions or wait for them to close
|
|
2. Remove old EA from charts
|
|
3. Copy new files to Experts folder
|
|
4. Recompile new version
|
|
5. Attach new EA to charts
|
|
6. Reconfigure settings
|
|
|
|
Q15: Can I get a refund if EA doesn't work?
|
|
A: This is open-source software provided as-is:
|
|
- No refunds (it's free!)
|
|
- No guarantees of profit
|
|
- Use at your own risk
|
|
- Test thoroughly on demo first
|
|
|
|
================================================================================
|
|
QUICK REFERENCE CARD
|
|
================================================================================
|
|
|
|
INSTALLATION CHECKLIST:
|
|
□ Copy all 5 files to Experts folder
|
|
□ Compile main EA file
|
|
□ Check for 0 errors, 0 warnings
|
|
□ Refresh Navigator in MT5
|
|
□ Attach EA to chart
|
|
□ Enable "Allow Algo Trading"
|
|
□ Configure input parameters
|
|
□ Verify smiley face appears
|
|
□ Check Experts log for initialization
|
|
□ Monitor first trades on demo
|
|
|
|
RECOMMENDED SETUP (Conservative):
|
|
- Pair: EUR/USD
|
|
- Timeframe: H1
|
|
- Risk: 0.5-1.0%
|
|
- Max Positions: 1-2
|
|
- Stop Loss: 50 pips
|
|
- Take Profit: 100 pips
|
|
- Confidence Threshold: 0.05
|
|
- Test on demo for 2 weeks minimum
|
|
|
|
DAILY MONITORING:
|
|
- Check Experts log for errors
|
|
- Review open positions
|
|
- Monitor account equity
|
|
- Check drawdown percentage
|
|
- Verify EA is still active (smiley face)
|
|
|
|
EMERGENCY PROCEDURES:
|
|
If account losing rapidly:
|
|
1. Click "Algo Trading" button to disable
|
|
2. Close EA positions manually
|
|
3. Review settings
|
|
4. Re-test on demo
|
|
5. Contact support forum
|
|
|
|
================================================================================
|
|
SUPPORT AND RESOURCES
|
|
================================================================================
|
|
|
|
For additional help:
|
|
1. Review this manual thoroughly
|
|
2. Check MetaTrader 5 documentation
|
|
3. Search MQL5 forums for quantum trading
|
|
4. Review source code comments
|
|
5. Test extensively on demo account
|
|
|
|
Remember:
|
|
- Past performance doesn't guarantee future results
|
|
- All trading involves risk
|
|
- Never risk more than you can afford to lose
|
|
- Demo test before live trading
|
|
- Start with conservative settings
|
|
- Monitor regularly
|
|
- Keep learning and adapting
|
|
|
|
================================================================================
|
|
END OF USER MANUAL
|
|
================================================================================
|
|
|
|
Version: 1.0
|
|
Last Updated: 2025
|
|
License: Open Source
|
|
|
|
DISCLAIMER: This EA is provided for educational purposes. Trading forex carries
|
|
substantial risk. Always test on demo accounts first. Never trade with money
|
|
you cannot afford to lose. Past performance is not indicative of future results.
|
|
|
|
================================================================================
|