I want to optimize all stock Individually, and get "Net Profit" from the report.
Here is the sample code about get "Net Profit":
SetCustomBacktestProc("");
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?