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
hi,
using the latest mql4 version b840 terminal, and https://www.mql5.com/ru/code/13802 as an EA example
Usecase: Testing that EA to find the best results; mostly finding the best MA periods to apply. For this test, all the MAs are selected at once, as well TP & SL, and their periods can overlap: MA1 2 to 30 (green), MA2 10 to 60 (blue), MA3 20 to 120 (yellow), MA4 30 to 240 (red)
Inside the EA the conditions for opening/closing a trade are defined.
But running the tester produce unexpected tests: results does not take care of the MAs hierarchy (MA1<MA2<MA3<MA4 as expected by the EA).
The random results can propose such wrong settings as MA1 period can be greater than MA3 one.
In case of EA using several identical indicators with different settings range, the tester should be able to find them and ask for confirmation limits before starting the test.
Or is it an EA lack of indicator hierarchical relationship definitions ? I cant find examples of such coding hierarchy inside an EA.
Of course the settings can be tested one at a time, but this is quite useless.
So i'm wondering if someone could suggest some EA coding example to define the MAs relationship for teaching the tester to skip unexpected tests ?
Thanks for your proposal