I converted my code from MT4 to MT5.
I just discovered that something was not working like it was supposed to do...
I put a lot of stuff in my magic number, when I parse the order, I validate if the magic is fitting with my current executioner.
This code was working on MT4, on MT5 it return false while it's supposed to be true!!
So my magic number in my EA is 0xff000001, the magic I compare is also 0xff000001
so "return 0xff000001 == (0xff000001 & 0xffff07ff)" is true
but it return false... on mt4 it work like a charm...
I'm not sure how you are getting false...
void OnStart() { Print(bool(0xff000001 == (0xff000001 & 0xffff07ff))); //true }
I converted my code from MT4 to MT5.
I just discovered that something was not working like it was supposed to do...
I put a lot of stuff in my magic number, when I parse the order, I validate if the magic is fitting with my current executioner.
This code was working on MT4, on MT5 it return false while it's supposed to be true!!
So my magic number in my EA is 0xff000001, the magic I compare is also 0xff000001
so "return 0xff000001 == (0xff000001 & 0xffff07ff)" is true
but it return false... on mt4 it work like a charm...