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 geddyisodin, Today, 05:20 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Max238, Today, 01:28 AM
    3 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by timko, Today, 06:45 AM
    2 responses
    13 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by habeebft, Today, 07:27 AM
    0 responses
    5 views
    0 likes
    Last Post habeebft  
    Started by Tim-c, Today, 03:54 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X