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 CarlTrading, Yesterday, 09:41 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        31 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        30 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-25-2026, 09:53 PM
        0 responses
        34 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 03-25-2026, 09:51 PM
        0 responses
        19 views
        0 likes
        Last Post CaptainJack  
        Working...
        X