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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        94 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        81 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        75 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Working...
        X