AI Impetus EA - User Manual and Installation Guide

23 October 2025, 08:48
Michael Schuster
0
299

AI Impetus EA - The Ultimate Multi-AI Forex Trading Robot

Revolutionary 9-AI Model Trading System with Advanced Grid Technology & Prop Firm Protection

Developed by experienced traders and AI specialists, AI Impetus EA represents the next generation of automated forex trading. This groundbreaking Expert Advisor integrates nine premium AI models (Claude 4 Sonnet, GPT-4o, Grok-3, DeepSeek, Mistral, Llama 3.1, Gemini 1.5, Kimi K2, OpenRouter) to deliver unprecedented market analysis and trading decisions.

Live Performance: View Live Signal
Backtesting Information: Why this EA cannot be backtested
Complete Documentation: This Document

Core Trading Strategy

AI Impetus EA employs AI-driven consensus trading combined with a sophisticated bidirectional grid system. The EA queries multiple AI models simultaneously, requiring a minimum consensus (default: 2 AIs) before opening positions. This multi-AI approach significantly reduces false signals and improves trade quality.

Key Features:

  • 9 Premium AI Models working in consensus
  • Bidirectional Grid System with 3 modes (Fixed, Progressive, Martingale)
  • Prop Firm Protection (Daily & Max DD limits with emergency close)
  • Dynamic TP/SL based on ATR volatility
  • Alternative pair selection when main pairs are maxed out
  • Time & News filters for optimized trading hours
  • Comprehensive risk management with position limits

Installation & Setup

CRITICAL: Configure WebRequest URLs

IMPORTANT: Before the EA can connect to AI providers, you MUST allow WebRequest URLs in MetaTrader 5!

Step-by-step:

  1. In MetaTrader 5, go to Tools > Options
  2. Click the "Expert Advisors" tab
  3. Check the box "Allow WebRequest for listed URL"
  4. Add the following URLs (one per line):

Required URLs for all 9 AI Providers:

https://api.anthropic.com
https://api.openai.com
https://api.x.ai
https://api.deepseek.com
https://api.mistral.ai
https://api.groq.com
https://api.together.xyz
https://generativelanguage.googleapis.com
https://api.moonshot.cn
https://openrouter.ai

After adding URLs:

  1. Click "OK" to save settings
  2. Restart MetaTrader 5 completely
  3. The EA can now connect to all AI providers

⚠️ TROUBLESHOOTING: If you get "URL not allowed" errors, double-check that all URLs are added correctly with https:// and no extra spaces or characters.

Attaching EA to Chart

  1. Open any chart (recommended: EURUSD M15)
  2. Drag the EA from Navigator onto the chart
  3. Enable "Allow Algo Trading" in the settings
  4. Configure your API keys (see below)

API Setup Guide

CRITICAL: You need API keys to enable AI models. Without API keys, the EA will run in Technical-Only mode (using indicators only).

Claude API (Anthropic) - Recommended

  1. Visit console.anthropic.com
  2. Sign up or log in with your email (avoid Google/Microsoft for better security)
  3. Go to Settings > API Keys
  4. Click "Create Key"
  5. Name your key (e.g., "MT5-Trading")
  6. Copy the key immediately (starts with "sk-ant-")
  7. Important: Store it securely - you can't view it again!
  8. Pricing: Pay-as-you-go, ~$3-5/month for typical trading use

Model Recommendation: Claude 3 Haiku (fast, cost-effective) or Claude 4 Sonnet (best quality)

OpenAI API (GPT-4)

  1. Visit platform.openai.com
  2. Sign up or log in
  3. Go to Dashboard > API Keys
  4. Click "Create New Secret Key"
  5. Name your key and copy it (starts with "sk-")
  6. Set up billing: Settings > Billing
  7. Add minimum $5 credit to activate GPT-4 access
  8. Pricing: ~$0.03 per 1K tokens (GPT-4o), ~$5-10/month typical use

Model Recommendation: GPT-4o (fastest) or GPT-4-turbo (best balance)

Grok API (xAI)

  1. Visit ide.x.ai
  2. Sign in with your X (Twitter) account
  3. Click your username (top right) > "API Keys"
  4. Click "Create New Key"
  5. Name your key and copy it (starts with "xai-")
  6. Pricing: Requires X Premium subscription ($8-16/month)

Model Recommendation: Grok-3-mini-fast (fastest responses)

DeepSeek API

  1. Visit platform.deepseek.com
  2. Sign up or log in
  3. Navigate to API Keys in the left sidebar
  4. Click "Create new API Key"
  5. Copy your key immediately
  6. Pricing: Very affordable, ~$0.14-0.27 per million tokens

Model Recommendation: DeepSeek-chat (excellent value)

