Hi Kim,
Thanks a lot for your kind reply.
As I’m a newbie to KDB, I couldn’t understand some of the abbreviations in your post. I searched them on google, does “ctp/cep” short for “convertible trading platforms/complex event processing”?
By saying “current setting”, do you mean the tick+ architecture? I’m not quite sure about this, but I think I have access to a chained tickerplant as well as hdb and rdb. (I don’t know whether this expression is correct, what I want to say is that I can get real-time data and historical data from the database, but I don’t know whether the real-time data comes from a chained tickerplant or a rdb).
==========What I want to achieve =========
In general, my goal is to build up some treasury futures spreads and display its real-time price in EXCEL.
To be more specific, say a futures spread: 3 contracts of 10-year treasury note futures - 2 contracts of 5-year treasury note futures - 1 contract of 2-year treasury note futures ( 3*ZN - 2*ZF - ZT ) ;
I need to construct the spread with a ratio of (3,-2,-1), then figure out how to display the real-time price in excel. I think this could be very complicated as I need it to be dynamic.
Further more, I want to do some calculations with the price. Probably I need to get Open/High/Low/Close price (OHLC) of the spread from hdb. So far I haven’t figured out how to synchronize the tick data to get accurate real-time spread price. Once tick data is correctly synchronised, I can build up spreads between different futures contracts. Ideally I want the calculation results to be dynamically displayed in EXCEL as well.
Another problem is, I need to aggregate tick data to certain time frame to get corresponding OHLC. Just like a candlestick chart, if I’m looking at it with a 5-minute time frame, tick data needs to be aggregated in order to get OHLC of each 5-minute window.
====================================
Could you please give me some suggestions?
Probably it is a very complicated problem, any suggestions are sincerely appreciated!
Thanks,
Xinyu