Backtesting OK buy No trades when Optimization is on

 

Hi

I have an EA which I am able to backtest and it does trading on backtest

However, when I turn on "Optimization" using the same settings on "value", "start" and "stop" with one variable (the lot size) to be step, the ea does not trade at all on any optimization passes.

Does anyone know what is the likely cause of this to happen?

Thank you

 
Your code, which we cannot see.
 
Maybe you used IsOptimization() somewhere in your code to disable trading . . . hey, don't laugh, it's a valid explanation. ;-)
 

Do you skip useless results ?

That way only the profitable passes with optimization are reported

So if the pass has profitfactor <1 there is no result to see

go to Optimization Results and click with PCmouse a menu will popup

Uncheck Skip Useless Results

 

Try right click on optimization results field and select "skip useless results" (specially if your ea was not profitable on backtest before).

If the optimization shows results with zero number of trades only, then set one of the result parameters in the ea, run a backtest, and check errors on journal tab.

If there are no errors, try these steps with optimizing an other parameter.

If no one of these ideas helps, i have no more...