Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to access historical bars from replay connection

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

    How to access historical bars from replay connection

    Hello Support Forum,

    NT7 question (customers are mostly staying on 7 until 8 is officially released).

    I'm trying to get an indicator to use data from previous sessions.

    It works fine on any connection except the replay. I can see the bars on my chart, but the indicator can't seem to see them.

    Any ideas how to get around this? I've tried using Data.Bars.GetBars(). That is able to get me the information from previous sessions, but my indicator doesn't pass through the session changes prior to where I started the replay playback so I get nothing until the replay passes through a session change. This really defeats the usefulness of replay.

    Thanks
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,

    Thank you for writing in.

    As a test, try plotting the PriorDayOHLC indicator on your chart in Market Replay. Is the PriorDayOHLC indicator unable to plot the prior session open, high, low, and close values?

    These values would be pulled from a previous session.

    Can you provide a sample script showing the behavior that you're seeing where it cannot access data from previous sessions?
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Zach,

      PriorDayOHLC works just fine.

      Let me know how to email you my script.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        Hello daqu40,

        You can email us at platformsupport [at] ninjatrader [dot] com with your script attached.

        Please reference both my name and a link to this thread in the body of the email.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattbsea, Today, 05:44 PM
        0 responses
        3 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X