here i want to readbars (spec time internal, for example readbars 2018:03::01:01:10-2018:3:01:12:10 Period.TEN_MINS BARS)
CODE .......
GetSpecTimeBars(Instrument.EURUSD, Period.TEN_MINS, OfferSide.BID, time, 1, 0, 18, 0); ...............
private List GetSpecTimeBars(Instrument SpecInstrument,Period SpecPeriod, OfferSide ofside, long TodayTime,int fromHour,int fromMin,int toHour,int toMin) throws JFException{ }
but show is: com.dukascopy.api.JFException: Interval from [2018.03.12 01:00:00 000] to [2018.03.12 07:24:47 554] GMT is not valid for period [10 Mins] at com.dukascopy.api.impl.o.b(L:1363) at com.dukascopy.api.impl.o.getBars(L:727) at jforex.SmaFlipMinMax.GetSpecTimeBars(SmaFlipMinMax.java:103) at jforex.SmaFlipMinMax.onStart(SmaFlipMinMax.java:52) at com.dukascopy.api.impl.execution.s.call(L:27) at com.dukascopy.api.impl.execution.s.call(L:13) at com.dukascopy.api.impl.connect.au.a(L:140) at com.dukascopy.api.impl.connect.cn.call(L:713) at com.dukascopy.api.impl.connect.cn.call(L:674) at com.dukascopy.api.impl.execution.j.call(L:34) at java.util.concurrent.FutureTask.run(Unknown Source) at com.dukascopy.api.impl.execution.f$a.e(L:904) at com.dukascopy.api.impl.execution.f$a.run(L:926) at java.lang.Thread.run(Unknown Source)
|