📚 FxMathQuant User Manual

AI-Powered Trading Strategy Generator

📋 Table of Contents

  1. Getting Started
  2. License Activation
  3. Exporting Data from MT4/MT5
  4. Uploading Data
  5. Configuring Strategy Generation
  6. Walk-Forward Analysis
  7. Generating Strategies
  8. Viewing Results
  9. Downloading Strategies
  10. Troubleshooting
  11. Contact Support

🚀 Getting Started

What is FxMathQuant?

FxMathQuant is an AI-powered trading strategy generator that uses genetic algorithms to discover profitable trading strategies from your historical price data.

System Requirements

🔑 License Activation

Step 1: Obtain License Key

Purchase a license from:

Step 2: Activate License

  1. Open the application at: https://web.fxmathquant.com/login.html
  2. Enter your license key in the format: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
  3. Click "Activate License"
  4. Wait for validation (requires internet connection)
  5. You'll be redirected to the main application
Session Duration: Your session remains active until you logout or clear browser data. There is no automatic logout.

📊 Exporting Data from MT4/MT5

Download Data Provider EA

Download the EA from the application:

Export Historical Data

  1. Open a chart (e.g., XAUUSD H1)
  2. Drag the EA onto the chart
  3. Configure settings:
    • Bars to Export: 10,000 (recommended)
    • Remove Suffix: true
    • Export Folder: FxMathQuant
  4. Click "Export to CSV" button
  5. Wait for completion message
  6. Find your file: MQL4/Files/FxMathQuant/XAUUSD_H1.csv

Recommended Data

Timeframe Bars Use Case
M15 10,000 Scalping strategies
H1 10,000 Intraday trading
H4 5,000 Swing trading
D1 3,000 Position trading

📤 Uploading Data

  1. Click "Browse" or drag-and-drop your CSV file
  2. Select the file exported from MT4/MT5
  3. Wait for parsing (10,000 bars ≈ 2-3 seconds)
  4. Confirmation: "Data loaded successfully: X bars"

⚙️ Configuring Strategy Generation

Genetic Algorithm Settings

Parameter Default Range Description
Population Size 100 50-500 Number of strategies per generation
Generations 50 10-200 Number of evolution cycles
Mutation Rate 0.1 0.01-0.5 Probability of random changes
Crossover Rate 0.7 0.3-0.9 Probability of combining strategies

🔬 Walk-Forward Analysis

Walk-forward analysis validates strategies on out-of-sample data to detect overfitting and ensure real-world performance.

What is Overfitting? A strategy that performs well on historical data but fails in live trading due to being too closely fitted to past price patterns.

How It Works

  1. Data Splitting: Historical data is divided into training and testing periods
  2. Training Period: Strategy is optimized on this data (e.g., 70% of bars)
  3. Testing Period: Strategy is validated on unseen data (e.g., 30% of bars)
  4. Performance Comparison: Metrics are compared between training and testing
  5. Robustness Score: A score (0-100) indicates how well the strategy generalizes

Configuration

Understanding the Badges

Each strategy card displays a walk-forward badge showing its robustness:

Badge Score Range Meaning Recommendation
✓ ROBUST (Green) 60-100 Strategy passed validation Safe to use for live trading
⚠ OVERFITTED (Orange) 0-59 Strategy failed validation Avoid - likely curve-fitted

Robustness Score Interpretation

What Gets Measured

The robustness score is calculated based on degradation in:

Important: A strategy with excellent training performance but poor testing performance is likely overfitted and should be avoided.

Best Practices

Impact on Strategy Generation

When walk-forward is enabled:

🎯 Generating Strategies

  1. Review your settings
  2. Click "Start Generation"
  3. Monitor progress (current generation, strategies found, best fitness)
  4. Wait for completion (30 seconds to 5 minutes)

📈 Viewing Results

Each strategy shows:

Click "View Details" to see:

💾 Downloading Strategies

Available Formats

🐛 Troubleshooting

CSV Upload Issues

Error: "CSV must contain: time, open, high, low, close columns"
Solution: Ensure CSV has required columns. Column names can be lowercase or capitalized.

License Issues

Error: "Invalid license key"
Solution: Check key format (32 characters with dashes). Copy-paste from email.

Generation Issues

No strategies found
Solution: Relax criteria (lower Min Profit Factor, Win Rate). Increase population size and generations.

📞 Contact Support

Get Help

📧 Email: fxmathsolution@gmail.com

💬 Telegram: https://t.me/FxMath

Response time: 24-48 hours via email, faster on Telegram

⚠️ Disclaimer: Past performance does not guarantee future results. Always test strategies on demo account first. Use proper risk management.

© 2025 FxMath Solution. All rights reserved.