How to calculate the time of the last two TICK (ms) and the price? - page 2

To add comments, please log in or register
kypa
981
kypa  

Wouldn't copying last two (or more) ticks into an array and comparing time_msc be better?

You can even put up an average or something like that.

Code2219 or probably 2319
429
Code2219 or probably 2319  
kypa:

Wouldn't copying last two (or more) ticks into an array and comparing time_msc be better?

You can even put up an average or something like that.

if asking me, I'm not sure what he wants.
I just suggested a more-understandable-for-him solution to use the time differences he is concerned with.
wxn2014
118
wxn2014  
Code2219 or probably 2319:
you can omit using Print() , it just shows the time difference for you to see it.
you can store the value of that time difference in a variable and use it in rest of your code.
so instead of printing the value, save it :

I don't understand your purpose yet :)

that time difference isn't gonna show you valuable information as it can be affected by disconnections and weekends and other closed-market times.
you can work with more number of these time differences and save them in an array, and check the array average with every tick.
this way you can detect slow increases/decrease in tick retrieval speed, when they happen. ( and somehow gauge activity of the market :s )
if that's what you mean by "if can find the time and space, perhaps can have the harvest" then you better understand volume indicators.
I don't know any other good use for tick time differences.

Thank you very much! Thank you very much! Problem has been solved!!!!!!
You said is right, you reminded me, I now just observed that will produce the error between the Tick, and I began to think different. I was just want from Tick1 jump Tick0 between the end of time, now just know if on the Tick1 and residence time, this will produce the error. If we can remove the stay this time, as long as the play Tick0 Tick1 jump between the time will be more accurate!
An array of you say, I want to have a research study, he found himself so much to learn!
Still want to thank, finally found what I want! Thank you for your patience, you are a good man, thank you!

wxn2014
118
wxn2014  
kypa:

Wouldn't copying last two (or more) ticks into an array and comparing time_msc be better?

You can even put up an average or something like that.

kypa:

Wouldn't copying last two (or more) ticks into an array and comparing time_msc be better?

You can even put up an average or something like that.

Your idea is very good, I just want to get the last two Tick, try many methods are not ideal, because of my poor programming, has only just begun to learn programming. "Array" is a good thing, it's a pity that I don't know how to use. Thank you for your advice, thank you!!!!!!

12
To add comments, please log in or register