Date and Indexes

Created at 27 Dec 2016, 15:50
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!
DE

De-code

Joined 23.12.2016

Date and Indexes
27 Dec 2016, 15:50


Hi,

How can I extract the indexes between a certain date?

I need to know the higher / lower points between 08:00 - 12:00.

Thanks


@De-code
Replies

sweetman_dave
29 Dec 2016, 14:42

public int GetIndexByTime(DateTime dateTime)
public int GetIndexByExactTime(DateTime dateTime)

If data is missing at dateTime, the first method returns the nearest index. The second method (ExactTime) returns the exact index or -1 if data is missing.


@sweetman_dave

De-code
30 Dec 2016, 17:09

Hi,

It's a start. Can you give me a concrete example for the specific values of the indexes?


@De-code