The method: history.getBar(Instrument.EURUSD,Period.Daily,OfferSide.BID,1) only return previous bar,if the time at the open, the method return weekend bars without filter,how to get previous bar without weekend? HELP PLEASE!
mtnfx
Post subject: Re: How to get previous Bar filter weekends?
public interface IHistory { List<IBar> getBars(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to) throws JFException;
Filter.WEEKENDS should work for you.
fquant
Post subject: Re: How to get previous Bar filter weekends?