Download MetaTrader 5
To add comments, please log in or register
Take active part in the life of the community. Improve your rating!
Ingvar Engelbrecht
4438
Ingvar Engelbrecht 2013.12.31 21:13 

I do not know if this is possible already but if not I believe it would be a useful feature.

Before starting a new combination of input parameter a user exit should be taken where the combination could be rejected or accepted. An example is when using crossing averages.

If the long and the short period are of the same length or the long period is shorter than the short period these combination should be possible to reject. Just an example.

Simon Gniadkowski
Moderator
17991
Simon Gniadkowski 2014.01.01 00:20  
ingvar_e:

I do not know if this is possible already but if not I believe it would be a useful feature.

Before starting a new combination of input parameter a user exit should be taken where the combination could be rejected or accepted. An example is when using crossing averages.

If the long and the short period are of the same length or the long period is shorter than the short period these combination should be possible to reject. Just an example.

Just add a check for this in OnInit() and if true set a bool SkipTesting = true,  then in OnTick() check this b0ol and if true return(0) immediately . . .
Alain Verleyen
Moderator
30290
Alain Verleyen 2014.01.01 02:32  
RaptorUK:
Just add a check for this in OnInit() and if true set a bool SkipTesting = true,  then in OnTick() check this b0ol and if true return(0) immediately . . .

With mql5, you can use something like above in OnInit()

return(INIT_PARAMETERS_INCORRECT);

see documentation.

Ingvar Engelbrecht
4438
Ingvar Engelbrecht 2014.01.01 19:06  
angevoyageur:

With mql5, you can use something like above in OnInit()

see documentation.

Simple as that :-)

Thanks.

/
To add comments, please log in or register