Yes, it is really annoying as I have some EAs that open trades in init
I really thought that it would be sorted in 625, but no!
Open EA Input-Settings, press OK, and the OnInit() executes TWICE
No such thing happened to me because I put a timer for my EA to let the terminal propagate and settles down properly on first and subsequent run.
Even when I change chart TF too.
Actually, what I see that the newer build terminal have this first initialization for mql5 codes, and then second initialization for mql4 codes propagation.
First initialization, prepares things, second initialization, fills data required.
My theory from observation though.
If EA runs even it is on first initialization, all numbers would be wrong, so, let my EA run after second initialization and all numbers are correct as expected. :)
My observations on build 625 are OnInit() executes all its code:
I received an answer of the Service Desk about this issue, that it should be fixed in build 628, available on Metaquotes-Demo server.
If someone can check that and confirm, it would be great. Thank you.
available to download from a zip file
You're welcome, its good to see MQ are ironing out these problems.