You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can't ticks have more than one flag at a time?
You're right, I did.
I have shown the principle of the all ticks collector and you can use this code as you like (extracting all flags)But does that mean there is a guarantee that you will handle ALL OnBookEvent events?
Means
Repeat
OnBookEvent() is exactly the kind of guarantee that a new batch of ticks has arrived!
You have a stock tick.
OnTick exactly means that a tick has come, and you can get the whole package with CopyTicks.
Moreover, you can get them from anywhere (even from chart event). OnBookEvent has its own purpose and you don't have to poke it wherever you want or don't want.
From reference:
Issuance rate: The terminal stores for each character 4096 last ticks in the cache for quick access (for characterswith the stack running, 65536 ticks), queries to this data arethe fastest.
End of quote----
If you can't get enough 4K last ticks, then by all means subscribe to the stack. But I can't imagine where this would be required (other than the first run).
Means
Yes, and you don't have to collect a queue of these events and process them all at all if you only want a tick history.
You have a stock tick.
OnTick exactly means that a tick has arrived and you can get the whole package with CopyTicks.
What's more, you can get them from anywhere (even from chart event). OnBookEvent has its own purpose and you don't have to poke it wherever you want or don't want.
If you don't have enough 4K last ticks, then of course subscribe to the tumblr. But I can't imagine where it might be needed (other than the first run).
Andrew!
The topic was called "real time ticks".
No need to point out 100 times that ticks can be received by the OnTick() event on a timer or whatever.
Andrei!
The topic was called "Real time ticks".
No need to point out 100 times that you can get ticks by OnTick() event on a timer or whatever.
Exactly! And OnBookEvent has the same relevance to the topic as OnTimer
Exactly! And OnBookEvent has as much to do with the subject as OnTimer
Run this year on a stock instrument
Launch this year on a stock instrument
Thanks, I know how it works.
Just imagine for a second that there might be a different approach to trading than yours.
Thank you, I know how it works.
Just imagine for a second that there might be a different approach to trading than yours.
Andrei(with all due respect).
Why are you "messing around"?
Or don't you know the difference between getting it in real time or getting it from history?
And what has that got to do with the other approach to trading?
Everyone trades and writes robots as they see fit!
Added by
Don't like my version of getting ticks in real time?
Then post your version!
Then let's see a different approach...
Andrei(all due respect)
Why are you "messing around"?
Or don't you know the difference between getting it in real time or getting it from history?
And what has that got to do with the other approach to trading?
Everyone trades and writes robots as they see fit!
Added by
Don't like my version of getting ticks in real time?
Then post your version!
Then let's see a different approach...
Replace OnBookEvent with OnTick in your code, and compare the result.