ray:
Your SetIdxStyle() function has five compulsory parameters and three optional ones. You are passing it the minimum five parameters. Therefore the code compiles. The integer "type" parameter is implicitly treated as a string, for use as the "suffix" parameter. Like many, many languages, MQL4 doesn't complain or warn you about this sort of implicit cast. Therefore, the compiler has no grounds for seeing anything wrong in what you are doing. All it cares about is that SetIdxStyle() must be given at least five parameters, which is what is happening.
the following code can compile ok, through it miss one param. [...]
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
the following code can compile ok, through it miss one param.