|
DDSJFX-123 Daily Open High Low values of present day |
[rayban]
|
Post subject: DDSJFX-123 Daily Open High Low values of present day |
Post rating: 0
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: How to read the daily Open High Low values of present day? |
Post rating: 0
|
Posted: Thu 11 Mar, 2010, 16:46
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, Thank you for your attention. We will investigate this.
|
|
|
|
 |
[Gotthardt]
|
Post subject: Re: JFOREX-1556 Daily Open High Low values of present day |
Post rating: 0
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: DDSJFX-123 Daily Open High Low values of present day |
Post rating: 0
|
Posted: Mon 24 Jan, 2011, 09:59
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Cannot reproduce. Please provide an example.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|