Hi all,
I have an EA that has been converted from mql4 to mql5. When I compile the code in MetaEditor I am getting an error that states this
implicit conversion from 'number' to 'string'
I believe that the issue has something to do with a coding error that may not have been an issue in mql4 but now poses a problem on mql5. File is attached.
I would really be grateful if there is an individual that would be willing to take a look at the problem and possibly rectify the problem. I am certain that it will be a very simple solution, though I am still building my skills and understanding of mql5 so I am not clever enough to fix it myself yet.
Thankyou.
implicit conversion from 'number' to 'string' selflearningexperts.mq5 432 15
It isn't an error just a warning. You can:
- Ignore it
- Delete the line 432, because it doesn't have an impact to result
- Instead of Print("h="+h) you can you use for example printf("h=%d",h)
implicit conversion from 'number' to 'string'
use DoubleToStr()
Print("h="+DoubleToString(h)) ;
Print("h="+DoubleToString(h)) ; Print("h="+(string)h) ; Print("h=", h) ;Choose
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I have an EA that has been converted from mql4 to mql5. When I compile the code in MetaEditor I am getting an error that states this
implicit conversion from 'number' to 'string'
I believe that the issue has something to do with a coding error that may not have been an issue in mql4 but now poses a problem on mql5. File is attached.
I would really be grateful if there is an individual that would be willing to take a look at the problem and possibly rectify the problem. I am certain that it will be a very simple solution, though I am still building my skills and understanding of mql5 so I am not clever enough to fix it myself yet.
Thankyou.
implicit conversion from 'number' to 'string' selflearningexperts.mq5 432 15