Hi,
I can retrieve historical data in a strategy with following code
prevBarTime = history.getPreviousBarStart(mMyPeriodDataChart, history.getLastTick(Instrument.AUDUSD).getTime());
startTime = history.getTimeForNBarsBack(mMyPeriodDataChart, prevBarTime, mNumData);
java.util.List listBarsAudusd = history.getBars(Instrument.AUDUSD, mMyPeriodDataChart, OfferSide.BID, startTime, prevBarTime);
I'd like to obtain the same result in a standalone java application using JForex-SDK without using a jforex strategy.
Best regards,
Frank