Add OHLC Bar Data To Your Algo

Add OHLC Bar Data To Your Algo

Learn how to build a series of open, high, low, close bars with volume for your algo. #TTtips

This was a code sample for building and storing 1 min OHLC values. In this example the past 4 bars are tracked as well as the current activity. The values are calculated off the time and sales block with snapshots taken every minute so it takes 4 minutes for the bar data to be loaded. If there is a 1 min period where nothing trades, a snapshot for that period will not be taken. Also, block trades have been filtered out from the time and sales feed.

Time Series Bars for OHLC and VWAP values


要查看或添加评论,请登录

Patrick Rooney的更多文章

  • Pits to Pixels - 30 Years of Markets

    Pits to Pixels - 30 Years of Markets

    It's a big number. 30 years.

    46 条评论
  • We're building stuff. Here, there, everywhere, but will it be enough?

    We're building stuff. Here, there, everywhere, but will it be enough?

    The move in #copper today was the forth piece in my productivity puzzle. Stuff is being built and a lot of it.

    1 条评论
  • Moving Average Block

    Moving Average Block

    Gain insight on using the Moving Average block in your ADL algo. #TTtips "You can have the Moving AVG Block reference…

  • Trailing Stop Algo

    Trailing Stop Algo

    Use the isBuy property in the MsgInfoExtractor block to build a single Library block for trailing sell and trailing buy…

  • Order Profiles

    Order Profiles

    Create rules using Order Profiles to seed account, order quantity and other fields based on the selected instrument…

  • Field Block Index Property

    Field Block Index Property

    Pull prices and quantities from price depth in ADL by using the Field block Property “Index” from the Lookup Type…

  • Options Risk Matrix

    Options Risk Matrix

    See aggregated P&L and Greeks for your options positions and view multiple scenarios simultaneously with Options Risk…

  • TT Supports Options Risk #WhatIf

    TT Supports Options Risk #WhatIf

    Use Options Risk to apply various ‘what if’ scenarios to open positions, based on underlying and volatility shocks…

  • TT Score Outlier Chart

    TT Score Outlier Chart

    Easily identify suspicious trade activity in TT Score's Outlier chart. #Spoofing #TTtips The Outlier chart displays…

  • Moving Average Crossover Algo

    Moving Average Crossover Algo

    Create a simple moving average cross trigger for your ADL algos. #TTtips The Moving Average block maintains an internal…

社区洞察

其他会员也浏览了