Mikołaj Gogola: The output of this EA should be the array of Open values one different from another,
double dt = 12345; // Thu, 01 Jan 1970 03:25:45 GMT if( Open[1] != dt )
Wrong. Your condition will be true each and every tick. Therefor you store the same value each tick. They should all be the same (assuming 100+ ticks/bar.)
Oh damn... You are so right :D I forgot to make it static... so obvious... :D Thanks man!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The output of this EA should be the array of Open values one different from another, BUT the weird repetition happens.
Can someone explain me why it happens? Is MT4 Tester working concurrently and can it mean possible race condition?
Here is the output from logs: