zipline backtest issues

46 views
Skip to first unread message

Jian Li

unread,
Jun 24, 2015, 4:11:02 PM6/24/15
to zip...@googlegroups.com
Hello:
 
I use zipline example for my backtest, there is always a warning related to benchmark, also I noticed it took about 1 minute to get some result.  how to get ride to those warning and improve performance?
 
Thanks
 
Jim
 
 
warning message:
 ***********************************************************************************************************
 

[2015-06-24 20:01:56.925000] WARNING: Loader: No benchmark data found for date range.

start_date=2015-06-24 00:00:00+00:00, end_date=2015-06-24 20:01:39.026000, url=http://ichart.finance.yahoo.com/table.csv?a=5&c=2015&b=24&e=24&d=5&g=d&f=2015&s=%5EGSPC

 
 
 
 
 
code:
*****************************************
from zipline.api import order, record, symbol
 

def initialize(context):
    pass
 

def handle_data(context, data):
    order(symbol('AAPL'), 10)
    record(AAPL=data[symbol('AAPL')].price)
********************************************
Reply all
Reply to author
Forward
0 new messages