mql5/INSTALLATION_GUIDE.md
Salman Khan 2b2e3f6905 🚀 Revolutionary AI Trading System - MQL5 Professional Edition
 Complete Expert Advisor with AI intelligence
 Professional MQL5 library structure
 Advanced risk management and trade execution
 Comprehensive installation documentation

🎯 MQL5 Features:
- Conviction-based trading intelligence
- Probability-driven position sizing (Kelly Criterion)
- Market edge strength analysis
- Dynamic TP/SL management based on risk scenarios
- AI-powered market narratives dashboard
- Multi-layered risk management system

📦 Installation:
- Copy RevolutionaryAI_EA_FINAL.mq5 to MQL5/Experts/
- Copy Include/ folder to MQL5/Include/
- Compile and attach to chart
- Works standalone - no external dependencies required

🧠 Built for the MQL5 community with professional standards

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-29 17:02:40 -04:00

7 KiB

📋 Revolutionary AI EA - Installation Guide

🚀 QUICK INSTALLATION (5 Minutes)

Step 1: Download Files

Clone or download this repository from MQL5 Algo Forge:

https://forge.mql5.io/salman0985/mql5

Step 2: Locate Your MQL5 Data Folder

In MetaTrader 5:

  1. Go to File → Open Data Folder
  2. Navigate to MQL5 folder

Step 3: Copy Files

Main Expert Advisor:

Copy: RevolutionaryAI_EA_FINAL.mq5
To:   MQL5/Experts/RevolutionaryAI_EA_FINAL.mq5

Include Library Files:

Copy: Include/ (entire folder)
To:   MQL5/Include/

Your MQL5/Include folder should now contain:

MQL5/Include/
├── AI/AIIntegrationManager.mqh
├── Dashboard/SimplifiedStoryDashboard.mqh
├── Indicators/IndicatorEngine.mqh
├── Trade/TradeManager.mqh
├── Trade/RiskManager.mqh
└── Utils/JAson.mqh

Optional Alternative EAs:

Copy: Experts/RevolutionaryAI/ (entire folder)
To:   MQL5/Experts/RevolutionaryAI/

Step 4: Compile the EA

  1. Open MetaEditor (Press F4 in MT5)
  2. In Navigator, expand Experts
  3. Double-click RevolutionaryAI_EA_FINAL.mq5
  4. Press F7 or click Compile button
  5. Check for 0 errors, 0 warnings

Step 5: Restart MetaTrader 5

Close and restart MT5 to ensure all files are properly loaded.


🎯 FIRST-TIME SETUP

Step 1: Attach EA to Chart

  1. Open any chart (EURUSD recommended for testing)
  2. In Navigator → Expert Advisors
  3. Drag RevolutionaryAI_EA_FINAL onto the chart
  4. EA parameters dialog will appear

Step 2: Configure Basic Settings

🚀 Revolutionary AI Settings:
├── EnableAutoTrading = true        ← Enable automatic trading
├── RiskPerTrade = 1.0              ← Start with 1% risk (conservative)
├── MaxDailyLoss = 3.0              ← 3% daily loss limit
├── MinConfidence = 80              ← High confidence trades only
└── ServerURL = "http://localhost:8000"  ← Leave default (optional)

⚡ Advanced Settings:
├── EnableDashboard = true          ← Enable AI dashboard
├── AnalysisInterval = 300          ← Analysis every 5 minutes
└── RiskCheckInterval = 60          ← Risk check every minute

Step 3: Enable AutoTrading

  1. In MT5 toolbar, click AutoTrading button (should turn green)
  2. If red, click it to enable automated trading

Step 4: Monitor Initialization

Check the Expert Advisors tab (bottom of MT5) for:

✅ "Revolutionary AI Intelligence System v4.0 FINAL - Starting Intelligence Systems"
✅ "Core components initialized successfully"  
✅ "Revolutionary AI Intelligence System v4.0 FINAL - All Systems Online"

🔧 ADVANCED CONFIGURATION

Risk Management Settings:

// Conservative (Beginners)
RiskPerTrade = 0.5              // 0.5% per trade
MaxDailyLoss = 2.0              // 2% daily limit
MinConfidence = 85              // Very high confidence only

