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 lightsun47, Today, 03:51 PM
    0 responses
    5 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    8 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    44 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    13 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    9 views
    0 likes
    Last Post port119
    by port119
     
    Working...
    X