Keyboard Shortcuts
Likes
Search
granularity of ticks
Hello
I'm using reqHistoricalTicks with type=TRADES to get and store historical ticks day after day. This lets me make backtests on my own. I get ticks from historicalTicksLast and then I store them into a file. Also I have ProRealTime Trading application, whiche have its own source of datas. When I compare the tick-by-tick data between the 2 sources (IBAPI and ProRealTime), I can see that some sequential ticks with same price are regrouped in IBAPI. This is quite?annoying, because then the 100ticks-candles for examples ar not the same. Do you know something about this granularity ? Is there any way to have higher (real) granularity in ticks returned by reqHistoricalTicks?? Here is the way I use to call reqHistoricalTicks : self.reqHistoricalTicks(reqId+1, self.contract, self.ts_next, "", NbTicksDemandes, "TRADES", 0, False, []); |
IB API Ticks are not real ticks. They are a summary of some miliseconds - don't know the exact time. This results in ticks wich are a real single tick and others where 2 or more ticks accumulated in one tick (for this period of time).
For this reason, it is also not possible to get the bid or ask side of all tick, something you need if you want to build a historical footprint chart. It is very sad that IB still has no real tick dates. Kind regards Christian |
If ready for "listen real-time and store": consider Nanex (NxCore). |
SierraChart On Wed, May 31, 2023 at 8:50?PM Gordon Eldest via <hymagik=[email protected]> wrote:
|
Franco Chiesa Docampo
¿ªÔÆÌåÓýGordon, is it possible to interface Nanex with IBAPI? Does the latency of IBAPI with TWS and the exchange make redundant any high resolution data? Or is it worth it? El 31 may. 2023, a la(s) 14:50, Gordon via groups.io <hymagik@...> escribi¨®:
|
OK @Gordon Eldest, I will have a look at marketDepth API.
As a matter of fact, i'm not really interested in having the real granularity of the tick. I could be happy with 50-ticks candles which would be the good ones, the same ones as in PRT. Is it possible in IBAPI the get 50-ticks candles ?? Or having the real number of ticks agregated in one IBAPI tick returned by historicalTicksLast?? Thanks |
Nanex to IBAPI: |
On Thu, Jun 1, 2023 at 12:48 AM, FrenchFlorent wrote:
I don't see how. Packing is decided by IB based on rules that involved change in price and a kind of timeout to push out the latest aggregation. You don't really respect the concept of Ticks if you got for a fixed tick count for aggregation. Bar including 5Sec bar does contain a "number of transactions". It doesn't replace ticks but maybe helpful for you. Otherwise you probably should use the Ticks API and decide what and how you aggregate the ticks |