Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to delete outlier data (misprint) for accurate backtesting?

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

    How to delete outlier data (misprint) for accurate backtesting?

    I noticed that there are a lot of bars misprinted while I backtested my 5-min chart (maybe due to bad data feed?) and their highs or closes go way way beyond what the normal range would be. this can really make my backtesting results inaccurate. So how do I delete outlier bars from the test?

    #2
    Hello,
    You will need to export the historical data and modify it:


    Then make sure you don't reload it again:
    DenNinjaTrader Customer Service

    Comment


      #3
      Is there any type of code that scan for irregularity of a bar and if true disregard the bar from calculation? Like if (High - Low) > Abs(Open - Close) * 10 then disregard the bar?

      Comment


        #4
        Hello,

        I am sure there is something out there, but I don't know where it is exactly. Sorry.
        DenNinjaTrader Customer Service

        Comment


          #5
          I tried enabling bad tick offset but it did not wok. Is it supposed to work when backtesting?

          Comment


            #6
            Hello,

            Can you tell me more about what you are doing when you say you are enabling bad tick offset. A screen shot would help as well if you can.
            To post a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and post the file as an attachment.
            DenNinjaTrader Customer Service

            Comment


              #7
              Here's the image from NT7:
              Attached Files

              Comment


                #8
                This would only work on incoming tick in realtime Avn_0903, for backtesting and bad ticks in NT7, you can work with the new Historical Data Manager and exclude / amend data as needed -



                Those changes would then be persisted on reload from servers...

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                67 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                36 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                60 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                62 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                53 views
                0 likes
                Last Post CarlTrading  
                Working...
                X