Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Discrepancies between indicator value and Output

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

    Discrepancies between indicator value and Output

    Hello

    I have been getting strange discrepancies with the chart value of the ADX indicator and its output value on a running strategy (This happens at the start of a session not during the session, also, this doesn't happen all the time.... only 3 times so far)

    All other indicators (I use altogether 5 other indicators) show correct values in both the output and on my chart.

    To solve the problem I have had to Repair and Reset the DB, shut down NT and restart. Then all chart values and script output values the same.

    Obviously this is not ideal, so would anyone have thoughts on why I would be experiencing this problem, and can it be resolved?

    Thanks in advance
    Last edited by John833; 12-17-2008, 04:38 AM.

    #2
    Hi John833, please review these tips for improving performance - http://www.ninjatrader-support.com/H...rformanceTips1

    Did you have any power outages or disconnects that could have impacted your database integrity?

    Thanks!

    Comment


      #3
      Thanks Bertrand, I have already seen the performance website, and everything checks out ok.

      No I haven’t had any power outages or have done anything different to the PC.

      Its concerning as there seems to be no reason why this happens….

      Have you had any other experience of this?

      Comment


        #4
        Hi John833,

        Which datafeed are you running?

        Does it happen under a lot of load on the PC, you may have to reduce the charts open or applications running to see if it makes a difference.

        If this is reproducible for you, we would appreciate you sending the needed steps to generate the issue to support at ninjatrader dot com, so we can look into it. Thanks!

        Comment


          #5
          Hi Bertrand

          My data feed is from my broker IB. (But when this problem occurs with the ADX indicator, all my other indicators are functioning fine)
          I use a new (3mth old) hi-spec pc 4Gb ram etc, and this only runs IB and NT, nothing else (except Norton360). CPU and RAM usage rarely go above 65%.

          The problem is that its not reproducible, so I have no idea where its coming from…

          Have you had any stability issues with the ADX indicator?
          Last edited by John833; 12-17-2008, 08:33 AM.

          Comment


            #6
            Hi, none that I'm aware of. Your setup is sound - if you wish send in your logs and we take a look if something is suspicious.

            Comment


              #7
              ok, I'll do that when it happens again, everything has been reset so I don't have any logs at the moment...

              Thanks for your help

              Comment


                #8
                You're welcome, please do...

                Comment


                  #9
                  Bertrand, this is what I have discovered with the ADX anomaly.

                  After repairing and resetting the DB, when I load up the chart and have the script running, the ADX value in the output is exactly the same as the ADX value on the chart, however if I reload historical data, the indicator values of the ADX changes…
                  If I reset and repair the DB then the ADX values fall back into place….

                  Any thought on why this would happen?

                  Comment


                    #10
                    Hi John833,
                    Thanks for reporting back your findings - please try to remove the 'CalculateOnBarClose' setting from your indicator file you call in your strategy and let me know if it improves your situation. Thanks!

                    Comment


                      #11
                      do you mean the ADX file, sorry I don't quite follow...

                      Comment


                        #12
                        Yes, please change it in the indicator you call from the strategy to diplay it on the chart...

                        Comment


                          #13
                          Bertrand

                          I have the standard ADX indicator file (the one that comes with NT) open, but I don't see a 'CalculateOnBarClose' statement?

                          Comment


                            #14
                            Hi John,
                            Thanks for checking - then you should be fine from that angle...please also check your 'Display update interval' in the Chart properties and set it to 0 for testing this issue.

                            Another idea would be to create a very simple strategy that only calls the ADX with the Add() and then Print() out this value to the output window to compare with the chart.

                            Comment


                              #15
                              ok I've set the interval to 0, and reloaded the chart, and the discrepancy is even more pronounced....

                              I already have ADX in the output from my strategy, but what I am concerned about is why am I seeing different values on the chart?

                              It also leads to the question is the value that I am using in my script accurate and the chart inaccurate, or visa versa?

                              All I am certain of is that once the DB is repaired and reset, values are the same, as soon as you reload the chart, the values change.

                              Do you think this can this be resolved?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              650 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              370 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              109 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              574 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              577 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X