Cast the int to long.
ObjectSetInteger(chart_ID,name,OBJPROP_XDISTANCE,(long)x);
Doerk Hilger:
Cast the int to long.
Thanks for the input - but no change, still same error message
Andrew Thompson:
Thanks for the input - but no change, still same error message
Show the code that you are using that will compile.
Your bool function does not return a value.
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
I am having difficulty with the following code:
The last line:
is throwing the following error (and a bunch of identical errors on 11 other similar statements):
I understand that the two calls are distinguished only by the type of the variable immediately after the
OBJPROP_XDISTANCE
but the documentation is of no help in identifying where I have gone wrong.
I tried changing the type of x to long, and the value to 10.0 which made no difference.
This is my first attempt at converting MQ4 to MQ5 and out of more than 5000 lines of code this error and the 11 identical others are all that remain...
I would be grateful for any pointers.