
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
I do not use dealing forex.
You, in the example fromCopyTick, only get one last element of the structure, in fact only the best prices.
What makes you think it 's just one item?
That's the thing, I get absolutely all the ticks (and not just ticks, but also changes in the cup)
Check
There you have it, that's good.
I promised to tell you about another advantage of OnTick, compared to OnBook. It is because OnBook is guaranteed to be delivered, if it has even a little heavy calculations (or, God forbid, trades), it can accumulate a rather large queue of events that make no sense(they do not contain event-related information). This is where the advantage turns into a disadvantage, as it often does.
OnTick in this case will simply skip the events that came in at the time of calculation, and will trigger on the first new, relevant one. In OnBook variant, to free the queue (skip useless events), you have to make your own crutches.
There you have it, that's good.
I promised to tell you about another advantage of OnTick, compared to OnBook. It is because OnBook is guaranteed to be delivered, if it has even a little heavy calculations (or, God forbid, trades), it can accumulate a rather large queue of events that make no sense(they do not contain event-related information). This is where the advantage turns into a disadvantage, as it often does.
OnTick in this case will simply skip the events that came in at the time of calculation, and will trigger on the first new, relevant one. In OnBook's variant, to release the queue (skip useless events), you have to make your own crutches.
Personally, I use asynchronous orders in trading operations.
The thing is (if you seriously trade on the Exchange), you need all the changes in the market,
and the sooner this event comes - the better.
In addition, you need ask and bid volumes...
I, for myself, see no alternative to OnBook
I don't use dealing forex.
Youonly get one last element of the structure in the example fromCopyTick, in fact only the best prices.
Running the above code, it turns out that
s_tick.flags = 0
:)
Same tick and when callingSymbolInfoTick- no flag :)
Added
We get a tick but we don't know who "created" it.
What's going on with tick times?
It looks absurd. We receive ticks from new packet with time19:36:54.735, butSymbolInfoTick got tick "ahead" by 900 ms.
FromSymbolInfoTick help
Beautiful topic, lots of interesting stuff, thanks guys.
No kidding and no banter...
Just don't tear down the code, I'll take it under consideration...
What's going on with ticking time anyway?
It's absurd. We get ticks from new packet with time19:36:54.735, but by callingSymbolInfoTick we get tick "ahead" by 900 ms???
From Reference
Really strange, Bid value is the same for all, but SymbolInfoTick time is different.
Really strange, the Bid value is the same for all, but the SymbolInfoTick time is different.
Looks like terminal arranges time "as it wants" :)
Almost 4 seconds passed by local time!
That surely can't be!
And here everything is normal.
Looks like the terminal is timing itself "as it pleases" :)
Almost 4 seconds have gone by local time!
That can't be right!
The log shows that OnTick caught the same tick 4 seconds faster than OnBookEvent
According to the log it turns out that OnTick caught the same tick faster by 4 seconds than OnBookEvent
This definitely cannot be the case in reality,
because the ticks are already in the terminal (i.e. a new packet of ticks has already arrived)
This definitely cannot be the case in reality,
because the ticks are already in the terminal (i.e. a new packet of ticks has already arrived)
But I look at the log, and the log one and the same tick with a difference of 4 seconds came.
p.s.
I really don't like the phrase "it can't be", i got used to the fact that anything can happen.
By the way, perhaps it is far from the subject, but once on the assertion that the earth is round, too, said something like this - "it can not be.
In general, I am always in doubt until I check and then double-check, and preferably someone else double-checks a few times.
Are you sure your code is not screwing up - which forms the log, processes the data?
this code produced miracles with a 4 second difference ?