[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Walk Forward and TYPE-IN Custom Metric not working for me???



PureBytes Links

Trading Reference Links

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/