Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Compliant periods
 Post subject: Compliant periods Post rating: 0   New post Posted: Fri 23 Mar, 2018, 11:31 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
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 :) )


 
 Post subject: Re: Compliant periods Post rating: 0   New post Posted: Fri 15 Jun, 2018, 21:34 
User avatar

User rating: 0
Joined: Sat 29 Dec, 2012, 19:01
Posts: 22
Location: Czech Republic, Praha
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


 

Jump to:  

cron
  © 1998-2011 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com