Magic number manager OrderByMagic EA

1. What It Does

OrderByMagic is a display-only Indicator for MT5. It reads all open positions on your account and shows them grouped by Magic Number directly on the chart — updated every 2 seconds. It never opens, closes, or modifies any trade.

2. Why You Need It

The Magic Number collision problem

Every EA stamps a Magic Number on the orders it opens so it can identify and manage them later. When you run multiple EAs at the same time, each one must have a unique Magic Number. In practice this often goes wrong:

      You attach a new EA and forget to change its default Magic Number (commonly 0 or 12345) — it silently collides with an existing strategy.

      You attach the same EA to two charts (e.g. EURUSD M15 and GBPUSD H1) with the same Magic Number.

      After a VPS reboot you re-attach an EA and accidentally type the wrong number in the input dialog.

      You use a purchased EA with a hardcoded Magic Number that clashes with your own.

 

  A collision means two EAs may manage each other's orders — closing or modifying trades they did not open. This causes unpredictable losses.

 

Why the MT5 Trades tab is not enough

The built-in Trades tab shows all positions in a flat list. It does not group by Magic Number, has no colour-coding per strategy, and requires manually adding the "Magic" column. Scanning 20+ positions across 5 strategies is slow and error-prone. OrderByMagic EA puts the grouped view directly on your price chart so you never have to leave it to audit positions.

 

Situation

Without this EA

With this EA

Running 3 EAs on 3 pairs

Hard to tell which orders belong to which EA

Each EA's orders in a separate labelled block

Re-attaching EA after VPS reboot

Risk of typing wrong Magic Number in the dialog

See all active Magic Numbers before you type

Testing a new EA alongside live EAs

New EA may use Magic 0 and interfere with manual trades

Confirm Magic 0 is free before starting

 

3. Input Parameters

 

Parameter

Default

Description

UpdateIntervalSeconds

2

Refresh rate in seconds

Corner

0

Display position: 0 = top-left, 1 = top-right

XDistance / YDistance

10 / 20

Pixel offset from the chosen corner

FontSize

9

Text size. Reduce to 7–8 if display overflows vertically

HeaderColor

Yellow

Color of the section header and divider lines

MagicColor

Aqua

Color of the ╔═══ MAGIC: xxx ═══ group headers

BuyColor / SellColor

Blue / Red

Colors for BUY and SELL position lines

TextColor

White

Color of general information text

 

4. Reading the Display

Positions are sorted by Magic Number. Each group shows:

      Group header    ╔═══ MAGIC: 10001 (2 orders) ═══

      Per position: Ticket · Type (BUY/SELL) · Symbol · Lot size · Open price · Current price · SL / TP · Open time

 

  ═══════════════════════════════════════

    LỆNH THEO MAGIC NUMBER

    2025.11.15 09:42:17   Total: 5 orders

  ═══════════════════════════════════════

╔═══ MAGIC: 10001 (2 orders) ═══

║ [1]  Ticket: 1234567890

   BUY  EURUSD  0.10 lot

   Open: 1.08342   Now: 1.08511

   SL: 1.07900   TP: 1.09000

   Opened: 2025.11.15 08:12

╚════════════════════════════════════

╔═══ MAGIC: 20050 (3 orders) ═══

║ [1]  Ticket: 1234567895

   SELL  GBPUSD  0.20 lot

   Open: 1.26800   Now: 1.26540

   SL: ---   TP: 1.25000

╚════════════════════════════════════


