|
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 go about retrieving a list of x 1h bars, including the currently forming 1h bar? |
whiletrue
|
Post subject: How to go about retrieving a list of x 1h bars, including the currently forming 1h bar? |
Post rating: 0
|
Posted: Fri 21 Nov, 2014, 09:43
|
|
User rating: 2
Joined: Fri 17 May, 2013, 06:58 Posts: 76 Location: SwedenSweden
|
Hi,
How to go about retrieving a list of x 1h bars, including the currently forming 1h bar?
I guess I could loop a shift value from 0 to x-1 for:
history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.BID, shift);
However, I do not think that this would be very efficient.
Thanks.
Kind Regards, Henrik
|
|
|
|
|
API Support
|
Post subject: Re: How to go about retrieving a list of x 1h bars, including the currently forming 1h bar? |
Post rating: 0
|
Posted: Fri 21 Nov, 2014, 13:23
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|