Amibroker optimize all symbol individual

0 votes
asked Jun 20, 2017 in AmiBroker by anonymous
I want to optimize all symbol one by one and export the result to CSV file.

The CSV file include "optimize parameter", "Net Profit" and "symbol name" (every symbol will generate CSV file).

When I use the default optimize function, I always get the same content in every CSV file.

The code to export CSV:

    BackTest_Result = StaticVarGetText("BackTest_Result");
    if( Status("action") == actionPortfolio )
        bo = GetBacktesterObject();
        st = bo.GetPerformanceStats(0);     
        BackTest_Result += StrFormat( "%g, %g,%g\n", OptimizePare1, OptimizePare2,  st.GetValue("NetProfit");
        StaticVarSetText("BackTest_Result", BackTest_Result);            
    //Check Last Bar
    bi = BarIndex();
    arrayitem = SelectedValue( bi );
    IsLastBar = arrayitem == LastValue(BarIndex());
    if(arrayitem == LastValue(BarIndex())){
        fmkdir( "C:\\DataExport\\");
        fh = fopen( "c:\\DataExport\\"+ Name()+ ".csv", "a" );
        if (fh)
            fputs( StaticVarGetText("BackTest_Result"), fh );
        fclose( fh );

So I trid the option of "Individual Optimize":

But I always got the error message:

    「 Notice. Customer Backtester is NOT yet supported in Multithreaded Individual Optimization. 」

Can you help me solve the error message or give me other option?

1 Answer

0 votes
answered Jun 22, 2017 by admin (9,260 points)
Just remove CBT part - it is not needed.

BTW: this site is NOT for AFL questions.

For AFL questions use the FORUM: