Global and local variable conflict

Some functions in the MT4 source code, the param variable names passed to the function conflict with global variables.

So the MT4 compiler generates warnings.


The examples of the functions are:


* Conflict name: RSIPeriod
double sqQQE(string symbol, int timeframe, int RSIPeriod, int sF, double wF, int line, int shift) {
   return roundValue(iCustom(symbol, timeframe, "SqQQE", RSIPeriod, sF, wF, line, shift));
}


* Conflict name: Period
double sqKeltnerChannel(string symbol, int timeframe, int Period, double Deviation, int line, int shift) {
   return roundValue(iCustom(symbol, timeframe, "SqKeltnerChannel", Period, Deviation, line, shift));
}


I don't know how many more conflicts are left undiscovered.

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

ML
#1

xsiboss

30.01.2019 02:33

Task created

m
#2

mabi

30.01.2019 07:24
Voted for this task.
MF
#3

Mark Fric

02.04.2019 13:06

Status changed from New to Fixed


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please