![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Good evening,
I haven't coding for a while and I started again a few weeks ago. I've noticed that my EA wasn't working as he was before build 600.
I investigate and I found that the function iMAOnArray didn't give me the same result before the build 509 and after 600+. I've tried the same "code example" on the 2 build (509 and 670)
Then I Backtested from 2014.08.11 --> 2014.08.16 (M5)
Result in 509:
20:31:41 TestGenerator: current spread 19 used
20:31:41 testiMAOnArray509 test started
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: Lancement du programme
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3408
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.341
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3412
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3415
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array1-- 10 = 1.3409
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array1-- 11 = 1.3411
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array1-- 12 = 1.3413
20:31:41 2014.08.11 00:00 testiMAOnArray509 EURUSD,M5: Alert: array1-- 13 = 1.3415
....
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3397
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3398
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3397
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array0 = 1.3396
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array1-- 10 = 1.3397
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array1-- 11 = 1.3398
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array1-- 12 = 1.3397
20:31:46 2014.08.15 23:59 testiMAOnArray509 EURUSD,M5: Alert: array1-- 13 = 1.3396
Result in 670:
20:28:05 TestGenerator: current spread 19 used
20:28:05 TestIMAOnArray600 test started
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: Lancement du programme
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3408
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.341
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3412
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3415
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 10 = 1.3409
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 11 = 1.3411
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 12 = 1.3413
20:28:05 2014.08.11 00:00 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 13 = 1.3415
...
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3397
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3398
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3397
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array0 = 1.3396
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 10 = 1.3397
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 11 = 1.3398
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 12 = 1.3413
20:28:12 2014.08.15 23:59 TestIMAOnArray600 EURUSD,M5: Alert: array1-- 13 = 1.3415
Unfortunately I don't found the same result. Can somebody explain me what I am doing wrong or what do I not understand ?
I thank you in advance.