Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Tick Counter" indicator - How to access number of ticks remaining?

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

    "Tick Counter" indicator - How to access number of ticks remaining?

    Hi there,

    I'm looking to access the number indicated on a tick chart that shows how many ticks are remaining in a bar on a chart. How could I call that number into my strategy?
    For reference, I've attached an image from the help files for reference.

    Thanks in advance!

    #2
    Hello Spiderbird,

    Thanks for your post.

    The Ninjascript item you will need is Bars.TickCount: https://ninjatrader.com/support/help...?tickcount.htm This provides the number of ticks in the bar as it is building so the remaining number of ticks would be a matter of subtracting the size of the tick bar - Bars.TickCount.

    For a further example, you can review the code of the indicator TickCounter.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi NinjaTrader_PaulH, thanks for creating the TickCounterEnhanced indicator, especially the alert feature. Very helpful. One suggestion for another enhancement next time you upgrade this indicator -- it would be very helpful if the tick counter could appear immediately to the right of the actively trading candle. Thanks!

      Comment


        #4
        Hello Favord,

        Thanks for your post and welcome to the NinjaTrader forums!

        I replied to your e-mail as well.

        Thanks again for your comments and suggestion.

        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thanks for this great indicator. I see the suggestion to place the countdown number to the right of the right-most candle, but I don't seem to find any direct response to this specific idea.

          How do we add objects on the chart panel to the right of the right-most candle? I assume we can't input a negative number for barsago, right?

          Comment


            #6
            Hello EminiTrader,

            Thanks for your post.

            It is technically possible to use a negative bar ago but it is not a recommended practice due to issues that can occur with other indicators.

            I would suggest placing it either above or below the candle using an offset of x ticks above or below the High or Low of the forming bar.

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mmckinnm, Today, 01:34 PM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Conceptzx, 10-11-2022, 06:38 AM
            3 responses
            60 views
            0 likes
            Last Post NinjaTrader_SeanH  
            Started by f.saeidi, Today, 01:32 PM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by traderqz, Today, 12:06 AM
            9 responses
            16 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by kevinenergy, 02-17-2023, 12:42 PM
            117 responses
            2,766 views
            1 like
            Last Post jculp
            by jculp
             
            Working...
            X