I am trying to import a small sample of forex data for running my strategy but the basic record function doesn't work. Data format pasted below.
symbol,ts,bid,ask,spot,runbet_spot
frxUSDJPY,2013-01-02 00:00:00,86.603,86.631,86.615,86.6151
frxUSDJPY,2013-01-02 00:00:01,86.611,86.621,86.615,86.615
frxUSDJPY,2013-01-02 00:00:02,86.608,86.626,86.616,86.6168
fetch_csv('https://dl.dropboxusercontent.com/s/8pabigfejb59wjv/feed.csv', date_column='ts',date_format='%Y/%m/%d %H:%M:%S')
record(Price=data[context.stock]['bid'])
It always complains of key error for 'bid'. I don't think "context.stock", makes sense.....but the backtester complains I need to set an SID. Am i missing something in the implementation?