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

Change the right scale

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

    Change the right scale

    Hello,

    How can I change the values of right scale from my indicador/strategy? For example, I want to fix range for maximum and minimum values of right scale in may chart, and I want do it from my own code with a personal indicator/strategy?

    Regards and thanks in advance.


    #2
    Hello soyjesus,

    Thank you for your post.

    GetMinMaxValues is an undocumented/unsupported method in NinjaTrader 7 that could be used to determine the highest and lowest value that can be used for the chart scale. It could be used for auto-scaling purposes, however, it may not be used to override the auto-scaling of other objects. For example, we can expand the scale, but we cannot shrink it.

    You may refer to the following link below for an example demonstrating how this can be accomplished. Also, the ZigZag indicator could be referenced in the NinjaScript Editor to see how GetMinMaxValues is used.

    SMACustomMinMaxScaleValues - https://ninjatrader.com/support/foru...%8B#post547284

    Please let us know if we may further assist.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    147 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Working...
    X