• 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

  • NinjaTrader_ChelseaB
    replied
    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

    Leave a comment:


  • brucelevy
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • brucelevy
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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)

    Leave a comment:


  • brucelevy
    started a topic how to load historical cumulative volume delta

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by drpapp, 01-24-2019, 06:57 AM
5 responses
67 views
0 likes
Last Post pjsmith
by pjsmith
 
Started by plydcv, Today, 12:40 AM
0 responses
3 views
0 likes
Last Post plydcv
by plydcv
 
Started by Sh00tHerMcGavin, Yesterday, 07:39 PM
0 responses
3 views
0 likes
Last Post Sh00tHerMcGavin  
Started by Mberg, Yesterday, 05:13 PM
0 responses
1 view
0 likes
Last Post Mberg
by Mberg
 
Started by Barry Milan, Yesterday, 01:33 PM
2 responses
10 views
0 likes
Last Post marcus2300  
Working...
X