Last Bar on Chart (Streaming)
Author: pfelix
Creation Date: 8/11/2008 9:32 AM
profile picture

pfelix

#1
Is there anyway to access data from the latest bar on the chart when data is streaming? For example, if I am working with a 1 minute chart the Bars.Count - 1 is the last bar with a close. Can I access Bars.Count such that the streaming data is reviewed on every tick?

Thanks,
Paul
profile picture

Eugene

#2
See the QuickRef example for Partial (the DataSeries object).
profile picture

pfelix

#3
Perfect. Thanks.
profile picture

pfelix

#4
Eugene, The partial bar method seems to update (execute procedure) when a new streaming bar is created. Is there anyway to get the partial value to update everytime a new tick adjust the bar? Similar to time/sale data?
Thanks again,
Paul
profile picture

Eugene

#5
QUOTE:
Can I access Bars.Count such that the streaming data is reviewed on every tick?


With tick resolution, yes. With higher time frame, no. The data is reviewed based on its respective scale.
profile picture

pfelix

#6
Ok, Thanks.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).