API Support Forum
User Profile

Viewing User Profile for: HReyneke1498


About

Nov 06, 2017 05:21 PM

Apr 20, 2018 10:37 AM

Jun 07, 2018 07:31 AM



Post Statistics
HReyneke1498 has contributed to 5 posts out of 5593 total posts (0.09%) in 2361 days (0.00 posts per day).

20 most recent posts:

Market Data » Receiving only 2 bars Apr 20, 2018 @ 10:37 AM (Total replies: 3)

Thanks Evgeny. It works as it should.

Market Data » Receiving only 2 bars Apr 20, 2018 @ 06:21 AM (Total replies: 3)

When requesting bars, I am always receiving only 2 bars in OnBars:

RequestBars(cont, Duration.Amount(10), BarDescription.HoursMinutes(1));

How can this be corrected please?

Market Data » Subscribe to previous bar high Apr 05, 2018 @ 11:04 AM (Total replies: 4)

That is true for the first bars array received. It contains 2 bars: The first bar is the completed previous bar. The second bar is the uncompleted current bar.

From then on one receives bars arrays containing only the current bar.
Edited by HReyneke1498 on Apr 05, 2018 11:05 AM
Edited by HReyneke1498 on Apr 05, 2018 11:12 AM

Market Data » Subscribe to previous bar high Apr 05, 2018 @ 10:30 AM (Total replies: 4)

Thanks for the reply Vitaliy. That should work perfectly for open prices, but since we are only at the beginning of the bar at save time, we don't have the final bar high.

Market Data » Subscribe to previous bar high Apr 05, 2018 @ 09:10 AM (Total replies: 4)

Hi. I would like to subscribe to the previous bar's high price. So that every time there is a new bar, I have the previous bar's high.

SubscribeBars(contract, 2, SubscriptionType.Bar, 1, false);
This gives 2 bars the first time, but from then on only the current bar.

Any help will be appreciated.
Edited by HReyneke1498 on Apr 05, 2018 09:10 AM