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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            57 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            35 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            19 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            9 views
            0 likes
            Last Post cre8able  
            Working...
            X