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

 

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

 
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;
 
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.

 
angevoyageur:

ok, thanxx
Reason: