Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fix Y Axis

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

    Fix Y Axis

    I have a summary indicator that collects information from my other indicators and outputs a stack of bubbles that show bullish, bearish or neutral.

    I need to "fix" the y-axis. For example, If I have 10 stacked bubbles, plotted at values of 1-10, then I want the y-axis to start at -1 and end at 11 so that the top and bottom row of bubbles aren't on the line separating this indicator from the others.

    I don't need to query for min/max values on the plot since I know them.

    Just need something like
    Y-AxisMin = -1;
    Y-AxisMax = 11;

    but I can't find the correct syntax


    #2
    Hello cre8able,

    The price margin (y-axis) cannot be controlled directly.

    But you can set the MinValue and MaxValue in OnCalculateMinMax for an indicator that has Auto scale enabled, and disable Auto scale for all other objects using that panel and scale.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      that worked
      thank you Chelsea

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      70 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      152 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X