Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change significent figures on "Y" axis

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

    Change significent figures on "Y" axis

    Hello Support,
    I would like to be able to change the number of decimal places on the "Y" axis, on panels that are not the main panel. At present the default is two places, I would like to see four places on one panel, and zero places on some other panels.
    Thank you

    #2
    Hello oldhiker,
    Unfortunately there is no way to do it manually via adjusting some settings.

    You can however format the price marker by overriding the FormatPriceMarker method. Please refer to our help guide to know more about it.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello Joydeep,
      Thank you for your speedy reply. I will try that tomorrow morning - bed time now?

      Comment


        #4
        Hello Joydeep,
        I have just tried your suggestion, in several places in the code, but I got an error message or no change.
        Can you please tell me where to insert the code,
        Thank you

        Comment


          #5
          Hello oldhiker,
          Please refer to the attached code which demonstrates how to add the FormatPriceMarker override.
          Attached Files
          JoydeepNinjaTrader Customer Service

          Comment


            #6
            Hello Joydeep,
            Thank you for your speedy reply.
            It is exactly what I was wanting and it worked as expected. Very happy.
            Now I have anonother request.
            Two of my EMAs are yellow and white, which plot OK on a gray background, but I cannot read them on the Small Window that comes up when I press the middle wheel on the mouse. (This shows just the values in that panel, in the same colours as in the Plots)
            Is there any way to change the colour of the back ground on this small window. ( While I can change the colours of these two plots, it will wreck all the library of setups that I have gathered, using the two colours)

            Thank you
            PS Is there a library of sample code that can be accessed, or did you modify this code sample to show how to format the "Y" scale?

            Comment


              #7
              Hello oldhiker,
              The color of the plot values will be that of the plot colors. Unfortunately the background color of the mini data box cannot be changed.

              I just created/modified an indicator on the fly. There is no sample code demonstrating Format Price Marker, however you may refer to this indicator which demonstrates how to override the indicator label
              JoydeepNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Kaledus, Today, 01:29 PM
              5 responses
              12 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by Waxavi, Today, 02:00 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by alifarahani, Today, 09:40 AM
              5 responses
              23 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by gentlebenthebear, Today, 01:30 AM
              3 responses
              16 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by PhillT, Today, 02:16 PM
              2 responses
              7 views
              0 likes
              Last Post PhillT
              by PhillT
               
              Working...
              X