It depends on how the EA is coded.
It depends on how the EA is coded.
What does that mean?
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 programming forum
PositionClose is not working - MQL5 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles
Orders, Positions and Deals in MetaTrader 5 - MQL5 Articles
Magic number only allows an EA to identify its trades from all others. Using OrdersTotal/OrdersHistoryTotal (MT4) or PositionsTotal (MT5), directly and/or no Magic number filtering on your OrderSelect / Position select loop means your code is incompatible with every EA (including itself on other charts and manual trading.)
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 programming forum
PositionClose is not working - MQL5 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles
Orders, Positions and Deals in MetaTrader 5 - MQL5 Articles
If you code it to filter for that.
Magic number is used to identify trades for their EA.
It's not to identify Pairs so it does not make sense to have a separate magic number for each pair since they have their own name already.
If you code it to filter for that.
Magic number is used to identify trades for their EA.
It's not to identify Pairs so it does not make sense to have a separate magic number for each pair since they have their own name already.
so if the code has no filter is it better for each pair to have a different magic number?
No because it already has a ISO 4217 name.
Why would you need a extra magic number for each pair ?
Give me an example.
No because it already has a ISO 4217 name.
Why would you need a extra magic number for each pair ?
Give me an example.
I think it is for EA to differentiate the trades of each pair
No it is for the EA's to differentiate between the trades of each EA.
Fields description:
magic | Expert Advisor ID. It allows organizing analytical processing of trade orders. Each Expert Advisor can set its own unique ID when sending a trade request. |
It is called Expert Advisor ID
Not Currency Pair ID.
Please read the documentation.
![Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types](https://c.mql5.com/36/37/documentation-on-mql5-constants__10.png)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use