Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay Lag

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

    Market Replay Lag

    I'm trying to run market replay with an indicator I wrote. It is running extremely slow. In addition the current time display on the market replay dialog box is staying at 9PM although the charts is now at 9:15:00. How would I go about debugging why it is breaking market replay?

    #2
    Try different days, see if anything similar happens.

    Is it a simple indicator? Try a different one to rule out the data.

    Comment


      #3
      It's a combination of a few other indicators rolled into 1. They all individually work fine on that day.

      Comment


        #4
        Hello habibalex,

        Thank you for writing in.

        Could you please let me know how many of the indicators are calculating on each tick?

        Could you please also let me know how many indicators are being rolled up into one?

        Could you please confirm that everything works when you add all the indicators to individually to the same chart at the same time?

        Do you have specific steps which you can take to recreate this behavior every time or close to every time?

        This information will help me to narrow down the issue.

        Thank you in advance.
        Michael M.NinjaTrader Quality Assurance

        Comment


          #5
          I'm only running 1 indicator on the chart, but it is using onmarketdepth and onmarketdata. I can send you the indicator through email. It causes an error every time, even if I restart ninja.

          Comment


            #6
            Hello habibalex,

            Thank you for the update. If you could send the indicator via email to platformsupport[AT]ninjatrader[DOT]com with the subject line: "ATTN Michael M : http://www.ninjatrader.com/support/forum/showthread.php?t=80297" I will investigate this further.

            Thank you in advance.
            Michael M.NinjaTrader Quality Assurance

            Comment


              #7
              Hi Mike, I've emailed you. I also noticed that the OnMarketDepth is not updating on a live chart. I believe I have the exact same code in my group indicator as the individual one that attaches the MarketDepthEvent to the OnMarketDepth function, so I'm not really sure why that isn't working either.

              Comment


                #8
                I wanted to follow up to verify if you are currently working a support member via email on the issue you reported in your previous post.
                Christopher J.NinjaTrader Customer Service

                Comment


                  #9
                  Hi the problem has been solved over email. The issue was I had attached the marketDepth.Update to a custom OnMarketDepth function and when it was run on Historical Bars it was causing the lag.

                  The solution was to put this in OnBarUpdate

                  Code:
                  protected override void OnBarUpdate()
                  {
                  if (State == State.Historical)
                  			return;

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Shansen, 08-30-2019, 10:18 PM
                  24 responses
                  942 views
                  0 likes
                  Last Post spwizard  
                  Started by Max238, Today, 01:28 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post Max238
                  by Max238
                   
                  Started by rocketman7, Today, 01:00 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post rocketman7  
                  Started by wzgy0920, 04-20-2024, 06:09 PM
                  2 responses
                  28 views
                  0 likes
                  Last Post wzgy0920  
                  Started by wzgy0920, 02-22-2024, 01:11 AM
                  5 responses
                  33 views
                  0 likes
                  Last Post wzgy0920  
                  Working...
                  X