Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-123 Daily Open High Low values of present day
 Post subject: DDSJFX-123 Daily Open High Low values of present day Post rating: 0   New post Posted: Thu 18 Feb, 2010, 18:58 

User rating: 0
Joined: Thu 18 Feb, 2010, 18:52
Posts: 3
When I launch my EA, and each night at 0h00 0' 0'' I want to be able to read the High Low and Open values of the present day.

But with:
IBar barre = history.getBar(Instrument.fromString("EUR/USD"),
Period.DAILY,
OfferSide.BID,
0);

I very often get a null result. Then, that solution don't work.

Please, how can I get this information ? I didn't find any solution by reading all the forum.

Thanks.


 
 Post subject: Re: How to read the daily Open High Low values of present day? Post rating: 0   New post Posted: Thu 11 Mar, 2010, 16:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Thank you for your attention. We will investigate this.


 
 Post subject: Re: JFOREX-1556 Daily Open High Low values of present day Post rating: 0   New post Posted: Wed 12 Jan, 2011, 00:44 

User rating: 0
Joined: Sat 08 Jan, 2011, 14:17
Posts: 16
Location: Hungary
Hello rayban,

is your issue already resolved?

Anyway the doc for history.getBar states: "If there is no bar loaded at that position, then function returns null."
This means that returning a null value is by design. But I could not make this function return null at all using your sample (with shift=0).

Kind Regards,
Gotthardt


 
 Post subject: Re: DDSJFX-123 Daily Open High Low values of present day Post rating: 0   New post Posted: Mon 24 Jan, 2011, 09:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Cannot reproduce. Please provide an example.


 

Jump to:  

  © 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