• 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 Guru73, Today, 02:47 AM
            1 response
            3 views
            0 likes
            Last Post Guru73
            by Guru73
             
            Started by pjsmith, Today, 02:44 AM
            0 responses
            1 view
            0 likes
            Last Post pjsmith
            by pjsmith
             
            Started by dalebru, Today, 01:51 AM
            1 response
            4 views
            0 likes
            Last Post bltdavid  
            Started by Austiner87, Yesterday, 09:33 PM
            0 responses
            9 views
            0 likes
            Last Post Austiner87  
            Started by HiddenPhilosopher, Yesterday, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post HiddenPhilosopher  
            Working...
            X