Getting time stamp of a bar

Created at 17 May 2014, 13:26
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!
VL

VLAV

Joined 17.05.2014

Getting time stamp of a bar
17 May 2014, 13:26


Hello,

How can I get the timestamp of a history bar? For example I would like to know the timestamp of the bar with index 100 (MarketSeries.Close.Last(100) )

Regards,

VLAV


@VLAV
Replies

bp2012
19 May 2014, 02:35

I think what you are looking for is example 2 here:

/api/reference/dataseries/last-895c


@bp2012

Spotware
19 May 2014, 09:24

RE:

VLAV said:

Hello,

How can I get the timestamp of a history bar? For example I would like to know the timestamp of the bar with index 100 (MarketSeries.Close.Last(100) )

Regards,

VLAV

 MarketSeries.OpenTime.Last(100);


@Spotware

VLAV
08 Jun 2014, 18:07

RE: RE:

Spotware said:

VLAV said:

Hello,

How can I get the timestamp of a history bar? For example I would like to know the timestamp of the bar with index 100 (MarketSeries.Close.Last(100) )

Regards,

VLAV

 MarketSeries.OpenTime.Last(100);

Thank you!


@VLAV