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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      72 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      38 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      99 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      60 views
      0 likes
      Last Post PaulMohn  
      Working...
      X