
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
Thank you :-) learn something new every day :-)
I did spot this ...
which is a bit naughty. The second parameter should be 0 not NULL (regardless of what the numerical value of NULL happens to be at this point in time).
https://docs.mql4.com/series/ihigh
I changed it 0, nothing changes, why is Null not valid, could you please explain, thx!
I changed it 0, nothing changes, why is Null not valid, could you please explain, thx!
There are many constants defined as symbols. It is considered bad practice to use the numerical value of such a constant as that make the code breakable by future code releases. The idea is to make the code both readable and maintainable.
Consider this set of constants ...
https://docs.mql4.com/constants/series
The value of MODE_OPEN just happens to be 0 but if you wrote
the code would still work but would be less than helpful to a reader.
In your case the first variable is of type string and the second is of type int. It is really bad form to put the wrong type of variable or constant into a function call.