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

Set Y Axis in OnRender

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

    Set Y Axis in OnRender

    How can I set the Y axis in OnRender?
    Something like: SetYAxis = Highest High of visible bars + (10 * Ticksize.)

    chartScale.MaxValue only returns the Y value.

    Thanks. Probably something stupidly simple.

    #2
    Hello TAJTrades,

    Thank you for the post.

    You must set this parameter through the OnCalculateMinMax method. The help guide page has an example on how to use the method to set the scale for your indicator.

    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Bingo, that should work for me.
      Thanks Chris, I never saw it in the Help Guide.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MarianApalaghiei, Today, 10:49 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      8 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      46 views
      0 likes
      Last Post bill2023  
      Working...
      X