Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range Indicator - Display Ticks instead of price

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

    Range Indicator - Display Ticks instead of price

    Hi,
    I am using the Range Indicator provided with NT8 on a column with the Market analyzer.
    The problem I have is that the indicator is expressing the "price" range, what I am really interested to see is the range expressed in ticks.

    Example:
    Price High / Price Low on ES: 3951.75 / 3950.00
    Range Indicator: 0.75
    I want to see it as 3 ticks

    Price High / Price Low on GC: 1845.5 / 1845.0
    Range Indicator: 0.5
    I want to see it as 5 ticks

    Thanks



    #2
    Hello horacioofman,

    Thanks for your post.

    You could consider creating a copy of the Range indicator script and modifying the script so that it calculates the (High[0] - Low[0]) / TickSize) instead of High[0] - Low[0] to have the indicator return the difference in ticks.

    To create a copy of the Range indicator, open a New > NinjaScript Editor window, open the Indicators folder, double-click the Range file, right-click in the code and select 'Save as', name the copy, and click OK. Once a copy is made, you could modify the copy.

    For example, the code may look something like this.

    Value[0] = (High[0] - Low[0]) / TickSize;

    This modified version could then be used in the Market Analyzer window to display the High[0] - Low[0] in ticks.

    See this help guide page for more information: https://ninjatrader.com/support/help...t_ticksize.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thanks Brandon,
      That worked perfectly.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      639 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      572 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X