Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IsFirstTickOfBar&TickReplay issue

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

    IsFirstTickOfBar&TickReplay issue

    Using IsFirstTickOfBar in an indicator seems to prevent some calls to OnMarketData when multiple indicators on a chart use OnMarketData.

    Steps to reproduce:
    Open a Chart with TickReplay.
    Add the attached indicator to the chart. You get the expected result of no log output.
    Add the attached indicator to the chart a second time. You get multiple log messages of bars where OnMarketData was not called once.
    Change the indicator to use the custom variable to detect a new bar start. You get the expected result of no log output no matter how often the indicator is added to the chart.
    Attached Files

    #2
    Hello Tiixo,

    Thanks for your post.

    Just to clarify, are you using Ninjatrader 8 beta version 5?

    What variable are you referring to here:"Change the indicator to use the custom variable to detect a new bar start. ".

    Thank-you

    Comment


      #3
      The indicator that i attached to my first post has the custom variable in it.
      In Line 65 there is: if( IsFirstTickOfBar)
      and in Line 64 is: // if( CurrentBar > lastLoggedBar )

      Uncomment Line 64, Comment Line 65 and you get different results.
      lastLoggedBar is updated with every OnBarUpdate.

      And yes it is with Beta5.

      Comment


        #4
        Hello Tiixo,

        Just to close the loop, we've add this into the bug reports and it has a tracking number of NT8-8861.

        Thanks finding this and reporting it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, Today, 06:46 AM
        0 responses
        9 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, Yesterday, 05:21 PM
        0 responses
        14 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        15 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        82 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        48 views
        0 likes
        Last Post PaulMohn  
        Working...
        X