How to teach the Tester to take care of indi relationships ?

 

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 

Советник по трендовой стратегии Светофор
Советник по трендовой стратегии Светофор
  • votes: 7
  • 2015.09.10
  • Igor Kniazev
  • www.mql5.com
Трендовая стратегия, основанная на скользящих средних с цветами, как у светофора. Цель написания советника — протестировать стратегию на истории и подобрать рабочие параметры.