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");
}
若使用「SetCustomBacktestProc」,就會出現錯誤訊息:
Notice. Customer Backtester is NOT yet supported in Multithreaded Individual Optimization.