Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Possible Bug See Attached

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

    Possible Bug See Attached

    NT v. 7.0.1000.4

    Trying to debug an indicator I am working on, I ran into this behavior which I believe is not correct.

    The index [0] is referencing what should be index[1] in all dataseries. I made a test indicator attached that just plots the close, but has High[0], Low[0] drawn on bottom, and High[1], Low[1] draw on the top......

    The databox in the attached screenshot is showing that the High[0] should be returning 1319.45, instead High[0] returns 1319.74.... all other index references are shifted one bar to the left of where they should be, and I have no access to index[0], the CurrentBar's values.

    Do you get the same behavior. Data is fresh DL from Kinetick, Switching the Session Template to 24/7 from Default makes no difference.

    Is this a Bug?
    Is there a known Bug list?

    It does this on all my charts.... and has burned some debug time when I kept checking calcs I was making on the bar [0] that were not coming out correctly....
    Attached Files
    Last edited by Crassius; 03-29-2011, 05:23 PM.

    #2
    Crassius, in which timezone are you working / is your PC setup? If you would like to refer to the last values you need to work with CalculateOnBarClose = false for your script, otherwise it uses the last completed bar's values.

    Comment


      #3
      I am on EST.

      Now that the market is open, if I check an active updating tick chart, I get what I expect. The bar in progress is ignored of course, and the first completed bar, second to the left from the right of the chart is acted upon within CalculateOnBarClose = true;

      The last post's screenshot I attached is daily data, after the market closed.... so the right-most bar had already closed... as the data box shows.

      Also I thought it might have something to do with time.... so I switched the session template to 24/7.... that's the last post's screenshot still ignoring the right-most bar.

      I have attached a screenshot I just took.... on 3/30/2011, without updating the chart from the server since yesterday, with the Historical data manager window open showing the last bar (3/29/2011) has a closed value of 1319.44, yet the indicator returns only the closed value from the bar of 3/28/2011 of 1319.74.
      Attached Files
      Last edited by Crassius; 03-30-2011, 06:54 AM.

      Comment


        #4
        Crassius, thanks - on the daily bar please try CalculateOnBarClose = false and recheck - as NT is event (not time!) based the daily bar is considered closed when the open tick of the new bar has arrived - until then it's still 'in progress'.

        Comment


          #5
          "as NT is event (not time!) based the daily bar is considered closed when the open tick of the new bar has arrived - until then it's still 'in progress'.

          That is exactly what was happening.

          Thanks for the help... learned something new

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X