About US Cash Indices

The US Cash Indices dataset by TickData covers 3 US Indices: SPX, VIX, and NDX. The data starts on various dates from Janunary 1998 and is delivered on any frequency from tick to daily. This dataset is created by TickData negotiating directly with exchanges for their official archive and by partnering with real-time data providers who have direct exchange connections and multiple redundant ticker plants.


About TickData

TickData was founded by a futures broker and a programmer in 1984 as the first company in the world to offer historical tick-by-tick prices on the futures and index markets. TickData provides access to comprehensive and detailed market data and analytics products in the financial industry covering Equities, Futures, Options, cash FOREX, and Cash Indices.


About QuantConnect

QuantConnect was founded in 2012 to serve quants everywhere with the best possible algorithmic trading technology. Seeking to disrupt a notoriously closed-source industry, QuantConnect takes a radically open-source approach to algorithmic trading. Through the QuantConnect web platform, more than 50,000 quants are served every month.


Algorithm Example

class IndexDataAlgorithm(QCAlgorithm):

    def Initialize(self) -> None:
        self.SetStartDate(2020, 1, 1)
        self.SetEndDate(2021, 7, 8)
        self.SetCash(100000)

        # Trade on SPY
        self.spy = self.AddEquity("SPY").Symbol

        # Use indicator for signal; but it cannot be traded
        spx = self.AddIndex("SPX").Symbol
        self.emaFast = self.EMA(spx, 80, Resolution.Daily)
        self.emaSlow = self.EMA(spx, 200, Resolution.Daily)
        self.SetWarmUp(200, Resolution.Daily)

        history = self.History(spx, 60, Resolution.Daily)
        self.Debug(f'We got {len(history.index)} items from our history request')

    def OnData(self, slice: Slice) -> None:
        # Warm up indicators
        if self.IsWarmingUp or not self.emaSlow.IsReady:
            return

        if not self.Portfolio.Invested and self.emaFast > self.emaSlow:
            self.SetHoldings(self.spy, 1)
        elif self.emaFast < self.emaSlow:
            self.Liquidate()

Example Applications

The US Cash Indices enables you to incorporate popular US indicies into your trading algorithms. Examples include the following use cases: