Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 agclub, 04-21-2024, 08:57 PM
      5 responses
      34 views
      0 likes
      Last Post agclub
      by agclub
       
      Started by ESHunter, Today, 08:06 PM
      2 responses
      18 views
      0 likes
      Last Post ESHunter  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      19 responses
      150 views
      0 likes
      Last Post ETFVoyageur  
      Started by ETFVoyageur, Yesterday, 10:13 PM
      3 responses
      26 views
      0 likes
      Last Post ETFVoyageur  
      Started by ETFVoyageur, Yesterday, 12:52 AM
      3 responses
      33 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X