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 jaybedreamin, Today, 05:56 PM
            0 responses
            3 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            9 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Working...
            X