Amibroker use "Individual Optimize" and get "Net Profit"

0 votes

I want to optimize all stock Individually, and get "Net Profit" from the report.

Here is the sample code about get "Net Profit":

if( Status("action") == actionPortfolio )
    bo = GetBacktesterObject();
    bo.Backtest(); // run default backtest procedure
    st = bo.GetPerformanceStats(0); // get stats for all trades        
    NetProfit = st.GetValue("NetProfit");                

But when I used "Individual Optimize", it always occurred an error:

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

If I delete "SetCustomBacktestProc("")", I can't get "Net Profit" from the report.

Can you help me solve the problem or give me some option?

asked Jul 12, 2017 in AmiBroker by Ken

1 Answer

0 votes
For ANY AFL programming question use
answered Jul 13, 2017 by admin (9,260 points)