Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Compliant periods
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=83&t=56392
Page 1 of 1

Author:  GeniuZ [ Fri 23 Mar, 2018, 11:31 ]
Post subject:  Compliant periods

Dear Dukascopy, please can you inform, if you plan use non compliant periods like 7, 13 minutes etc. Thank you.
(Simple make last bar of the day shorter :) )

Author:  mcquak [ Fri 15 Jun, 2018, 21:34 ]
Post subject:  Re: Compliant periods

You can use custom period like e.g. 8 minutes bars.
Be aware that custom periods can be only integer multiplier of 24 hours (i.e. 1440 minutes)

Sample:
Period m8 = Period.createCustomPeriod(Unit.Minute, 8, JFTimeZone.EET);
history.getBars(instrument, m8, OfferSide.BID, Filter.WEEKENDS, timeFrom, timeTo)


See debugger with list of 8 minutes bars:
Image

  Page 1 of 1