Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TickCount

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

    TickCount

    hi - I am seeing that Bars.TickCount returns a constant value on all bars processed when processing historical data. Can I access the tick count for the bar that is currently being processed?

    Onn

    #2
    Hi Onn, your understanding is correct, you could not directly access the historical info unless custom calculated via an added 1 tick series - same topic was addressed for example as well in http://www.ninjatrader.com/support/f...ad.php?t=49902

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Hi Onn, your understanding is correct, you could not directly access the historical info unless custom calculated via an added 1 tick series - same topic was addressed for example as well in http://www.ninjatrader.com/support/f...ad.php?t=49902
      I see. I have a couple of follow up question to this.

      1. What is the right way to know if the "current bar" the indicator method is processing is the the real time bar and that TickCount currently applies to it? Do I use Historical or compare the CurrentBar to the size of the bars array?

      2. When I load a historical chart, the TickCount is relevant to the last bar on the chart? I.e., the last bar that hasn't closed yet?

      Comment


        #4
        Hi onnb1,

        To know if the current bar is real time use 'if (!Historical) { // execute code }'.

        When loading a chart, the last bar on the chart will be an unclosed real time bar and will have the TickCounter applied.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        333 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X