Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Average tick size

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

    Average tick size

    Hello

    Is there a way to calculate the average tick size of the last N bars?
    Also, is there a tool or a way to calculate how many ticks from one point in the graph to another?

    #2
    Hello Mathias79,

    Thank you for your post.

    Yes, this would be possible. You can use Calculate.OnEachTick and increment a variable until you see IsFirstTickOfBar, when you can reset that variable back to 0. Before you set it back to 0 in IsFirstTickOfBar, the variable will have the number of ticks in the last bar. You could save these values to a series.

    Series<t> - https://ninjatrader.com/support/help...8/?seriest.htm

    Note that you would want to assign the count to YourSeries[1] on IsFirstTickOfBar to assign the tick count to the bar that had just closed.

    You could then loop through the last n bars in the series to calculate the average.

    is there a tool or a way to calculate how many ticks from one point in the graph to another?
    This can be done using the Ruler drawing tool with the steps below.
    • Go to your Drawing Tool drop down menu Ruler which will change your cursor to a pen.
    • Place the pen on your chart where you would like the measurement to begin (point A)->left mouse click
    • Move the pen to where you would like the measurement to end (point B)->left mouse click again.
    • Move the pen to where you would like the information box placed in the chart window
    Within the box the Y-axis value will display the number of ticks between point A & B. Make sure the 'Y display unit' in the drawing tool's properties is set to 'Ticks.

    Please let us know if you have any further questions.

    Comment


      #3
      Thank you for your response, I didn't understand anything of the first part of your answer.

      Comment


        #4
        Hello Mathias79,

        Can you be more specific about which part in particular is not clear? I am happy to provide more detail.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        65 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        23 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        26 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        52 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X