Strange int start() anomaly

 

Dear FX-fishermen (and fisherwomen ),

I am coding my way an EA for my MT4, but at Strategy Tester has happened something really strange ...

There, if i declare some variables such as iTotalOrders inside 'int start()' locally, like here:

Free E-Course - Build Your Own Automatic Trading Robot

, I got much more different output in Strategy Tester than if I declare the same variable globally, outside of 'int start()' function.

Weirdly, I use this variable (iTotalOrders) only inside of 'int start()', no other functions else.

I would really want to now, what the heck is going on out there...

ThanX for your info .

Reason: