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

Indicator wrong during market replay

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

    Indicator wrong during market replay

    I hope this is just a 6.5 bug... The inside BarCheck comparison works fine in RT, but obviously not during a market replay...
    Attached Files

    #2
    Lost Trader,

    Could you be a little more descriptive as to what exactly is wrong? Thanks and Merry Christmas!
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I thought the picture would explain.. Every BAR is highlighted as an inside bar, even when the High or Low exceeds the previous bars.

      Here is what it SHOULD look like (from a real-time IQ feed last Friday)


      I really did not expect anyone to be there Christmas Day!
      My condolences...
      Attached Files

      Comment


        #4
        What to know something else screwy... If I edit the indicators (do not even change anything, just re-apply one) the BarCheck patterns are suddenly corrected for past bars only, and past Volume bars are suddenly screwed up... Very repeatable, and during Market replay only.

        Here's a before & after shot.

        Current & Future bars are as before, barcheck messed up, VolumePRV fine. Just the prior day's bars are altered: barcheck ok, VolumePRV messed up.
        Attached Files

        Comment


          #5
          After playing with your indicator it doesn't only display the behavior you are seeing on Market Replay. It happens during Simulated Data Feed too. I do not know why you do not experience the same thing live because Market Replay and Simulated Data Feed behave in the exact same way as a live feed does.

          If you set CalculateOnBarClose to true your indicator performs as expected. I believe what you are experiencing is that the logic of your indicator is firing off to paint at some point in time while the bar is still being built. This then means it starts drawing the region immediately because you have CalculateOnBarClose set to false. At the end of the bar when the condition ultimately becomes false it can't do anything about the previously drawn region so that is why you end up with every region drawn in.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Thanks, Josh. I'd wondered but it worked RT... BarCheck is at least easy to fix. I added a remove region command once the IB condition was no longer met.

            My expectation is that RemoveDrawObject("tag1") will simply return cleanly if called for a tag that does not exit since I could not find a way to check for a drawn object existence.
            Attached Files

            Comment


              #7
              Yup. It should just return cleanly.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by DanielTynera, Today, 01:14 AM
              0 responses
              2 views
              0 likes
              Last Post DanielTynera  
              Started by yertle, 04-18-2024, 08:38 AM
              9 responses
              40 views
              0 likes
              Last Post yertle
              by yertle
               
              Started by techgetgame, Yesterday, 11:42 PM
              0 responses
              11 views
              0 likes
              Last Post techgetgame  
              Started by sephichapdson, Yesterday, 11:36 PM
              0 responses
              2 views
              0 likes
              Last Post sephichapdson  
              Started by bortz, 11-06-2023, 08:04 AM
              47 responses
              1,615 views
              0 likes
              Last Post aligator  
              Working...
              X