Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

How to decide the maximum number of bars available?
 Post subject: How to decide the maximum number of bars available? Post rating: 0   New post Posted: Wed 08 Dec, 2010, 15:25 

User rating: 0
Joined: Tue 12 Jan, 2010, 02:07
Posts: 5
Hello,

How to control the number of bars are loaded in JForex? How does a chart in JForex decide how many bars to load? How to decide the maximum value of "shift" in
IBar getBar(Instrument instrument, Period period, OfferSide side, int shift)
before getBar returns a null?

- Clearpicks


 
 Post subject: Re: How to decide the maximum number of bars available? Post rating: 0   New post Posted: Thu 09 Dec, 2010, 15:29 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
last time I checked a few months ago, each of the charts loads in 4000 bars
you can get a lot more (hundreds of thousands) from IHistory in the API though


 
 Post subject: Re: How to decide the maximum number of bars available? Post rating: 0   New post Posted: Thu 16 Dec, 2010, 16:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
There are no limitation to bar count in the getBars method. It depends how many bars stored in the server.


 

Jump to:  

cron
  © 1998-2025 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