Try to use global variable "MQL4: Global variables" to store last magic number
thank you

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This cycle must be continuous so if magicnumber is 1000, next will be 1001, then 1002, and so on.
I've tried adding a +1 like this: (OrderMagicNumber() == uniqueMagic +1) but that doesn't seem to work.
Thank you in advance.