Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SPX Levels on left y axis

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

    SPX Levels on left y axis

    Hello all,

    I'd like to have SPX levels left justified on my ES charts so that I have ES prices on the right and SPX on the left. See the photo attached for example.

    I haven't found a good way to do this as I can never get the left y axis to re-render or re-scale as I manipulate the chart. What is the best way to go about doing this that will work with both time based and non-time based charts? And that will be able to scale with whatever the min/max price on the chart is, not just the min/max of the bars on the chart. ( I have the ^SP500 ticker and an indicator that calculates the premium throughout the day available to use).

    Thanks
    Nick


    Click image for larger version

Name:	image.png
Views:	141
Size:	101.5 KB
ID:	1315889

    #2
    Hello NickyD,

    Thank you for your post.

    To clarify, you want the indicator's price marker to be on the left side of the chart?

    You can set the ScaleJustification to ScaleJustification.Left within the indicator's code. The left axis should change as you move the chart.

    Comment


      #3
      At the highest level - I'm asking what is the best way to get the equivalent SPX levels on the left side of the chart for non-time based charts. Displaying my indicators calculations was just the way I started to approach the problem.

      However, setting my indicators scale justification to left isn't resizing the prices on the left when I resize the prices on the right. e.g. If I squish the right side tighter to see a larger visible range, the left justified stuff isn't resizing along with it. Or if I ctrl-click and move the visible chart up/down, the indicator values on the left aren't chaging with it. It only seems to change when I scroll the visible chart bars left or right.

      Comment


        #4
        Hello NickyD,

        This is expected behavior since these are two completely separate axes. Unfortunately there is no way to control both at once. This is also the case for time based charts, if you test out any indicator and set the Scale Justification to Left on a time based chart- moving the right axis has no effect on the left axis.

        Please let us know if you have any further questions.

        Comment


          #5
          The chart only has x and y right? What are the completely separate axes you're referring too...Chart vs indicator?

          Comment


            #6
            Hello NickyD,

            Gaby is referring to the Price scales (axis).

            When setting the ScaleJustification to left or overlay, this creates a separate price scale which adjusts independently of the right price scale.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Ok, thanks.

              What I have hacked up now might be close to what I want. But I can't figure out how to relabel the left price scale.

              For orientation - in this updated picture on the left price scale:
              • The two almond colored boxes are the Values/Plots of my indicator.
              • The scale labels (22,21,20,19,etc) seems to be auto scaled based off those indicator values.
              • But you can also half see that the price rendered from the cross hair in the left scale is my calculated SPX value of 5638.68. (Which I beleive I set using the scales MinValue/MaxValue properties.


              What property controls the left scale labels? How can I manipulate this? And how can I increase the margin there to fit the cross hair price?

              Thanks

              Click image for larger version

Name:	image.png
Views:	122
Size:	105.4 KB
ID:	1316221

              Comment


                #8
                Now that I've said this "out loud" I realize that I probably can't specify those labels because they are only inherited from the indicator values.

                Comment


                  #9
                  Hello NickyD,

                  Unfortunately, there is no property to control the price margin price intervals or width and this is automatically adjusted by the core application.
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

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