Google Gemini API

  1. Visit aistudio.google.com
  2. Sign in with Google account
  3. Click "Get API Key"
  4. Create key in new or existing project
  5. Copy your key
  6. Pricing: Generous free tier (60 requests/minute), then pay-as-you-go

Model Recommendation: Gemini 1.5 Flash (free tier) or Gemini 2.5 Pro

Additional APIs (Optional)

EA Configuration

API Keys Section

Enter your API keys in the EA settings:

  • Claude API Key: Your Anthropic API key
  • OpenAI API Key: Your OpenAI key for GPT-4
  • Grok API Key: Your xAI key
  • DeepSeek API Key: Your DeepSeek key
  • Gemini API Key: Your Google AI key
  • ...and others as needed

AI Activation

Enable/disable each AI model:

  • Use Claude: true/false
  • Use OpenAI: true/false
  • Use Grok: true/false
  • Enable at least 2 AIs for consensus trading

Model Selection

Choose specific model versions:

  • Claude Model: Haiku (fast), Sonnet 4 (best), Opus 4 (most intelligent)
  • OpenAI Model: GPT-3.5-turbo (cheap), GPT-4o (fast), GPT-4.1 (advanced)
  • Grok Model: Grok-3-mini-fast (recommended)

Key Trading Settings

  • Min AI Consensus: 2 (minimum AIs that must agree before trade)
  • Lot Size: 0.01 (base position size)
  • Magic Number: 123456 (unique identifier)
  • Max Spread: 30 points (avoid high-spread conditions)
  • Query Interval: 1800 seconds (30 minutes between AI queries)
  • Max Open Symbols: 8 (diversification limit)

Risk Management Settings

CRITICAL: These settings protect your account from excessive losses and control position sizing.

  • Max Lot Size Per Position: 0.15 (maximum lot size for any single position)
  • Max Total Lot Size: 0.5 (maximum combined lot size per symbol across all positions)
  • Max Drawdown Percent: 20.0% (drawdown limit before trading suspension)
  • Enable Account Protection: true (activate the protection system)
  • Max Daily Loss: 50.0 (maximum daily loss in account currency)
  • Grid Reset Daily: true (resets daily loss counter while keeping grid active)

⚠️ IMPORTANT - How Max Drawdown Percent Works:

When your account drawdown reaches the Max Drawdown Percent threshold (default: 20%):

  • ✓ Trading is SUSPENDED - No new positions will be opened
  • ✓ Existing positions REMAIN OPEN - You maintain full control
  • ✗ Positions are NOT automatically closed

The EA displays: "ACCOUNT PROTECTION ACTIVE - Trading suspended"

Calculation: Drawdown % = (Balance - Equity) / Balance × 100

Purpose: Prevents deepening losses while allowing existing positions to recover naturally. You can manually close positions if needed.

Risk Management Recommendations:

  • Conservative: Max Drawdown 10-15%, Max Daily Loss $25-50
  • Moderate: Max Drawdown 15-20%, Max Daily Loss $50-100
  • Aggressive: Max Drawdown 20-25%, Max Daily Loss $100-200
  • Never exceed: 30% Max Drawdown or risk account wipeout

Position Sizing Limits:

  • Adjust Max Lot Size Per Position based on account size (1-2% risk per trade)
  • Set Max Total Lot Size to prevent overexposure on a single symbol
  • For $1000 account: Max 0.05 per position, 0.15 total
  • For $5000 account: Max 0.15 per position, 0.5 total
  • For $10000 account: Max 0.30 per position, 1.0 total

Grid System Settings

  • Use Grid: true (enable grid trading)
  • Grid Mode: Progressive (recommended), Fixed, or Martingale
  • Grid Distance: 60 pips (spacing between grid levels)
  • Max Grid Levels: 10 (safety limit per symbol)
  • Grid Common TP (Dollar): $2 (profit target for all grid positions)
  • Enable Grid Rescue: true (intelligent grid recovery)

Prop Firm Protection (CRITICAL for Challenge Accounts)

  • Enable Prop Firm Mode: false by default - SET TO TRUE for funded accounts!
  • Daily DD Limit: 4.5% (safety margin below actual limit)
  • Max DD Limit: 9.0% (safety margin below actual limit)
  • Emergency Close DD: 4.0% (closes all positions)
  • Stop Trading on Limit: true (halts new trades when limit reached)

⚠️ Prop Firm vs Standard Risk Management:

Prop Firm Protection is MORE AGGRESSIVE than standard Risk Management:

  • Prop Firm: Closes ALL positions at Emergency Close DD (e.g., 4%)
  • Standard Risk: Only suspends trading, keeps positions open (e.g., 20%)
  • Use Prop Firm Mode for funded accounts with strict DD rules
  • Use Standard Risk for personal accounts where you want more control

