Download MetaTrader 5

Backtest exlude some options

To add comments, please log in or register
primehaxor
30
primehaxor  
Hello, i wrote an EA and inside of this EA im able to enable or disable a Moving Average, but during the backtest if i select disable to the MA i wouldn't like during the backtest the counter of possible MA values increase, because it has a dependency of a bool use_M,A if i won't use it i'd like to exclude it during the tests, is it possible via function OnTester() ignore this kind of test?
Stanislav Korotky
22846
Stanislav Korotky  
primehaxor:
Hello, i wrote an EA and inside of this EA im able to enable or disable a Moving Average, but during the backtest if i select disable to the MA i wouldn't like during the backtest the counter of possible MA values increase, because it has a dependency of a bool use_M,A if i won't use it i'd like to exclude it during the tests, is it possible via function OnTester() ignore this kind of test?

You should return INIT_FAILED or INIT_PARAMETERS_INCORRECT from OnInit.

To add comments, please log in or register