Date and time in the history of tics

Created at 28 Feb 2014, 19:36
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!
KO

kodges

Joined 25.01.2014

Date and time in the history of tics
28 Feb 2014, 19:36


Hello!

How to get time each tick of the story? After all, surely it is stored in history.


@kodges
Replies

Old Account
01 Mar 2014, 00:11

     protected override void OnTick()
        {
            Print(Server.Time);
        }


@Old Account

kodges
01 Mar 2014, 06:06

RE:

MRSV said:

     protected override void OnTick()
        {
            Print(Server.Time);
        }

So you can get just the current time tick, and I need some time in the history of tics. For analysis in my robot. 


@kodges

Old Account
02 Mar 2014, 00:57

I'm not shure i understan what you are looking for, could you explane it a bit more?

 


@Old Account

kodges
02 Mar 2014, 05:40

RE:

MRSV said:

I'm not shure i understan what you are looking for, could you explane it a bit more?

 

Example:

int index = MarketSeries.Tick.Count-1;
var time = MarketSeries.TickTime[index];

Here's an example of what I need. Preparation time ticks past. But this functionality is not present, or I was looking bad.


@kodges

Spotware
04 Mar 2014, 09:16

There is no collection of ticks in cAlgo API. You can access only market series data.


@Spotware