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

Is OnMarketData available in Market Replay?

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

    Is OnMarketData available in Market Replay?

    Hello,

    Basically that's the question: Is OnMarketData available in Market Replay? I download data from you server, don't record myself.

    Nothing appears on Print() command in output window. Although it works for onBarUpdate. But I need to assess last price together with bid/ask.

    Thank you.

    #2
    Yes danilam, it's available in replay as well, did you download then both Level 1 and Level 2 data?

    Are you printing from an indicator or strategy?

    Do you load historical data before the replay portion takes over?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Yes, I downloaded both level 1 and 2.
      I work with an indicator.
      I currently don't have any historical data before replay starts. Is it necessary? Never would thought of that.

      Thank you for further clarification.

      Comment


        #4
        Originally posted by danilam View Post
        Yes, I downloaded both level 1 and 2.
        I work with an indicator.
        I currently don't have any historical data before replay starts. Is it necessary? Never would thought of that.

        Thank you for further clarification.
        Yes, please try running the same test replay with with historical bars loaded before the replay takes over.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thank you for exact explanation, Bertrand. I'll try to work out somehow.

          However, is it considered as normal behavior? For me, it's kind of bug, I would say I just don't see how historical candle data has something to do with market replay, and more over with onMarketData method. Can you, please, list it as suggestion with tracking number (or i'm not sure how it works here, sorry)?

          Thanks.

          Comment


            #6
            Yes, that would be considered working as expected, so there's no bug involved here but a limitation that you unfortunately hit with your setup. I will forward this for sure as suggestion for development to look into to further enhance NinjaTrader, once we have the tracking # I'll share it here.

            Thanks again,
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by frankthearm, Today, 09:08 AM
            5 responses
            14 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            43 views
            0 likes
            Last Post jeronymite  
            Started by yertle, Today, 08:38 AM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by adeelshahzad, Today, 03:54 AM
            3 responses
            19 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by bill2023, Yesterday, 08:51 AM
            6 responses
            27 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X