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

NT7. Add space to bottom of the chart.

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

    NT7. Add space to bottom of the chart.

    How can i do this in code? I need some space for data placement. Thank you.
    Attached Files

    #2
    Originally posted by Dzammer View Post
    How can i do this in code? I need some space for data placement. Thank you.
    Would putting it in a different panel be the solution you are looking for?

    Panel
    The panel the indicator is plotted on. If you select Same as input series the indicator will be linked to the input series and automatically move with the input series if it is modified to a different panel.


    Set overlay false?

    Comment


      #3
      Originally posted by sledge View Post
      Would putting it in a different panel be the solution you are looking for?

      Panel
      The panel the indicator is plotted on. If you select Same as input series the indicator will be linked to the input series and automatically move with the input series if it is modified to a different panel.


      Set overlay false?

      https://ninjatrader.com/support/help...7/?overlay.htm
      Hello. Thank you for reply.
      No. I want to do something like in attach, but in code.
      Attached Files

      Comment


        #4
        This is strange. I can't say I've seen it done.

        There's an indicator in called ChartScale in the NT7 indicators that forces a scaling - but you would probably have to modify it.

        In all honesty - a separate panel would just make your life so easy.

        Comment


          #5
          Originally posted by sledge View Post
          In all honesty - a separate panel would just make your life so easy.
          I have no indicator ChartScale in NT7.

          How can i use separated panel, if i need to linq my cells in bottom (it's drawn by plot) with bars?
          Attached Files

          Comment


            #6
            Hello Dzammer,
            What you are wanting to achieve would not be supported within NinjaScript. This does seem to be achievable through unsupported code and the ChartScale Indicator that I have found does seem to do something similar. ChartScale is not preconfigured in NinjaTrader but is available to import as it is a user uploaded indicator and is available at the following link: http://ninjatrader.com/support/forum...d=4&linkid=467
            To Import

            Download the NinjaScripts to your desktop, keep them in the compressed .zip file.

            From the Control Center window select the menu File> Utilities> Import NinjaScript

            Select the downloaded .zip file

            NinjaTrader will then confirm if the import has been successful.

            Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

            Once installed, you may add the indicator to a chart by:

            Right click you chart > indicators > Select the Indicator from the list on the left > New > OK

            You can view the code for the ChartScale after it is imported by going to Tools > Edit NinjaScript > Indicator > Select ChartScale > Press OK.
            Please let me know if I can be of further assistance.
            Cody B.NinjaTrader Customer Service

            Comment


              #7
              NinjaTrader_CodyB, thank you for reply. I have downoaded ChartScale, but it not worked for me. I see in code and i think it can't work. Because it have not code for scale, only drawing text.
              Attached Files

              Comment


                #8
                Hello,
                It looks as though the developer of this is using the DrawText() objects as a work around to scale as they have the DrawText() object appear transparent and auto scale. I am seeing that it does scale for me as desired when I utilize this.
                Another option would be to use the DrawHorizontalLine() method to draw a transparent line that autoscale so that there is additional space.
                Cody B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_CodyB View Post
                  Hello,
                  It looks as though the developer of this is using the DrawText() objects as a work around to scale as they have the DrawText() object appear transparent and auto scale. I am seeing that it does scale for me as desired when I utilize this.
                  Another option would be to use the DrawHorizontalLine() method to draw a transparent line that autoscale so that there is additional space.
                  I added an invisible line. But i think id not very nice solution.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by kevinenergy, 02-17-2023, 12:42 PM
                  118 responses
                  2,777 views
                  1 like
                  Last Post kevinenergy  
                  Started by briansaul, Today, 05:31 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post briansaul  
                  Started by fwendolynlpxz, Today, 05:19 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post fwendolynlpxz  
                  Started by traderqz, Yesterday, 12:06 AM
                  11 responses
                  28 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by PaulMohn, Today, 03:49 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post PaulMohn  
                  Working...
                  X