Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to import this set of tick data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to import this set of tick data

    I have a set of tick data with millisecond precision. The data columns from left to right include Local Date, Local Time, Type, Price, Quantity, and Orders. The "Type" column has two categories: "Trade Aggressor on Buy" (meaning: Refers to the trade with the initiator on the buy-side) and "Trade Aggressor on Sell" (meaning: Refers to the trade with the initiator on the sell-side). Based on the data content, there is no Bid and Ask data; only Last (Trade) data is available.

    As there are distinct "Type" categories indicating aggressive buying and selling, it can be inferred that the data represents active buying and selling. In the context of Order Flow Volumetric Bars, this corresponds to "Sell Volume per each price level seen in the bar" and "Buy Volume per each price level seen in the bar."

    However, the data format does not comply with NinjaTrader's import format (one of NinjaTrader's import formats is: yyyyMMdd HHmmss fffffff;last price; bid price; ask price; volume). Could you please guide me on how to import this set of data into NinjaTrader to generate Order Flow Volumetric Bars?​

    LocalDate LocalTime Type Price Quantity Orders
    20200127 180000124 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180000128 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180000246 TRADE AGRESSOR ON SELL 3247 11 10
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 3 3
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180000247 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180000247 TRADE AGRESSOR ON BUY 3247 3 4
    20200127 180000580 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180000735 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180001204 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180002525 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003091 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003122 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003669 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003703 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003868 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003933 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180003945 TRADE AGRESSOR ON BUY 3247.25 1 2
    20200127 180003946 TRADE AGRESSOR ON BUY 3247.25 2 3
    20200127 180003947 TRADE AGRESSOR ON BUY 3247.25 2 3
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 3 3
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 1 2
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 2 2
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 3 2
    20200127 180005395 TRADE AGRESSOR ON SELL 3247 5 4
    20200127 180005396 TRADE AGRESSOR ON BUY 3247 1 2


    #2
    Originally posted by dgslsps View Post
    I have a set of tick data with millisecond precision.
    Really?

    Are you sure what you have is 'historical tick data'?

    It just looks like a list of buys and sells with millisecond timestamps.

    Last edited by bltdavid; 02-04-2024, 01:50 AM. Reason: Change description to 'millisecond' timestamps

    Comment


      #3
      At this stage, I'm not in a hurry to distinguish whether this set of data is historical tick data or a list of buys and sells with millisecond timestamps. What I urgently need to know is how to import this set of data.

      Comment


        #4
        Originally posted by dgslsps View Post
        At this stage, I'm not in a hurry to distinguish whether this set of data is historical tick data or a list of buys and sells with millisecond timestamps. What I urgently need to know is how to import this set of data.
        Hmm, what do you mean by 'import'?

        Are you trying to create bars on a chart?

        If so, the data you have cannot be imported.

        -=o=-

        In NinjaTrader, 'import data' means you first have some
        historical data, usually this kind of data is Daily, Minute,
        or Tick -- this historical data (once formatted properly)
        can then be imported from a text file and used to create
        the bars on a chart.

        Unfortunately, from an 'import historical data' point
        of view, the data you currently have is completely
        useless.

        Why?
        Because bars typically have 6 things: a timestamp,
        OHLC price values, and volume.

        Your example data does not have all these things, and
        thus cannot be reformatted it into any proper NinjaTrader
        import format.

        More details available here,


        ​-=o=-

        I think you have the 'not in a hurry to distinguish' idea
        backwards -- your first task is to absolutely distinguish
        the two kinds of data, because the list of buy/sells you
        currently have doesn't do you any good to import as
        historical data.

        Make sense?

        Last edited by bltdavid; 02-05-2024, 01:09 PM. Reason: typos

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        7 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X