Should work, but make sure you are using same uppercase/lowercase
letters and don't leave any leading /trailing space

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "wadebullock" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 20, 2008 6:06 PM
Subject: [amibroker] Walk Forward and TYPE-IN Custom Metric not working for 
me???


> Hi there,
> 
> First, thanks for the Walk Forward addition.  It is much appreciated.
> But I am having trouble with it.  
> 
> I've added a simple custom metric via the custom backtester interface 
> and while the custome metric shows up as a column in the optimization 
> report, it does not sort the results and find the best one--even 
> though I have TYPED it into the "Optimization Target" field.  
> 
> Wondering if I'm missing something from my simple code below.
> 
> SetCustomBacktestProc(""); 
> 
> if( Status("action") == actionPortfolio ) 
> { 
> bo = GetBacktesterObject(); 
> 
> bo.Backtest();
> 
> st = bo.GetPerformanceStats(0);
> 
> npkr = st.GetValue("NetProfit") * st.GetValue("Kratio"); 
> 
> bo.AddCustomMetric( "NPKR", npkr ); 
> 
> }
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 

Reply via email to