Hi..
possible loss of data due to type conversion ,,,being the Mt5 compile warning message
Also the Ea compiles and works in mt4,But mt5 compile has 0 errors and many warnings all with ihigh , ihighest
,low,lowest. There is a variable inserted, being ""cntT"" in this particular example."
iHigh(NULL,PERIOD_M1,cntT) ,,also it wont run in mt5 strat tester.
In strategy tester journal its says, Mql5, wrong type loading of Eaxyz failed
Also, iHigh(NULL,PERIOD_M1,3) ,, and other whole numbers compiles in mt5 without any error message.
but never with a variable replacing the whole number.
Is it possible to keep this variable as it increments ihigh and other tasks.
Thanks in advance.
- possible loss of data due to type conversion
- Help Required for Possible Loss of Data due to Type Conversion
- Errors, bugs, questions
In MQL5 it will return an int with the handle whereas in MQL4 it will return a double with the values.
These are not compatible with each other.
Please read the documentation.Ok, thanks for your ideas, it got me to 0 errors, 0 warnings in the Mt5 compiler.However in the Strategy tester journal, it says ""wrong type, loading of ea123 311112 failed""
Any suggestions, as one might think the compiler would have mentioned that before
placing it in the strat tester Ea examples, when all other examples their, i can run backtests on.
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