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 SantoshXX, Today, 03:09 AM
    0 responses
    6 views
    0 likes
    Last Post SantoshXX  
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    2 views
    0 likes
    Last Post DanielTynera  
    Started by yertle, 04-18-2024, 08:38 AM
    9 responses
    41 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    12 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Working...
    X