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

[amibroker] shifting backtest in time



PureBytes Links

Trading Reference Links

Would like to backtest one a time span to check for "aging"
of the system. Is it possible to address the Range fields
of the Automatic Analysis window from within mysystem.afl,
such as ...

 end_date = optimize("end_date",today,today, year_ago, -days)
 start_date = end_date - days  // or end_date + (-days)   

or similar/better using bars ?

Further to see how the system behaves with time shift I would 
be interested to sum up the contents of colums or somehow get the
amount of rows of each:

addcolumn(buy,"Buy",1.0);
addcolumn(sell,"Sell",1.0);
addcolumn(short,"Sell",1.0);
addcolumn(cover,"Sell",1.0);

mysignal = ( sum(buy)+sum(cover) ) / ( sum(sell)+sum(short) );
plot(mysignal, ...);

thanks for any comments





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/