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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                633 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                364 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                567 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                568 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X