Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to control right scale to center price?

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

    How to control right scale to center price?

    Trying to replicate functionality produced in NT 6.5. I believe I need to code an indicator to get the desired results and would appreciate confirmation and any clues how to code a script to set the right scale configuration.

    Desired Behavior:
    Want to have data on a fixed scale with the latest bar centered on the screen. I want the scaling to stay consistent with the last price centered.

    I suspect I need an indicator that on the close of each bar, sets the right scale min/max to get the desired behavior.

    Any suggestions or examples on how to set the right scale appreciated.

    Thanks,
    CryptOrchid

    #2
    Hello CryptOrchid,

    NinjaTrader 6.5 did not support a fixed chart scale, while NinjaTrader 7 does. Please click and hold the left mouse button on the right side of the Y-axis and move it up or down. The letter 'F' will appear in the upper right corner, which indicates a fixed scale is currently used in the chart.

    If you right click on the right side of the Y-axis and select Properties, you can set the scale to your liking. If you use a fixed scale, it will remain fixed upon scrolling through the chart.

    It is not supported by default to have the last traded price centered. I am not sure if this is possible through the use of NinjaScript - I will need to check this with another colleague. You can expect a response a little later.

    Comment


      #3
      Thank you for checking with your colleague.

      Jason,

      Thank you for your prompt reply. I appreciated your looking into this further. I understand you do not support centering of the price by default. Any clues you can offer on how to program it would be greatly appreciated.

      CryptOrchid
      Last edited by Cryptorchid; 05-07-2010, 02:25 PM.

      Comment


        #4
        Cryptorchid,

        Unfortunately we do not support centering of last price in that sense. The only setting available is to have it auto scale which would try to show the full information of all bars within the x-range. The last price would move up/down depending on its relationship between that y-axis max/min range.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Fixed Scale - Charts loosing look and feel

          Hi Josh,

          do I understand it right, that it is still not possible to set a specific scale for ones bars and then be able to move the chart with that scale staying fixed?

          For example I'd like to have a 5 point scale on the YM so that the bars won't change their look and therefore feel every time I move the chart. Since I use NT I lost a lot of my feeling for proportions on the chart, since the scale changes all the time. A small candle can now mean a lot of points and a big one nothing. This is really a pain.

          As I see, I can now change the scale to 5 points, but then it can happen that I have no candles at all on the chart, since they are all above or below the displayed range. The only way to solve this that I found until now, is to change the Max/Min Values in the Chart Panel Properties. Well, this is at least something, but very uncomfortable.

          It would really be such a great help to be able to set a fixed scale and then move the chart around freely up and down. As I saw in the forum, this doesn't only concern me. And this is available in so many platforms, even free ones, that I hope, NT will be able to offer this too.

          Comment


            #6
            And I forgot: As soon as I switch back to automatic scaling for a better overview of some relevant chart points, all the settings are gone (Min/ Max, scale setting) and one has to start all over again. This is so annoying.

            Of course there's a workaround for this too: Just create may different charts for different timeframes and views. But than again one will run into performance trouble after a while.

            Comment


              #7
              Not as bad as you think Ninja Turtles.

              By the way great name. Are you related at all to the Mutant Ninja Turtles? :-)

              I am not sure it does every thing you want, but you can move the price up and down without changing the scale.

              When in fixed mode, dragging the mouse in the price par changes the scaling by changing the min and max parameters. If you control drag the mouse, it moves the prices up or down with out changing the scale.

              CryptOrchid

              Comment


                #8
                Hello NinjaTurtle,

                You can set a chart to a fixed scale, however it will remain on the fixed scale. Upon scrolling horizontally through the chart, it can occur that price data is not visible. It would not be a fixed scale if it suddenly would include data outside the Y Max and Min.

                I will forward your suggestion to use a fixed scale and be able to move up and down freely to our development team and ask them if they can add this to the list of future considerations for the software.

                In addition, it is as expected that you will lose the setting for the fixed scale once you set the chart back to automatic scale - both use different settings.

                Comment


                  #9
                  Hi CryptOrchid,

                  thanks for the kudos. It was just the first name that came to my mind when I registered for the forum.

                  And thanks a lot for the hint, this helps definitely for now. It is not the free movement of the chart that I suggested since I can't move the chart simultaneously along the x-axis, but at least I can drag all the candles that may be outside the visible area to that area without having to mess with the chart, changing the scale, changing the properties etc. So thanks again.

                  Comment


                    #10
                    Hi Jason,

                    thanks for the answer. I see you got the point. Of course the fixed scale and the automatic scale both use different settings. But you see how disturbing it is to have to change them permanently. As soon as one needs to zoom in or out the whole game starts from the beginning.

                    CryptOrchids hint definitely helps for now. But the free movement would be the best solution in my opinion. You set a scale and place the chart exactly the way you want it. If you need to see more or less details, you zoom in or out.

                    Hope I can use this someday soon.

                    Comment


                      #11
                      Hi Jason,

                      Can you tell me how to set the chart in NT7 so that it does not run off the right side of the screen. I would like to fix in place so it does not travel past an inch or so of the right side margin.... thanks

                      Originally posted by NinjaTrader_Jason View Post
                      Hello NinjaTurtle,

                      You can set a chart to a fixed scale, however it will remain on the fixed scale. Upon scrolling horizontally through the chart, it can occur that price data is not visible. It would not be a fixed scale if it suddenly would include data outside the Y Max and Min.

                      I will forward your suggestion to use a fixed scale and be able to move up and down freely to our development team and ask them if they can add this to the list of future considerations for the software.

                      In addition, it is as expected that you will lose the setting for the fixed scale once you set the chart back to automatic scale - both use different settings.

                      Comment


                        #12
                        Hello syxforex,

                        Unfortunately, I am not sure if I follow. Am I correct you like the current bar always to be displayed?

                        If so, unfortunately there is no setting that will 'lock' the chart. If you do not scroll the chart, the current bar will always be displayed.

                        If this is not the case you will see a black arrow in the upper right corner. Click the black arrow and the chart will move back to the current bar.

                        Comment


                          #13
                          Thanks so much for the CTRL-drag tip, Cryptorchid. Before this, I had to frequently readjusting fixed-scales when prices were outside the viewing windows. Your tip has saved me time and frustration

                          Originally posted by Cryptorchid View Post
                          By the way great name. Are you related at all to the Mutant Ninja Turtles? :-)

                          I am not sure it does every thing you want, but you can move the price up and down without changing the scale.

                          When in fixed mode, dragging the mouse in the price par changes the scaling by changing the min and max parameters. If you control drag the mouse, it moves the prices up or down with out changing the scale.

                          CryptOrchid

                          Comment


                            #14
                            While we're on the subject, I prefer the automatic scale when scrolling back in time. However, my charts will not stay locked on automatic and will always default to fixed when scrolling around. This happens on any type of chart, any time frame, with or without indicators loaded, and seems to happen randomly. I right click on the price axis, and sure enough, its back to fixed. I change it to automatic, then after scrolling back a few days or weeks in automatic scale, it unexpectedly reverts to fixed. What am I doing wrong?

                            Comment


                              #15
                              Hello Billy Valentine,

                              Charts should not use fixed scaling by itself nor do they convert to fixed scaling upon scrolling through the chart.

                              Could it be you click and hold the left mouse button on the right side of the Y-axis and move up or down by accident at some point in time. This will cause the Y-axis to (de)compress and thus uses a fixed scaling.

                              Please let me know when you notice your charts to use a fixed scale and tell me what steps were performed last in the chart.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              600 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              346 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X