Tick time

Created at 04 Mar 2018, 09:35
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!
douglascvas's avatar

douglascvas

Joined 02.01.2018

Tick time
04 Mar 2018, 09:35


Could someone please tell me how can I get the time of a tick? Reason for that is that I am trying to dump the ticks to a CSV file, but I cannot get the time for each tick (I really mean tick, not the open time of a bar)


@douglascvas
Replies

PanagiotisCharalampous
05 Mar 2018, 10:56

Hi douglascvas,

You can use  Server.Time.

Best Regards,

Panagiotis


@PanagiotisCharalampous

douglascvas
05 Mar 2018, 11:15

Thanks a lot Panagiotis!

By the way, awesome job with the new release(s). I have just noticed that after having my connection dropped a few times, the optimization in cAlgo continues to run from where it was before loosing the connection. That is a great improvement! Please thank the devs and the team for me =)

 


@douglascvas

snowchilli
06 Oct 2020, 11:56

RE: How can Tick.Time be used?

PanagiotisCharalampous said:

You can use  Server.Time.

Looking at the history [of closed positions] the exact time stamp for the opening / closing event (aka Tick) is. e.g.
02/10/2020 08:06:03.003

while Server.Time would have been only exact to the second. e.g.

02/10/2020 08:06:03

How can Tick.Time be used?
According to the cTrader 3.8 documentation Tick Time "Gets the Tick Time."

Tick
Summary
Represents the Tick object.
Syntax
public sealed struct Tick : ValueType, IEquatable
Members
Name	Description
Ask	Gets the Ask price of tick.
Bid	Gets the Bid price of tick.
Time	Gets the Tick time.


 


@snowchilli