Synthetic CSI Spreads

Use this forum to discuss data providers like CSI, charting, or other non testing software.
Post Reply
SpireTrader
Full Member
Full Member
Posts: 10
Joined: Fri Oct 16, 2009 10:42 am

Synthetic CSI Spreads

Post by SpireTrader »

Anyone know how to put together Hi, Low, Close data for calender spreads in CSI? I've figured out how to graph it but would like to have the data so I could test it in blox. Basically I need to take one contract and subtract an additional one and do that for the H, L, C. Just wondering if anyone has attempted to do that or knows of any other resource for spread data. It's tough because its not an official exchange product. Thanks guys.
Jez Liberty
Roundtable Knight
Roundtable Knight
Posts: 123
Joined: Tue Nov 03, 2009 8:49 am
Location: London
Contact:

Post by Jez Liberty »

Did you try using CSI API. Instictively, this is how I think you could do it: retrieve the 2 contracts you are interested in and calculate the spread on them (linking them by date). Output the result in a file that Trading Blox can read. i havent done this myself but I would look at it that way.

The CSI API documentation can be found there:
http://www.csidata.com/custserv/onlineh ... OleApi.doc

I also have posted some C# code using the API to retrieve back-adjusted contract - which you could use as an example:
http://www.automated-trading-system.com ... uous-data/

PS: I dont think you can calculate the high and Low of the spread accurately solely based on High/Low/Close of underlying contracts (ie substracting both contracts Lows to obtain the spread Low assumes that both Lows took place at the same time... The real spread Low is going to be somewhere between Low-Low and Low-High.)
Moto moto
Roundtable Knight
Roundtable Knight
Posts: 427
Joined: Mon Jun 01, 2009 4:12 am
Location: once again in the UK

Post by Moto moto »

I did this the slow way in excel, by just taking the last trade, and we in putted it into my own system. (I dont own TB yet)
Jez Liberty is correct in his last paragraph.

For accuracy using the H and L is largely irrelevant unless using tick data, as you need to match the timing of when they occurred to be relevant.
You need both the bid and the ask for each instrument at the time to be able to calculate exactly where you would get set in a real life situation - this is a big element of slippage, and where a lot of money is made or lost in spread trading - unless the long term is the aim. (of course it is on a long term trend forum) :roll:
If you are trading the spread the only relevant items really is the last trade for each instrument at the same time. A simple addition or subtraction for the spread.
Even this though this is a fudge it might save you time.
Post Reply