Counting optimization passes during optimization process

 

Hi all,

how can i count optimization passes to write them into a csv?

int deinit()

{    
if (IsOptimization()){
         // Counting passes      
}
}

Wich approach use? 

Thank you 

 
Use OnTester(). See documentation.
 
Alain Verleyen:
Use OnTester(). See documentation.

Thanks Alain,

but i need to dump the number of the optimitazion pass not the backtests result.

Regards. 

 
coiler:

Thanks Alain,

but i need to dump the number of the optimitazion pass not the backtests result.

Regards. 

I understood the question.

 
Alain Verleyen:

I understood the question.


Thanks Alain, could you give me an example?.

 

Regards 

 
coiler:

Thanks Alain, could you give me an example?.

 

Regards 

Please do some researches.

Once you have something coded, come back if you have still some problems.

 
Alain Verleyen:

Please do some researches.

Once you have something coded, come back if you have still some problems.

Thanks for the reference Alain.
 

use this

Double pass = GlobalVariableGet( "pass"  );
pass=pass+1;
GlobalVariableSet( pass  );
Reason: