I was contacted recently by some clients who wanted to trade with the EA again but found it needed a re-compile. They were on 9.0x so pretty old versions. So I set about checking AmazingEA still works OK.

TL;DR

The Magic Number is a special value which is normally used to tie trades together when using multiple EAs on the same account. I use it for something different – to prevent multiple trades being opened on multiple copies of charts of the same currency pair for the same news event.

I realised that I had made the Magic Number YYMMDDHHMM so in 2021 this number started with 21XXXXXXXX. Unfortunately MetaTrader needs the Magic Number to be an integer and in 2022 the Magic Number starts with 22XXXXXXXX which is larger than an integer is allowed (2147483647).

Executive Summary

Long story short, AmazingEA versions that were working in 2021 would just stop working in 2022.

Workaround

Use MagicRandom=true: this uses something called a Chart ID as the Magic Number and was an option if you really wanted to open multiple trades on the same currency pair on multiple charts.

This will work but I wouldn’t recommend using this long term. Ask for the update instead.

Version 11.06 Released

This problem has been fixed in AmazingEA V11.06.

The line spacing on the charts has also been increased (MT4 Only) as it was getting hard to read !

Any previously registered users are welcome to get the update – just send me an email.