TP/SL Settings

  • Use Volatility Adjustment: true (dynamic TP/SL based on ATR)
  • ATR Period: 14
  • Volatility TP Multiplier: 2.0 (TP = ATR × 2)
  • Volatility SL Multiplier: 1.5 (SL = ATR × 1.5)
  • Or use Manual TP/SL in pips if Volatility = false

Currency Pairs

Default Pairs: EURUSD, GBPUSD, EURAUD, USDCHF, AUDUSD, USDCAD, NZDUSD, AUDNZD, NZDCAD, AUDCAD, EURGBP, EURCHF

Broker Suffix: Enter if your broker uses suffixes (e.g., ".pro", "_m", "p")

Recommended Starting Configuration

For Beginners:

  • Enable: Claude (Haiku) + OpenAI (GPT-4o)
  • Min AI Consensus: 2
  • Lot Size: 0.01
  • Grid Mode: Progressive
  • Max Grid Levels: 5
  • Max Drawdown: 15%
  • Max Daily Loss: $25-50
  • Prop Firm Mode: OFF (unless using funded account)

For Advanced Users:

  • Enable: Claude + OpenAI + Grok (3 AIs)
  • Min AI Consensus: 2
  • Lot Size: 0.02-0.05
  • Grid Mode: Progressive or Martingale
  • Max Grid Levels: 10
  • Max Drawdown: 20%
  • Max Daily Loss: $100-200
  • Enable Alternative Pairs: true
  • Time Filters: Customize trading hours

Cost Estimation

Monthly API Costs (typical usage):

  • Claude 3 Haiku: $2-4/month
  • OpenAI GPT-4o: $5-10/month
  • Grok: Included in X Premium ($8-16/month)
  • DeepSeek: $0.50-2/month
  • Gemini: FREE (generous free tier)

Total: $10-25/month for 2-3 AI models (excellent value for institutional-grade analysis)

Monitoring & Dashboard

The EA displays a real-time dashboard showing:

  • Active AI models status
  • Current consensus count
  • Open positions per symbol
  • Grid status and levels
  • Prop Firm DD metrics (if enabled)
  • Account Protection status (when drawdown limit approached)
  • Last AI query time
  • Risk management statistics

Troubleshooting

EA Not Trading

  • Check "Allow Algo Trading" is enabled
  • Verify at least 2 AI models have valid API keys
  • Check spread is below Max Spread setting
  • Ensure sufficient margin is available
  • Verify trading time filters (if enabled)
  • Check Account Protection: If drawdown exceeds limit, trading is suspended

API Errors

  • "Invalid API Key": Double-check key was copied correctly
  • "Insufficient Credits": Add credits to your API account
  • "Rate Limit Exceeded": Increase Query Interval setting
  • "Network Error": Check internet connection and VPS stability

Grid System Issues

  • Grid too aggressive: Reduce Max Grid Levels or increase Grid Distance
  • Grid not opening: Check Max Total Lot Size per symbol isn't exceeded
  • Slow recovery: Enable Grid Rescue mode

Account Protection Issues

  • "ACCOUNT PROTECTION ACTIVE": Drawdown exceeded limit - reduce existing positions or wait for recovery
  • Daily Loss Limit Reached: Wait for daily reset (if Grid Reset Daily = true) or adjust Max Daily Loss
  • Positions Not Closing: Standard Risk Management does NOT close positions - use Prop Firm Mode for automatic closure

Best Practices

  1. Start Small: Begin with 0.01 lots and 2 AI models
  2. Use VPS: Ensure 24/7 uptime for consistent AI queries
  3. Monitor API Usage: Check your API provider dashboards weekly
  4. Prop Firm Accounts: ALWAYS enable Prop Firm Protection
  5. Diversify: Allow multiple currency pairs for better opportunities
  6. Regular Updates: Keep your EA updated for new AI models
  7. Backtest: Not possible due to real-time AI queries (see blog post)
  8. Risk Management: Never risk more than 2-5% of account per day
  9. Monitor Drawdown: Manually close positions if approaching protection limits
  10. Adjust Limits: Set Max Drawdown and Daily Loss based on your risk tolerance

Support & Resources

  • Technical Support: Contact via MQL5 private message
  • Updates: Available through MQL5 Market
  • Documentation: Full manual at blog link above
  • Community: Share experiences in MQL5 comments

Legal Disclaimer

Trading forex carries substantial risk of loss. Past performance does not guarantee future results. AI Impetus EA is a tool to assist trading decisions but does not guarantee profits. Users are responsible for their own trading decisions and API costs. Always trade with money you can afford to lose. The developer assumes no liability for trading losses.

Version: 2.18
Last Updated: October 2025
Developed by: AI Impetus EA Team