ok so I found the error that was creating so much annoyance.
in
private void updateOrderBook(MarketDepthEventArgs e) {
// standard lvl2 book stuff
for(int idx=0;idx < askRows.Count; idx++){
Print(" ----------------- 7a -------- ");
ask_v_safe[idx] = askRows[idx].Volume;
Print(" ----------------- 7b -------- ");
ask_p_safe[idx] = askRows[idx].Price;
Print(" ----------------- 7c -------- ");
bid_v_safe[idx] = bidRows[idx].Volume;
Print(" ----------------- 7d -------- ");
bid_p_safe[idx] = bidRows[idx].Price;
Print(" ----------------- 7e -------- ");
}
Print(" ----------------- 8 -------- ");
}
I get this error once and a while
25/02/2013 4:15:32 AM Strategy Error on calling 'OnMarketDepth' method for strategy 'datalvl2quantity/e59fb45b6f504ee88170d985b7f4da7f': You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
help.

Comment