Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capture Chart Scale Values via NinjaScript

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

    Capture Chart Scale Values via NinjaScript

    Hello,

    I have a question regarding if it is possible to capture the current chart scale via NinjaScript.

    For example on the right side of the chart a gridline may have an associated value of 4,000, then the next grid line above might be 4,005 for example, where the difference between these two gridlines is 5.

    Is there a way to capture these gridline / price values in NinjaScript?

    If so, are these properties / methods also available in NT7?

    The motivation for this is that I find the chart scale itself to be a good volatility indicator, but on an intraday basis it is easy to miss if / when the chart scale changes when monitoring multiple charts / markets. I plan to write an indicator that will alert me if / when the chart scale changes.


    Thank you for your assistance!

    #2
    Hello NTLevel2,

    You can find the min and max prices of the scale and also the TickSize which is the smallest increment the instrument can have on the scale. The scale can be scaled in or out so the other increments which may change as the scale is moved in or out would be something that is not directly available. To find those values you would need to essentially recreate what the chart is doing to render those various size increments as the scale changes.

    You could see the OnCaculateMinMax override for an example of getting the current scale range: https://ninjatrader.com/support/help...b=calculatemin

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    638 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