AOT User Manual

Symbol Settings

  • Basic Settings
    • In MT5 press Ctrl + M to turn on Market Watch

    • Next right-click on the Market Watch box and select Show All

  • Language

    MT5 must use English as its language


  • Algo Trading: Enabled

  • How to drop Ea into chart

    Open all the charts you want to use the EA on
    Just drop the EA onto one of those charts. Hide the rest of the charts


  • Broker Symbol Prefix, Suffix
    • For example:

      If your broker's currency pair is EURUSD, leave these two lines blank

      ✨If your broker’s currency pair is m.EURUSD

      ✨If your broker’s currency pair is EURUSD.pro

      ✨If your broker’s currency pair is EURUSDpro


  • If you use AI feature
    • Language: ✨MT5 must use English as its language

  • News filter feature setup guide

    Starting from Version 1.9, your EA includes the News Filter feature. This functionality allows the EA to automatically pause trading around significant news events, helping to mitigate risks from sudden market volatility.

    (Source news: https://www.mql5.com/en/economic-calendar)

    • High Impact: Blocks high-impact news. (Default: false)
    • Medium Impact: Blocks medium-impact news. (Default: false)
    • Low Impact: Blocks low-impact news. (Default: false)
    • Before News: Minutes to pause before news. (Default: 10)
    • After News: Minutes to pause after news. (Default: 10)


  • Equity Protection

    The percentage figures are calculated based on the profit or loss generated exclusively by the AOT Bot . When either of these thresholds is reached, all positions opened by AOT will be automatically closed .

    This mechanism functions similarly to a global Take Profit (TP) and Stop Loss (SL) expressed as a percentage of the account equity.


    🛠 Functionality Settings

    • Default Disabled (False)
    • Close All at X% Profit

    When the total profit reaches the specified percentage of the account equity, all open positions will be closed automatically.

    Example: 2.0 = 2% of equity — indicating that this profit threshold corresponds to 2% of the total account capital.

    • Close All at X% Loss

    When the total loss reaches the specified percentage of the account equity, all open positions will be closed automatically.

    Example: -5.0 = -5% of equity — indicating that this loss threshold corresponds to a 5% drawdown from the total account capital.


    ⚠️ Note: Positions are identified and managed using a Magic Number .

    ⚠️ Recommendations for Parameter Tuning

    Users should adjust these parameters in accordance with other active settings such as:

    • Lot Size
    • Recovery System (if enabled)
    • Smart Position Sizing (if enabled)

    Testing Methodology

    • Test Version 0: Default settings + feature disabled (False)
    • Test Version 1: Default settings → enable the Equity Protection feature (True)

    • Test Version 2: Reduce Base Lot Size to 0.1 + enable Equity Protection with TP = 10% , SL = -4%

    Compare performance results across test versions before deploying live.

    🔑 Important Considerations (Equity Protection)

    • Avoid setting a large lot size while using small TP/SL thresholds , as this may negatively impact performance and risk management.
    • Always perform thorough backtesting before applying any configuration in a live trading environment.
Lot Size Installation Guide
  • Lot Calculation Method : Auto-Calculate by Balance
    • Auto Lot Size: Enable automatic lot sizing based on your account balance for dynamic risk management.
      • Auto Lot Size (Dynamic Position Sizing): Enable Auto Lot Size to let the bot automatically adjust position size based on your account balance—ideal for dynamic risk management across different capital sizes.
      • Lot Size to Trade = Lot Size Value × (Your Actual Capital / Standard Capital for Calculation)
      • Example: Let’s say you set:
        • Base Lot Size = 0.025

        Standard Capital for Calculation = $10,000

        Then:

        • If your account balance is $10,000, the bot will trade 0.25 lots.
        • If your account balance is $5,000, the bot will scale down and trade 0.0125 lots.
        • If your account balance is $20,000, the bot will scale up and trade 0.05 lots.

  • Lot Calculation Method : Fixed Size (Set a constant lot size per trade)
    • Example: This set will make the trade open with fixed lot = 0.025 for every entry signal:


  • Smart Position Sizing

    The default risk setting is the base value.
    Once the bot starts trading on your account and your balance grows (through the AOT's performance), if you enable this function, the bot will begin adjusting the lot size automatically—increasing it when performance is strong and reducing it during stagnation periods.

    This mechanism is designed to maximize profitability, not just in name.

    However, the final lot size will still remain within the limits defined by the minimum and maximum lot size settings.

Instruction Manual: Buying an API and Installing AI

Detailed instructions are in the article: https://www.mql5.com/en/blogs/post/763306

Aot Recovery System User Guide

📋 Overview

The Recovery System is an advanced martingale-based trading feature that helps recover from losing positions by opening additional same-direction trades with progressively larger lot sizes. This feature is designed for experienced traders who understand the increased risks involved.

⚠️ Critical Warning

Recovery mode increases risk significantly. This system uses martingale principles which can lead to substantial losses. Use only with proper risk management and sufficient account balance. Always test on demo accounts first.

Recovery System User Guide


⚙️ Input Parameters

🔧 Enable Recovery System (Advanced Users Only)

  • Default: false (OFF)
  • Description: Master switch to activate the recovery system
  • Options:
    • false = Normal trading only (one position per symbol)
    • true = Recovery system active (multiple positions allowed per symbol)

📈 Lot Multiplier for Recovery Trades (1.5 = 50% increase)

  • Default: 1.5
  • Description: Factor by which lot size increases for each recovery level
  • Examples:
    • 1.2 = Each recovery trade is 20% larger (conservative)
    • 1.5 = Each recovery trade is 50% larger (moderate)
    • 2.0 = Each recovery trade is double the size (aggressive)

Lot Size Progression Example:

Recovery LevelMultiplier 1.5Multiplier 2.0
Original0.10 lot0.10 lot
Recovery 10.15 lot0.20 lot
Recovery 20.225 lot0.40 lot
Recovery 30.338 lot0.80 lot

🔢 Maximum Recovery Attempts (1-5 recommended)

  • Default: 3
  • Description: Maximum number of recovery trades allowed per symbol
  • Examples:
    • 1 = Only 1 recovery attempt (conservative)
    • 3 = Up to 3 recovery attempts (moderate)
    • 5 = Up to 5 recovery attempts (aggressive)
💡 Example

With Maximum Recovery Attempts = 3:

  • Original EURUSD BUY trade goes into loss
  • System can open up to 3 additional EURUSD BUY trades (same direction)
  • Total maximum: 4 BUY trades on EURUSD

💰 Max Risk Per Recovery Cycle (% of balance)

  • Default: 50.0 ⚠️ VERY AGGRESSIVE!
  • Recommended: 5.0 for safety
  • Description: Maximum percentage of account balance at risk per recovery cycle

Risk Level Guide:

Risk %Risk Level
2.0%Very Conservative
5.0%Moderate
10.0%Aggressive
50.0%Extremely Aggressive
📊 Example
  • Account balance: $10,000
  • Max Risk Per Recovery Cycle = 50.0%
  • Maximum risk allowed: $5000 per symbol’s recovery cycle

🎯 Close Recovery Cycle at X points (0 = B.E, 50 = 5 pips profit)

  • Default: 0 (Break-even)
  • Description: When to close all recovery trades based on total combined points profit
  • Examples:
    • 0 = Close when total combined points ≥ 0 (break-even)
    • 50 = Close when total combined points ≥ 50
    • 100 = Close when total combined points ≥ 100
    • 50 = Close at total 50 points loss (stop further recovery)
🔍 Calculation Example

EURUSD recovery cycle with 3 BUY positions:

  • Position 1: +20 points
  • Position 2: -10 points
  • Position 3: +35 points
  • Total = +45 points

With Close Recovery Cycle = 50 → positions stay open
With Close Recovery Cycle = 40 → ALL positions close


🔄 How Martingale Recovery Works

Step-by-Step Process

  1. 🎯 Original Signal
    • Opens BUY 0.10 EURUSD @ 1.1000
    • Based on mean reversion strategy
  1. 📉 Price Drops
    • Trade goes to -50 points loss
    • Position becomes losing
  1. 🎯 New Signal Required
    • Another BUY signal appears @ 1.0950
    • Signal must meet all original criteria
  1. 📈 Recovery Trade 1
    • Opens BUY 0.15 EURUSD @ 1.0950 (50% larger)
    • Must be minimum distance from original
  1. 📉 Still Losing
    • Combined trades still in loss
    • System monitors total risk
  1. 🎯 Another Signal
    • New BUY signal appears @ 1.0900
    • Distance requirements checked
  1. 📈 Recovery Trade 2
    • Opens BUY 0.225 EURUSD @ 1.0900 (125% larger)
    • Total: 3 positions in same direction
  1. ✅ Recovery Success
    • Price moves up
    • All positions close when target reached

Key Features

  • Same Direction Only: All recovery trades match original direction
  • Signal Required: New entry signal needed for each recovery trade
  • Distance Control: Recovery trades must be minimum distance apart
  • Risk Monitoring: Stops if risk limit exceeded
  • Auto Close: Closes all when target points reached

📝 Practical Example

Configuration

Enable Recovery System = true
Lot Multiplier = 1.5
Maximum Recovery Attempts = 2
Max Risk Per Recovery Cycle = 5.0%
Close Recovery Cycle = 0 (break-even)

Trading Scenario

StepActionLot SizePriceStatus
1Original BUY0.101.1000-$150 loss
2Recovery BUY 10.151.0950-$200 combined
3Recovery BUY 20.2251.0900Price recovers
4Close All-1.0920Break-even reached

Risk Controls Applied

  • ✅ Maximum 3 trades total (1 original + 2 recovery)
  • ✅ Total risk limited to 5% of account balance
  • ✅ Automatic close at break-even (0 points)
  • ✅ Distance requirements enforced between trades

🎛️ Recommended Settings

🛡️ Conservative (Safest)

Lot Multiplier = 1.2
Maximum Recovery Attempts = 1
Max Risk Per Recovery Cycle = 2.0%
Close Recovery Cycle = 0

Best for: Beginners, small accounts, risk-averse traders

⚖️ Moderate (Balanced)

Lot Multiplier = 1.5
Maximum Recovery Attempts = 2
Max Risk Per Recovery Cycle = 5.0%
Close Recovery Cycle = 50

Best for: Experienced traders, medium accounts, balanced approach

⚡ Aggressive (Higher Risk/Reward)

Lot Multiplier = 2.0
Maximum Recovery Attempts = 3
Max Risk Per Recovery Cycle = 10.0%
Close Recovery Cycle = 100

Best for: Professional traders, large accounts, high-risk tolerance


⚠️ Critical Safety Guidelines

Before Using Recovery System

  • Test on demo account for at least 1 month
  • Start with conservative settings
  • Ensure adequate account balance (minimum $5,000 recommended)
  • Understand martingale risks completely
  • Have stop-trading rules in place

Risk Management Rules

  1. Never risk more than you can afford to lose
  1. Change default risk from 50% to 5% or lower
  1. Monitor account balance daily
  1. Set maximum daily/weekly loss limits
  1. Disable system during high-impact news

Warning Signs to Stop Trading

  • 🚨 Account drawdown exceeds 20%
  • 🚨 Multiple recovery cycles failing
  • 🚨 Emotional stress affecting decisions
  • 🚨 Strong trending market against positions
  • 🚨 Margin requirements becoming tight

📃 Comparison of Backtest Results

Period: January 1, 2020 – July 10, 2025

ℹ️ Parameters for Comparison

🔴 Disabled

🔵 Enabled


🤔 Frequently Asked Questions

Q: When does the recovery system activate?

A: Only when an existing trade is losing AND a new entry signal appears in the same direction, with proper distance between trades.

Q: Can I have recovery trades in both directions?

A: Yes, BUY and SELL recovery cycles operate independently per symbol.

Q: What happens if I reach maximum recovery attempts?

A: No more recovery trades will open. Existing positions remain until normal close conditions or recovery target is reached.

Q: How does the distance control work?

A: Each recovery trade must be at least the minimum distance parameter away from existing positions to prevent clustering.

Q: Can I manually close recovery trades?

A: Yes, but it’s recommended to let the system manage closes according to its rules for optimal recovery performance.


📞 Support & Troubleshooting

If you experience issues with the Recovery System:

  1. Check all input parameters match your intended settings
  1. Verify sufficient account balance for recovery operations
  1. Ensure correlation settings allow multiple positions if recovery is enabled
  1. Review log messages for blocked trades and reasons
  1. Test configuration changes on demo account first
💡 Remember

The Recovery System is a powerful tool that can significantly impact your trading results. Use it responsibly with proper risk management and thorough testing.

Correlation Manager

⚙️ Input Parameters

  1. Use Correlation Filter (prevents similar trades)
    • true: Enables the filter. The EA will check and limit the number of trades based on a currency's direction.
    • false: Disables the filter. The EA will not apply this limit.

  1. Minimum Correlation to Consider (0.7 = 70% similar)
    • Definition: This sets the "similarity" threshold. If the correlation between two pairs is higher than this value, they will be considered a "correlated pair," and the filter will apply.
    • A value of 0.7 means that if two pairs move in the same direction at least 70% of the time (e.g., EURUSD and GBPUSD), they are considered similar.
    • Customization: Increasing this value (e.g., to 0.8) makes the filter less strict and allows more trades. Decreasing it (e.g., to 0.6) makes the filter stricter.

  1. Max Positions in Correlated Pairs
    • Definition: This sets the MAXIMUM number of trades allowed to be open at the same time within a group of highly correlated pairs.
    • A value of 1 means: if the EA has an open trade on EURUSD, it will NOT open any new trades on other pairs highly correlated with it (like GBPUSD) until the first trade is closed. This is the safest setting.

  1. Use Currency Exposure Filter
    • Definition: This is the master On/Off switch for the second protection layer.
    • true (On): The EA will actively count how many open trades are buying or selling the same individual currency.
    • false (Off): The EA will ignore this check. In your screenshot, this is currently set to false.

  1. Max positions per currency direction
    • Definition: This sets the MAXIMUM number of positions allowed for the same direction (buy or sell) of a single currency.
    • Important Note: This parameter ONLY has an effect when Use Currency Exposure Filter is set to true.
    • A value of 2 (as in the screenshot) means: if the feature were enabled, the EA would never allow more than 2 trades to be selling the JPY at the same time, or more than 2 trades buying the EUR, etc. If two JPY-sell trades were already open (e.g., a Sell on USDJPY and a Sell on GBPJPY), the EA would block any new trade that also involves selling JPY (like a Sell on AUDJPY) until one of the existing positions is closed.

    Recommended values (when the filter is enabled):

    • 1: The safest and most conservative setting.
    • 2: A good balance between risk control and profit potential (Recommended).
    • 3+: Suitable for traders with a higher risk tolerance.

⚠️ IMPORTANT NOTE: THE RISK vs. REWARD TRADE-OFF

  • Enabling the Currency Exposure Filter will effectively reduce Drawdown, providing better protection for your account. However, this also means that profits may be lower because the EA will skip trades that exceed the risk limit.
  • Disabling the Filter (or setting a high limit) will allow the EA to enter more trades, potentially increasing profits but also increasing the risk of a higher Drawdown.


Smart Loss Reduction Setup Guide

1️⃣ Overview

Smart Loss Reduction automatically reduces the maximum loss (stop loss) when a losing trade starts to recover.
This helps preserve capital and removes emotional decision-making from trade management.


2️⃣ How It Works

  • When a trade is losing up to the activation threshold (default: 60% of the max loss), Smart Loss Reduction is activated.
  • Each time the price recovers by a set percentage (default: 10%), the stop loss is moved closer accordingly.
  • Stop loss is only improved and never moved farther away than the original position.


3️⃣ How to Configure in EA

ParameterDescriptionDefaultSuggestion
SLR_ActivationLoss % to activate feature60Adjust per strategy
SLR_RecoveryStepRecovery % per SL adjustment10Smaller value = faster SL movement
SLR_EnableEnable or disable featuretrueSet false to disable

4️⃣ Example

Initial Setup: Buy EUR/USD at 1.1000, stop loss 1.0800 (200-pip risk).

Scenario: Price drops to 1.0880 (down 120 pips = 60%) → SLR activates.
Price recovers to 1.0920 (40-pip recovery = 20%) → SL moves to 1.0840.

Result: If price falls back and hits the new SL, loss is 160 pips instead of 200.


5️⃣ Usage Notes

  • This feature will not turn losing trades into winners, it only helps reduce maximum losses.
  • Suitable for trades with relatively large stop losses (100–300 pips).
  • Combine with proper money management for best results.

⚠️ IMPORTANT RISK SETTING WARNING ⚠️

  • Even with Smart Loss Reduction, trades can still hit Stop Loss → You will still lose the set risk amount.
  • Always set an appropriate Risk level for your account and strategy.
  • You must know the maximum Drawdown (DD) of your current preset.
  • If unsure, ask first to avoid unnecessary losses

Frequently Asked Questions

Q: What settings do you use for your live account?

A: Our live account uses the EA's default settings.

Q: How long is the API KEY valid for?

A: The API KEY does not have an expiration date. You just need to add funds to your Claude account and start using it. When your funds run out, you just add more.

Error Fix Guide

Error 5004

  1. Close any programs that might have the CSV file open (Excel, Notepad, etc.),
  1. Restart MT5 to ensure no file handles are stuck.,
  1. Check their antivirus isn't blocking MT5 file operations.,
  1. Run MT5 as Administrator (right-click → Run as administrator).