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 Option Whisperer, Today, 09:55 AM
        1 response
        11 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        1 view
        0 likes
        Last Post port119
        by port119
         
        Started by Philippe56140, Today, 02:35 PM
        0 responses
        3 views
        0 likes
        Last Post Philippe56140  
        Started by 00nevest, Today, 02:27 PM
        0 responses
        2 views
        0 likes
        Last Post 00nevest  
        Started by Jonafare, 12-06-2012, 03:48 PM
        5 responses
        3,986 views
        0 likes
        Last Post rene69851  
        Working...
        X