Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
1082
Rating:
(3)
Published:
2025.04.14 08:07
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

What exactly is it for?

  • Visual reference of your EAs' performance: Manually enter your strategy's known or expected Historical Maximum Drawdown (e.g., from backtesting or previous results). This way, you'll always have a clear reference to see if your EA is within normal parameters or experiencing an unexpected situation.
  • Continuous monitoring of current risk: You can also use it to monitor the current drawdown in real time and check if you are exceeding critical levels that require your immediate attention.
  • Smart and detailed notifications: The indicator sends push notifications (to your mobile phone via the MetaTrader app) whenever a new drawdown record is set, or periodically (depending on your settings), to keep you informed without overwhelming you with unnecessary messages.
  • Automatic logging: Allows you to continuously log the drawdown to an external file (CSV or TXT) for later analysis.

Who is it for?

  • Traders who operate with automatic or semi-automatic systems   and want to quickly know if their EA is performing within the maximum expected drawdown.
  • Users who need to visually check the behavior of their strategies   under real-life conditions versus expectations based on previous tests.
  • Any trader who wants to effectively manage their risk, knowing immediately when their trading goes beyond acceptable limits.

Detailed Configuration Guide (Inputs)

These are all the customizable parameters of the indicator:

  1. Magics to monitor (-1 tracks all)
    Specifies the magic numbers of the positions to track. Use   -1   to monitor all of them.
  2. Initial Max DD (%)
    This is where you enter your EA's known historical maximum drawdown (e.g., the highest result obtained in a long backtest). This will serve as a visual reference.
  3. Refresh Interval (seconds)
    Frequency of calculation updates.
  4. MaxDD update mode
    Defines how the all-time high is updated:
    • UPDATE_MAX_DD_IF_BIGGER: Automatically updates if the current one exceeds the entered history.
    • NO_UPDATE_MAX_DD: Never updates the manually entered historical value, but sends notifications every 60 minutes about the current status.
  5. Send push notifications?
    Enable or disable push notifications to your mobile.
  6. Fixed or peak reference?
    Choose how to define the balance reference:
    • REF_FIXED_BALANCE: Fixed balance, entered manually.
    • REF_PEAK_BALANCE: Always use the maximum balance reached (saved automatically).
  7. Fixed balance (0 => current)
    Initial fixed balance. If you use   0, the current balance is taken when loading the indicator.
  8. Color for current DD text
    Color of the current drawdown text.
  9. Color for max DD text
    Historical drawdown text color.
  10. Font size (current DD)
    Font size of the current drawdown.
  11. Font size (max DD)
    Historical drawdown font size.
  12. Labels behind chart?
    Place the texts behind the graphic.
  13. Label X (pixels)
    Horizontal distance from the left edge.
  14. Label Y (pixels)
    Vertical distance from the top edge.
  15. Vertical spacing
    Vertical space between texts.
  16. Print logs in Journal?
    Enable detailed messages in the Journal.
  17. Enable File Log
    Automatically records the current drawdown to an external file.
  18. File extension (CSV or TXT)
    Choose the format of the generated file.

Automatic registration in file

Drawdown values are automatically logged along with the date and time in CSV or TXT format, located in the MT5 common folder ( MetaTrader 5 Terminal/Common/Files/ ). This is ideal for analyzing your results later.

Important recommendations to get the most out of it

  • Always enter the expected Historical Maximum Drawdown   (backtesting result, previous performance, etc.) in the input   "Initial Max DD (%)" . This will allow you to quickly assess whether your EA is experiencing a normal period or needs adjustments.
  • Place the indicator on a dedicated chart, monitoring all the magic numbers, or on each specific chart if you prefer independent data.
  • Carefully adjust the refresh rate, colors, position, and size of text for optimal viewing based on your preferences.

To receive push notifications on your mobile

  1. Open MetaTrader on mobile and copy your   MetaQuotes ID   ( Settings > Messages ).
  2. In MetaTrader 5 desktop, go to   Tools > Options > Notifications .
  3. Brand   Enable Push Notifications   and paste your MetaQuotes ID.

Kuskus Starlight Kuskus Starlight

Kuskus Starlight is an oscillator that utilizes a Fisher price transformation to identify trends and potential reversals. The original MT4 code by Scriptor is available at: https://www.mql5.com/en/code/8365.

Candle Signature Candle Signature

Candle Signature with Example | For Research and Development

Volume Oscillator Volume Oscillator

A volume oscillator is a useful technical analysis indicator that predicts the strength or weakness of price trends

ColorXMA_Ishimoku_StDev - indicator for MetaTrader 5 ColorXMA_Ishimoku_StDev - indicator for MetaTrader 5

The XMA_Ishimoku indicator with additional trend strength indication using colored dots based on the standard deviation algorithm. The original code in the attached link had plotting problems.