DataSeries Type behaviour

Created at 20 Jul 2024, 10:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TB

tbbusinge

Joined 03.07.2024

DataSeries Type behaviour
20 Jul 2024, 10:07


Does the DataSeries type always ensure that the data in the series is up to date with market Data. And also does the indexing change, as in is zero the latest bar, or the oldest bar in history.
I would love some clarification on this as it is not clear in the documentation. Thanks for any help offered.


@tbbusinge
Replies

PanagiotisCharalampous
22 Jul 2024, 06:15

Hi there,

If you refer to Bars class, yes it always contains the latest data. Indexing starts from from the oldest data to the newest e.g. Bars.ClosePrices[0] is the oldest close price available.

Best regards,

Panagiotis


@PanagiotisCharalampous

tbbusinge
30 Jul 2024, 09:46 ( Updated at: 30 Jul 2024, 11:45 )

RE: DataSeries Type behaviour

PanagiotisCharalampous said: 

Hi there,

If you refer to Bars class, yes it always contains the latest data. Indexing starts from from the oldest data to the newest e.g. Bars.ClosePrices[0] is the oldest close price available.

Best regards,

Panagiotis

Thanks for the response sir. 
Kindly look at my new query if you have the time.


@tbbusinge