Check history against MagicNumber
As every one has different magic number, in such case, I prefer to link the account to myfxbook website and analyse it in deep details.
This is the best way ever.
it depends on the language.
struct MqlTradeRequest
{
ENUM_TRADE_REQUEST_ACTIONS action; // Trade operation type
ulong magic; // Expert Advisor ID (magic number)
ulong order; // Order ticket
string symbol; // Trade symbol
double volume; // Requested volume for a deal in lots
double price; // Price
double stoplimit; // StopLimit level of the order
double sl; // Stop Loss level of the order
double tp; // Take Profit level of the order
ulong deviation; // Maximal possible deviation from the requested price
ENUM_ORDER_TYPE type; // Order type
ENUM_ORDER_TYPE_FILLING type_filling; // Order execution type
ENUM_ORDER_TYPE_TIME type_time; // Order expiration type
datetime expiration; // Order expiration time (for the orders of ORDER_TIME_SPECIFIED type)
string comment; // Order comment
};
for MQL5
and for MQL4
ticket=OrderSend(NULL,OP_SELL,Lots,Bid,3,0,0,"COMMENT",magic,0,Red);}
Is it possible to make the comment inside the EA code (my own EA). Not sure what command to use for that.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is there a way to see which trade was running afterwards?
If I have 4 charts with EURUSD running at the same time with different EA's. Is it possible to see which one did best? Or which one is working bad.
If they are running on a vps server and I only see the order id afterwards, then it's hard to know which one was triggered during the day.
Since they all have different MagicNumber I guess there should be a way to which trade was connected to which EA. Any ideas?