Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fixed Vertical Scale with Dynamic Minimum and Maximum Values

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

    Fixed Vertical Scale with Dynamic Minimum and Maximum Values

    I want to set the chart right scale properties to fixed and dynamically compute the maximum and minimum values. The maximum and minimum values would be based upon the current day's high and low values and would update after each bar. The values of the current day's high and low are easy to get, but I can't find how to access the required chart properties. In the xml file I see the properties are listed as 'FixedPanelMaxRight” and “ FixedPanelMinRight”. How do I get to the fixed chart maximum and minimum values so that the chart's vertical scale will update dynamically? Am I correct that I this would be done through an indicator?

    #2
    Hello TheCatMan,

    Unfortunately there are not supported properties that allow you to specify the chart scale. You may consider using indicator ConstantLines to set the upper and lower bounds of the scale. Setting color of these lines to the same color as the chart background means they won't be visible, but will still affect the chart scale.

    As a hint, type in a NinjaScript editor "this.ChartControl." to see some unsupported properties.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    134 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    119 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    114 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    92 views
    0 likes
    Last Post CarlTrading  
    Working...
    X