Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

1 tick DataSeries returns odd times each new chart bar

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

    1 tick DataSeries returns odd times each new chart bar

    Hi,
    in NT8 b11 I have a custom indicator where a 1 tick dataseries is added in Configure state.
    In monitoring the time values of this series, something odd happens. Each new chart bar, the time of the tick series jumps backwards. See the bold entries below. A print statement is generated for each new time on the 1 tick series (identical times are not generating a print statement, to reduce massive printouts).
    As far as I can see, the bold entries should not exist.
    This printout came from a market replay, downloaded from within Ninja, on NQ futures.


    30/06/2016 1:48:33 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:45:00 PM
    30/06/2016 1:48:33 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:45:00 PM
    30/06/2016 1:49:47 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:45:00 PM
    30/06/2016 1:44:24 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:45:00 PM
    30/06/2016 1:50:12 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:51:02 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:51:03 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:51:10 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:52:17 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:53:02 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:53:12 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:53:37 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:53:52 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:54:00 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:54:36 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:54:41 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:54:51 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:54:51 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:49:47 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:50:00 PM
    30/06/2016 1:55:38 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:55:00 PM
    30/06/2016 1:55:38 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:55:00 PM
    30/06/2016 1:55:41 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:55:00 PM
    30/06/2016 1:55:42 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:55:00 PM
    30/06/2016 1:56:50 PM BarsInProgress=1, 1 Tick current chart bar time is 30/06/2016 1:55:00 PM

    I can also see this problem on normal Kinetick data (historical), even after a Reload All Historical Data has been done.

    4/07/2016 2:34:13 PM BarsInProgress=1, 1 Tick current chart bar time is 4/07/2016 2:30:00 PM
    4/07/2016 2:34:13 PM BarsInProgress=1, 1 Tick current chart bar time is 4/07/2016 2:30:00 PM
    4/07/2016 2:29:58 PM BarsInProgress=1, 1 Tick current chart bar time is 4/07/2016 2:30:00 PM
    4/07/2016 2:35:17 PM BarsInProgress=1, 1 Tick current chart bar time is 4/07/2016 2:35:00 PM
    4/07/2016 2:35:25 PM BarsInProgress=1, 1 Tick current chart bar time is 4/07/2016 2:35:00 PM

    The problem does not occur once the chart is realtime.

    Cheers,
    saltminer.

    #2
    How about some sample code to reproduce? What does your Print look like?

    So you are using any Add type function? This is in Playback-MR?

    How you accounted for Multidata Series issues?

    Comment


      #3
      Hello saltminer,

      Thank you for your post.

      As sledge suggested, can you provide the code used to create these prints? In addition, the fact that the code is multiple series could mean that the prints are occurring for the primary series.

      Comment


        #4
        Hi,
        here is the Print statement used:
        Print(Time[0]+" BarsInProgress="+BarsInProgress+", "+BarsPeriods[BarsInProgress].ToString()+" current chart bar time is "+Times[0][0]);

        here is the Add method in the Configure state:
        AddDataSeries(BarsPeriodType.Tick, 1);

        The issue exists in historical Market Replay and historical regular charts. Once the data is flowing in realtime the problem goes away.

        The print statement is not in use on the 5 Minute primary dataseries. (As you can see from the BarsInProgress value).

        cheers,
        saltminer

        Comment


          #5
          saltminer,

          I appreciate that additional information.

          I could not reproduce the results you see with the code you provided. Can you provide the .cs file used for your tests attached to your response? I may be missing something that you are doing.

          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