MT4 to MT5 converting warning "conversion from 'long' to 'int'
-
Hello.
After converting my EA from MT4 to MT5 and compiling it to MT5 got 5 warnings
(EA works in MT4)"possible loss of data due to type conversion from 'long' to 'int' EAName6.mq5 lane 7087 column 16
magic_number = ABBB::OrderMagicNumber();possible loss of data due to type conversion from 'long' to 'int' EAName6.mq5 lane 7737 column 28
int ticket_oco = ABBB::StrToInteger(ABBB::StringSubstr(ABBB::OrderComment(), 5, StringLen(ABBB::OrderComment())-1));possible loss of data due to type conversion from 'long' to 'int' EAName6.mq5 6.mq5 lane 9964 column 11
int M = ABBB::OrderMagicNumber();possible loss of data due to type conversion from 'long' to 'int' EAName6.mq5 lane 10059 column 10
M = ABBB::OrderMagicNumber();possible loss of data due to type conversion from 'long' to 'int' EAName6.mq5 lane 10170 column 14
int M = ABBB::OrderMagicNumber();Anyone who is able to check the code ?

-
Some blocks need to be manually changed, could be causing this, if block says trade, change to mt5 position.
-
"Some blocks need to be manually changed" that's why pasted the code, hopefully to find some programmer here. Tried with Chatbot to correct this lines but effect was some other warning appear.
-
Past the shared link, I can tell you what blocks to change.
-
All the warning lines from code are listed above
-
Yes but that is not a shared link, to see how everything is connected, may show any problems.