• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to load historical cumulative volume delta

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

    how to load historical cumulative volume delta

    I have an indicator that plots cumulative delta from the beginning of when it is loaded. How can I have it load historical volume delta data going back to the start of the session?

    #2
    Hello brucelevy,

    Does your script add a 1 tick ask and 1 tick bid series with the Add() method?

    If so, these should be loading if the data historically if the data provider provides historical bid and ask tick data.

    Who are you connecting to for data? (This is indicated in green in the lower left corner of the Control Center)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am using CQG, no I am not using the add tick method. I am using onMarketData to plot the buys and sell at the bid ask.

      Comment


        #4
        Hello brucelevy,

        Unfortunely, OnMarketData() does not get called historically.

        From the help guide:
        "This method is not called on historical data (backtest)"

        Below is a publicly available link to the help guide.
        https://ninjatrader.com/support/help...marketdata.htm

        You will need to add the data historically with a 1 tick ask and 1 tick bid series.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I am looking to plot the historical accumulated delta in an indicator window like so
          https://gyazo.com/2c051c947620524e00d6dc49ea42a566

          Are you saying to add the tick series then use the buys and sells from the delta as the input for plotting the historical delta? An example would be great if possible. Thank you.

          Comment


            #6
            Hello brucelevy,

            The OnMarketData method runs only when a tick is received in real-time. This will also know if it was at the ask or the bid.

            This method does not run historically.

            If you want ask and bid tick data historically you need to add a 1 tick ask and 1 tick bid series and perform these calculations in OnBarUpdate().

            Below is a link to an example that adds a 1 tick series.
            https://ninjatrader.com/support/foru...ead.php?t=6652
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by benjamind10, Today, 07:27 PM
            0 responses
            4 views
            0 likes
            Last Post benjamind10  
            Started by YevhenShynkarenko, Today, 06:07 PM
            0 responses
            4 views
            0 likes
            Last Post YevhenShynkarenko  
            Started by StevenNelson, Today, 04:07 PM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Started by Matthew Spositi, Today, 03:28 PM
            2 responses
            8 views
            0 likes
            Last Post Matthew Spositi  
            Started by faisamtrader, Today, 01:30 PM
            2 responses
            21 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Working...
            X