Announcement

Collapse
No announcement yet.

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 darylxarkley, Today, 12:54 PM
    0 responses
    1 view
    0 likes
    Last Post darylxarkley  
    Started by Taddypole, Today, 12:44 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Started by RebeccazDougal, Today, 12:03 PM
    0 responses
    5 views
    0 likes
    Last Post RebeccazDougal  
    Started by wehewwehd, Today, 11:10 AM
    0 responses
    4 views
    0 likes
    Last Post wehewwehd  
    Started by my-trade, Today, 10:45 AM
    0 responses
    8 views
    0 likes
    Last Post my-trade  
    Working...
    X