// Balanced (Intermediate)  
RiskPerTrade = 1.5              // 1.5% per trade
MaxDailyLoss = 4.0              // 4% daily limit
MinConfidence = 75              // Balanced confidence

// Aggressive (Experienced)
RiskPerTrade = 2.5              // 2.5% per trade
MaxDailyLoss = 6.0              // 6% daily limit  
MinConfidence = 70              // More trade opportunities

Time-Based Settings:

AnalysisInterval = 180          // Faster analysis (3 minutes)
AnalysisInterval = 600          // Slower analysis (10 minutes)

RiskCheckInterval = 30          // More frequent risk checks
RiskCheckInterval = 120         // Less frequent risk checks

📊 MONITORING YOUR EA

Real-Time Monitoring:

  1. Expert Advisors Tab - Initialization and error messages
  2. Journal Tab - Detailed trading logic and analysis
  3. Chart Dashboard - AI intelligence display (if enabled)
  4. Terminal → Trade - Active positions and orders

Key Messages to Watch For:

🧠 "Performing Revolutionary Intelligence Analysis..."
🎯 "Intelligence Report: Signal: BUY, Conviction: STRONG..."
✅ "INTELLIGENT TRADE EXECUTED: Ticket: 12345..."
🚨 "Risk management check passed"

Warning Messages:

🚫 "Conviction too low: WEAK"
🚫 "Success probability too low: 45%"
🚨 "Daily loss limit reached: -3.5%"
⚠️ "AI Server offline - using built-in analysis"

🛠️ TROUBLESHOOTING

Common Issues:

"Include file not found" Error

Solution: Ensure Include/ files are copied to correct location:

MQL5/Include/AI/AIIntegrationManager.mqh
MQL5/Include/Trade/TradeManager.mqh
etc.

"AutoTrading disabled" Message

Solution:

  1. Click AutoTrading button in MT5 toolbar
  2. Check if your broker allows automated trading
  3. Verify account permissions

"No trades being executed"

Possible causes:

  1. MinConfidence too high - Lower to 70-75
  2. Market conditions - EA waits for high-conviction opportunities
  3. Risk limits reached - Check daily loss limits
  4. Spread too wide - Test on major pairs with tight spreads

"Dashboard not appearing"

Solution:

  1. Ensure EnableDashboard = true
  2. Check if chart has sufficient space
  3. Try refreshing chart (F5)

🎯 TESTING RECOMMENDATIONS

Demo Testing (Mandatory):

  1. Install on demo account first
  2. Run for minimum 1 week
  3. Monitor all features and settings
  4. Verify risk management works correctly

Paper Trading Settings:

RiskPerTrade = 0.1              // Very small risk for testing
MaxDailyLoss = 0.5              // Small loss limit
MinConfidence = 90              // Very conservative
EnableDashboard = true          // Monitor all decisions

Backtesting:

  1. Strategy Tester in MT5 (Ctrl+R)
  2. Select RevolutionaryAI_EA_FINAL
  3. Test on EURUSD H1 for reliable results
  4. Run for 3-6 months of historical data

📞 SUPPORT

Getting Help:

  1. Check Journal tab for detailed error messages
  2. Review this installation guide for common solutions
  3. Test in demo environment first
  4. Contact via MQL5 community for additional support

Reporting Issues:

When reporting problems, please include:

  • MT5 build version
  • EA settings used
  • Error messages from Journal tab
  • Symbol and timeframe tested
  • Account type (demo/live)

INSTALLATION CHECKLIST

  • Files copied to correct MQL5 directories
  • EA compiles without errors (0 errors, 0 warnings)
  • AutoTrading enabled in MT5
  • EA attached to chart successfully
  • Initialization messages appear in Expert Advisors tab
  • Dashboard appears on chart (if enabled)
  • Risk settings configured appropriately
  • Demo testing completed
  • Ready for live trading

🎉 Congratulations! Your Revolutionary AI Trading System is now ready to trade intelligently!

Remember: Always start with demo testing and conservative settings.