支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Universal Magic Number Generator

👤 作者: Augusto Osvaldo Toso

4.5 分

¥210.00

📌 版本: v1.0
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Universal Magic Number Generator

作者Augusto Osvaldo Toso
版本v1.0
激活数5
原价$30 USD

Universal Magic Number Generator

Tired of Magic Number collisions? This simple yet powerful utility generates unique, reproducible Magic Numbers for your Expert Advisors based on three parameters: Symbol, Timeframe, and EA Identifier.

It includes THREE tools in one:

  1. HTML Web Tool: Works in any browser for quick, offline generation. It includes real-time decoding and session history.

  2. MT5 Script: Just drag it to any chart, input your EA ID (1-2 characters), and it instantly displays the Magic Number and its decoded parts on a clean, black panel.

  3. MQL5 Include File ( MagicGen.mqh ): Add  #include <MagicGen.mqh>  to any EA code and auto-generate the Magic Number in  OnInit()  with a simple function call.

Perfect for:

  • Developers running multiple EAs on the same symbol.

  • Traders who need to avoid Magic Number conflicts in their portfolios.

  • Anyone who wants a simple, standardized way to generate identifiers.

User Guide — Magic Number Generator

1️⃣ Web Tool (HTML)

How to use:

  1. Open the  MagicNumberGenerator.html  file in any browser (Chrome, Firefox, Edge, etc.).

  2. Fill in the three fields:

    • Symbol: the asset you use in MT5 (e.g., XAUUSD, BTCUSD, NAS100).

    • Timeframe: the period in minutes (e.g., 1, 5, 15, 60, 240).

    • EA ID: a 1 or 2-letter identifier for your EA (e.g., A, B, S1, TK).

  3. Click Generate.

  4. The generated number appears in large text. You can copy it using the Copy button.

  5. The history panel keeps the last combinations used. Click on any row to load it again.

2️⃣ MT5 Script ( MagicDisplay.ex5 )

How to use:

  1. Copy the  MagicDisplay.ex5  file to your MT5 terminal's  MQL5/Scripts/  folder.

  2. In MT5, drag the script from the indicator/script navigator onto any chart.

  3. In the parameters window, enter your EA ID (e.g., A, B, S1, TK).

  4. The script will display a black panel in the top-left corner showing:

    • Current symbol and timeframe.

    • The generated Magic Number (as string and as integer for MT4 compatibility).

    • The decoded parts of each block.

    • A warning if the number exceeds 19 digits.

  5. If you change the chart or timeframe, the panel updates automatically.

  6. To close it, remove the script from the navigator or restart MT5.

3️⃣ Include File for EAs ( MagicGen.mqh )

How to use:

  1. Copy the  MagicGen.mqh  file to your terminal's  MQL5/Include/  folder.

  2. In your EA code, add at the top:

    cpp

    #include <MagicGen.mqh>

  3. In  OnInit() , call the function:

    cpp
    int magic = GenerateMagicNumber("A", Symbol(), Period());

    Replace  "A"  with your EA's identifier.

  4. Use the  magic  variable as the Magic Number in your orders.

  5. The generated number is always the same for the same combination of symbol, timeframe, and ID.

⚠️ Important Note

The conversion algorithm (letter → number) is part of the product.
If you want to know exactly how the number is generated, buy it. ?



安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览