BUG report
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. [...]
the following code can compile ok, through it miss one param.