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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      78 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X