Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Level1 and Level2 data from beginning of session

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

    Getting Level1 and Level2 data from beginning of session

    Hi,
    I'm building a fully automated strategy that relies on level1 and level2 data.
    I'm using OnMarketData and OnMarketDepth but it streams data only from the moment I enable the strategy.
    I would like to be able to access level 1&2 data prior to that, to run my analysis on what happened prior to that.
    I have trading hours that I configured, starting from 8:30am until 3:15pm for example. I Enable my strategy at 10am but I need the
    data from 8:30am. How do I do that?
    In addition to that I would like to be able to know if the data I'm currently receiving is from a playback or is it live data.

    Thank in advance
    Last edited by weedjitsu; 10-26-2019, 02:13 PM. Reason: Clarified my need

    #2
    Hello, thanks for your note and welcome to the NinjaTrader forum.

    Level 2 data is not stored historically, so indicators that use this will need to be real-time only. For level 1 data, you can use Tick Replay to your advantage. One indicator that takes advantage of this is is the BuySellVolume indicator. We also have a guide on developing for Tick Replay here.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X