I'm trying to get a totalvolume of an old tick by using getToalAskVolume().
My code is something like shown below:
List<ITick> myticks =
history.getTicks(Instrument.EURUSD, (tmptime-1*60*60*1000),tmptime);
double mytotal;
mytotal = myticks.get(100).getTotalAskVolume();
This code can be compliled. But when I run it, it emits NullPointerException.
What is wrong? Any advise would be appreciated.