Altri dall’autore
SMC Complete Indicator v4 - Trading Guide Introduction The SMC Complete Indicator v4 is a Smart Money Concepts (SMC) trading tool for MetaTrader 5. It automatically identifies institutional trading patterns to help traders align with "smart money" - banks, hedge funds, and market makers. Core Principle: Large institutions need liquidity to fill massive orders. They create predictable patterns: accumulating at key levels, hunting stop losses, leaving footprints (Order Blocks, FVGs), and creating
FREE
Breakout Trend Trading Strategy Guide Table of Contents Core Concepts Breakout & Rejection Rules Entry & Exit Strategies Risk Management Trade Examples Common Mistakes Core Concepts The Breakout Trend Indicator identifies two key market behaviors: Breakouts : Price breaks through support/resistance levels Rejections : Price fails to break through these levels Indicator Calculations Top = Highest high of X candles (excluding current) Top1 = Highest high of X candles (including current) Bottom = L
FREE
# Super Trend Indicator - User Guide **Version:** 1.04 | **Platform:** MetaTrader 5 | **Release:** January 2025 --- ## OVERVIEW The **Grid Trend Indicator** combines Supertrend with Dual EMA filters to identify high-probability trading opportunities. Unlike standard indicators showing only bullish/bearish signals, this adds a crucial third state: **NO TREND**. ### Key Features **Triple-State System**: UPTREND (Green) / DOWNTREND (Red) / NO TREND (Gray)   **Multi-Layer Filtering**: S
FREE
Support Resistance Channels - Trading Guide Table of Contents Overview Indicator Basics Understanding the Channels Trading Strategies Entry and Exit Signals Risk Management Best Practices Common Mistakes to Avoid Overview The Support Resistance Channels indicator automatically identifies and displays the strongest support and resistance zones based on pivot points. Unlike simple horizontal lines, this indicator creates channels (zones) which better represent real market behavior where support an
FREE
CCI advanded
Minh Vuong Pham
5 (1)
CCI VISUAL ENHANCED - MT5 USER GUIDE INTRODUCTION CCI Visual Enhanced for MetaTrader 5 features: Intuitive visual interface Automatic buy/sell signals Smart alert system Dynamic histogram Strong signal & divergence detection INSTALLATION Method 1: MetaEditor (Recommended) Open MT5 → Press F4 (MetaEditor) File → New → Custom Indicator Program Name: CCI_Visual_Enhanced → Finish Delete sample code, paste .mq5 code Press F7 to compile Add to chart: Insert → Indicators → Custom
FREE
EMA Offset Bands Indicator - Description & Trading Guide Description The EMA Offset Bands indicator is a custom technical analysis tool designed for MetaTrader 5 that displays a central Exponential Moving Average (EMA) line surrounded by percentage-based offset bands. This indicator creates dynamic support and resistance levels that automatically adjust based on the EMA value. Key Features: Central EMA line (default: 200-period, displayed in yellow) Four upper offset bands at 1%, 2%, 3%, and 4%
FREE
MACD ADVANCED - BRIEF DESCRIPTION INTRODUCTION MACD Advanced is an enhanced version of the traditional MACD indicator featuring an intelligent 4-color system that helps traders easily identify market trends and momentum. KEY FEATURES 1. Smart 4-Color System Bright Green (Lime) - Strong Bullish: MACD > 0 and MACD > Signal Light Green (DarkSeaGreen) - Weak Bullish: MACD > 0 but MACD < Signal ️ Bright Red (Red) - Strong Bearish: MACD < 0 and MACD < Signal Orange Red (OrangeRed)
FREE
RANGE TRADING METHOD GUIDE Using the MultiTF_TopBottom_Bands Indicator 1. INTRODUCTION 1.1. What is Range Trading? Range Trading is a trading method based on identifying the price oscillation zone (range) of the market and utilizing price movements within this zone to trade. 1.2. Basic Principles Top : Resistance zone - where price typically gets pushed down Bottom : Support zone - where price typically gets pushed up Range : The distance between Top and Bottom % Lines : Important intermediate l
FREE
Smart mcd
Minh Vuong Pham
MCD Hot Money visualizes three distinct market participant groups as color-coded histograms in a separate sub-window, all normalized to a 0–20 scale. The indicator uses a sensitivity-weighted, offset-adjusted RSI engine to reveal when large institutional capital is entering or exiting the market. BUFFERS Retailer (Green) — fixed at 20, ceiling reference line Hot Money (Yellow) — short-term institutional flow, based on RSI(40) with base offset 30, sensitivity 0.7 Banker (Red) — smart / la
FREE
1. Introduction Collective TP Manager v2 is a MetaTrader 5 Expert Advisor designed to automatically manage the collective Take Profit and Stop Loss of multiple open positions on a single symbol. Instead of setting individual TP/SL for each order, this EA monitors the combined profit/loss of all (or filtered) positions and takes action when your targets are reached. 1.1 Why You Need This EA In modern trading, especially scalping and multi-EA environments, manually tracking the net profit of doze
FREE
OneClick Trade Panel v1.0 — MT5 Expert Advisor Professional On-Chart Trading Panel with Built-in Risk Calculator What Is It? OneClick Trade Panel is an all-in-one trading panel that sits directly on your MT5 chart. It replaces the default MT5 one-click window with a full-featured interface combining: order execution, automatic lot calculation, visual SL/TP planning, position monitoring, and batch close operations. Built for speed. Built for risk control. No DLLs, no external dependencies. Key Fe
Filtro:
Nessuna recensione
Rispondi alla recensione