Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Gap of data between history and real-time after calculation.

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

    Gap of data between history and real-time after calculation.

    In latest versions of the bug appeared. Lose data, coming during of the history calculation. It seems not working caching callback OnMarketData normally.
    I attached code of simple indicator, workspace and pictures that explain what the problem is. On the right side of the data after the recalculation.
    In heavy indicators of just how the Achtung.

    upd. connection CQG Continuum
    Attached Files
    Last edited by alexr; 11-16-2016, 12:22 PM.

    #2
    Originally posted by alexr View Post
    In latest versions of the bug appeared. Lose data, coming during of the history calculation. It seems not working caching callback OnMarketData normally.
    I attached code of simple indicator, workspace and pictures that explain what the problem is. On the right side of the data after the recalculation.
    In heavy indicators of just how the Achtung.
    Shouldn't IsSuspendedWhileInactive be false?

    Comment


      #3
      Hello alexr,

      To aid us in getting a complete picture of what is happening, could you answer as many of the following questions as possible?

      • Do you see results when running the same test on the SampleMaCrossOver strategy in NinjaTrader with the same settings as your strategy?
      • Who are you connected to? This is displayed in green on lower left corner of the Control Center window.
      • Are you connected to your data feed provider when running this test?
      • What instrument(s) (and expiry if applicable) have you selected?
      • What Data Series Type have you selected? Example: Tick, Minute, Day
      • What From and To date is selected?
      • Is your strategy a multi instrument or multi time frame strategy?
      • Do you receive an error on screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by tradesmart View Post
        Shouldn't IsSuspendedWhileInactive be false?
        If I understand correctly, it is for other purposes

        Do you see results when running the same test on the SampleMaCrossOver strategy in NinjaTrader with the same settings as your strategy?
        Who are you connected to? This is displayed in green on lower left corner of the Control Center window.
        Are you connected to your data feed provider when running this test?
        What instrument(s) (and expiry if applicable) have you selected?
        What Data Series Type have you selected? Example: Tick, Minute, Day
        What From and To date is selected?
        Is your strategy a multi instrument or multi time frame strategy?
        Do you receive an error on screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
        Hello, Jessica.
        I'm not sure that you read the post carefully and understand the essence of the problem.

        Comment


          #5
          Thank you, I did misread your original post, and had used a general purpose reply for situations where we do not have a series of reproducible steps.

          The answers to these questions will still be useful to us in seeing the same thing you are seeing :

          • Who are you connected to? This is displayed in green on lower left corner of the Control Center window.
          • What instrument(s) (and expiry if applicable) have you selected?
          • What Data Series Type have you selected? Example: Tick, Minute, Day
          • What From and To date is selected?


          Additionally, after carefully reviewing your code, I have a couple more questions.


          • Can you create a reproducible situation in an indicator that does not call any hook methods other than OnBarUpdate and OnMarketData
          • In this situation, can you also refactor your code so that OnMarketData only has one conditional, that being

          Code:
              if (e.MarketDataType == MarketDataType.Last && IsFirstTickOfBar)
          • In this situation, can you remove all class variables that persist outside OnBarUpdate and OnMarketData, so that OnMarketData must operate only on its passed in MarketDataEventArgs, and both OnMarketData and OnBarUpdate will only have access to members of non-user specified members of indicator such as Close, IsFirstTickOfBar, etc.


          Simplifying the code sample you have provided, in absence of steps to reproduce, will help us in reproducing this on our end.


          Thank you for helping to improve NinjaTrader 8.
          Last edited by NinjaTrader_JessicaP; 11-16-2016, 01:52 PM.
          Jessica P.NinjaTrader Customer Service

          Comment


            #6
            Jessica, it's not a strategy.
            I have attached screenshots which show the situation with little or no explanation. Attached the indicators code and workspace. Indicator was posted out in this forum. Just copy files to the terminal and reproduce the problem.

            Regards

            Comment


              #7
              I understand, I misspoke when I said strategy. I have edited my most recent post to use the word indicator instead of strategy.

              While we may be able to reproduce the situation, I would like to give our product and development teams as much insight into what is occurring as possible. I will attempt to use what you have provided if explaining further is difficult. Thank you again for your help improving NinjaTrader.
              Jessica P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              62 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              40 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              21 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              23 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              51 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X