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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        11 responses
        1,422 views
        0 likes
        Last Post jculp
        by jculp
         
        Started by RubenCazorla, Today, 09:07 AM
        0 responses
        4 views
        0 likes
        Last Post RubenCazorla  
        Started by BarzTrading, Today, 07:25 AM
        2 responses
        29 views
        1 like
        Last Post BarzTrading  
        Started by devatechnologies, 04-14-2024, 02:58 PM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by tkaboris, Today, 08:01 AM
        0 responses
        6 views
        0 likes
        Last Post tkaboris  
        Working...
        X