What is the magic number and how to use it in MT4 and MT5 EA

Updated: 7 days ago

Today we will talk about the magic number, which you will find in every EA(expert advisor) in metatrader4 and metatrader5 as well. Many people don't know what this number means and what to do with it. After this article you will find out that it is very simple to use this feature.


This is the magic number and where to find it.

The magic number of EA in inputs menu

Actually it's an identifier for each trade made by EA, so in this way you can use several Forex Robots in the same terminal and every trade will work perfectly, without any mistakes. This also helps when you need to restart the MT4 or MT5, so after restart all Robots still know their trades and successfully continue to trade as they're programmed.


What combination of numbers can I use in this setting?

It can be used any combination of numbers, except 0, because 0 means manually placed trades. Just in case - use only numbers, don't use any of the characters.


Example of how to set the magic numbers if few Forex Robots are in use in the same terminal:

1nr. EA - magic number is 1234

2nr. EA - magic number is 12345

3nr. EA - magic number is 123456


In this example all the magic numbers are set up correctly, of course. You can use any of your desirable numbers. Just every number has to be different from each other. As you can see it's very easy to set up this setting.


How to find a trade made by a specific EA with a magic number?

Just hold a mouse arrow for a second on the trade, and you will see it's magic number, so you will find your every trade. Also, you can identify your trades by comment of trade as well.

The magic number

Here's an example how a trade manually placed looks like.

The trade placed manually

It's a very easy thing to do as I promised, but still needs to be done. If you will use the same EA on a few charts at the same time with the same magic number you can get some mess, so never forget about this feature. Good luck. I hope that this article was useful for you.


If you still have any questions - contact me


If you haven't subscribed one of the plans yet -do it now




Regards,

Karolis





#magic, #number, #metatrader4, #metatrade5, #tutorial, #expert, #advisor, #ea, #followme, #how, #to, #trade

1,213 views2 comments