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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 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
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X