Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Long Bar Shadow during Backtesting.

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

    Long Bar Shadow during Backtesting.

    When I do a visual inspection of the strategy in the Chart Tab, I notice for SPY Bar Charts, there are alot of very long shadow lines. When this line hit my stop loss, the stop loss gets executed. But the point is, the long shadows are obviously incorrect. During live trade, will I get stopped out if such incorrect bars appear? Is there any way to prevent such incorrect bars during backtesting?

    #2
    Which datafeed are you using?

    Yes, if you get a so called 'bad tick' in realtime it can trigger your stops.

    For this you could use our realtime tick filter - http://www.ninjatrader-support.com/H...Filtering.html

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Which datafeed are you using?

      Yes, if you get a so called 'bad tick' in realtime it can trigger your stops.

      For this you could use our realtime tick filter - http://www.ninjatrader-support.com/H...Filtering.html
      I am using IB feed. What would be a typical value for "Bad tick offset as %" value? Attach a pic of the long shadow I am talking about.
      Attached Files

      Comment


        #4
        There is unfortunately no real 'typical' value, you will have to test this for the instruments you use, however you can start with the 0.1 % per default for testing. Have you tried to reload your historical data (right click on the chart > Reload Historical Data)?

        Comment


          #5
          On the Strategy Analyser chart, there is no option to reload historical data on the right click? I also notice the Chart in the Strategy Analyser has more long shadows than normal charts I am using for the same ticker. Why is that so?

          Does adding the tick filter remove the long shadow? Or it just mean the indicators or strategies won't act on it?
          Last edited by tjendra; 03-24-2009, 05:34 AM.

          Comment


            #6
            Enabling it will filter out the ticks that fall in the specified range from the real time data stream you receive, so the strategies receiving won't react when those come in. It will not work on your historically downloaded data.

            To reload your data from IB, you can also use the option in the Control Center (Tools > Historical Data > Reload).

            Are you using the same charting interval in both your charts and the Strategy Analyzer?

            Comment


              #7
              Yes I am using the same interval, that's why I was quite surprised one came without the shadows and one with them even thought they are from the same feed.

              If I reload the historical data from IB with the tick filter enabled. Does it get rid of the long shadows in the chart during backtesting?

              Comment


                #8
                It could also be visual due to another scaling being used for the normally smaller Strategy Analyzer chart...the reload can fix those bad ticks if the data has been fixed on the server side from which you reload your data. The filter will not have any effect on the historical data, it will only work on realtime incoming data.

                Comment


                  #9
                  Bar Shadows

                  Hello Bertrand,

                  I've the same issue but on all bars. This is the first time I have this issue, after I imported a new instrument from the instrument list yesterday. Seemingly the current bars are printing correctly now. I've reset the database with no success. I don't have any errors in my log file regarding this and the instrument works fine on my brokerage charting platform.

                  Thank you in advance.

                  Kind regards,
                  Attached Files

                  Comment


                    #10
                    Serninja, on which NT version (Help > About) and brokerage technology are you working here? If you reset instruments, restart NT and then force a reload of historical data with a right click on the chart - would you still see the same issue?

                    Comment


                      #11
                      Hello Betrand,

                      thanks for your reply. NT 7.0.1000.1. Unfortunately this doesn't solved the issue. And now the latest bars which have been plotting correctly are again with shadows.

                      Regards,

                      Comment


                        #12
                        Can you please upgrade to latest NT7 R2 via Help > Download Site and then recheck? Also: which datafeed or broker are you using in this scenario?

                        Thanks,

                        Comment


                          #13
                          Hello Bertrand,

                          thanks for your reply.

                          I've just updated NT7 and the PFGBest API. Then reinstalled NT7 due to API issues, which occur every time. After a time consuming procedure and NT7 takes pity with me and accepts the new API, I thought it would work now. But, NO.

                          This neither works on my desktop PC nor on my notebook. Like I said before, I've checked all the instruments with my brokerage charting platform and they work fine there. I also contacted PFG, and they said everything is OK. Please could you check the instrument database on your side, notably the interest rate futures.

                          Regards,

                          Comment


                            #14
                            Serninja, please post a screenshot of your ZB master instrument settings for example - I just checked here on NT7 and a PFG live account and the data I see looks correct.

                            Comment


                              #15
                              Hello Bertrand,

                              here are two screenshots from the Instrument Editor of ZB and ZF whereby ZF is not working properly. ZT is also not working but ZN is working. I've also reloaded data via Historical Data Manger without success. You can take a look at the chart screenshot for a better view.

                              Regards,
                              Attached Files

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              668 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              377 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              110 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              575 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              580 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X