GrumpyDuckMan:
Hello everyone,
I can't seem to fix this warning at the moment. I know its only a warning, but I like to solve it correctly.
The program runs fine atm, just annoying warning.
You should post a line where the variable "convert" is declared. StringToInteger() returns long. For example if your "convert" is int (int convert) then you can declare it as long (long convert) or you should use: convert = (int) StringToInteger(convertDoubleStr);
Instead of your code:
digits=MarketInfo (CurrentSymbol,MODE_DIGITS); convertDoubleStr = DoubleToString(digits,0); convert = StringToInteger(convertDoubleStr);
You can use just this:
uchar convert=(uchar) MarketInfo(CurrentSymbol,MODE_DIGITS);

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
Hello everyone,
I can't seem to fix this warning at the moment. I know its only a warning, but I like to solve it correctly.
The program runs fine atm, just annoying warning.