Download MetaTrader 5

warning: 'possible use of uninitialized variable' changes backtest result

To add comments, please log in or register
Heiko Kendziorra
10585
Heiko Kendziorra  

since latest update of mq4 I get after compiling of an ea with #property strict the warning:

possible use of uninitialized variable 'hr'  

and others similar.

also the backtest result is different to the one compiled without #property strict

what do I have to do? can't find any info about it

Jinsong Zhang
16041
Jinsong Zhang  
mtradertools.co:

since latest update of mq4 I get after compiling of an ea with #property strict the warning:

possible use of uninitialized variable 'hr'  

and others similar.

also the backtest result is different to the one compiled without #property strict

what do I have to do? can't find any info about it

just initialized variable 'hr'  like hr=0;
Alain Verleyen
Moderator
32007
Alain Verleyen  
mtradertools.co:

since latest update of mq4 I get after compiling of an ea with #property strict the warning:

possible use of uninitialized variable 'hr'  

and others similar.

also the backtest result is different to the one compiled without #property strict

what do I have to do? can't find any info about it

Forum on trading, automated trading systems and testing trading strategies


Hello,

This forum is about MT5/mql5, please post your question about MT4/mql4 on mql4.com forum.

  • They are more people who can answer there.
  • They are more people who can have similar problem there.
  • A forum is not only to get help but to share with the community, mql4/MT4 community isn't the same as mql5/MT5 community.

Heiko Kendziorra
10585
Heiko Kendziorra  
angevoyageur:

ok, thanxx
To add comments, please log in or register