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

Right side of Y Axis

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

    Right side of Y Axis

    Can anybody offer some advice on how to place a widget or draw on the right side of the Y axis on right side of chart?
    I am not asking how to draw stuff or place the widget on the chart in general, but specifically on right side of right Y axis such that the chart and Y axis are simply moved to the left to make room for the new area to the right.

    I have attached a screen shot of what I am trying to accomplish.

    Any advice or code snippets would be very much appreciated.

    Thanks,
    Gary
    Attached Files

    #2
    Hello GaryAlbers,

    Thanks for your post.

    This would fall outside of the realm that NinjaTrader Support can assist with, however, this thread will remain open for any community members that would like to contribute.

    Just a tip, this likely would require something about adding a custom form to the window.

    http://www.ninjatrader.com/support/f...s+forms&page=2
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes, I know you don't support this. (I am VERY anxious for NT 8...)
      Yes, I expected to use a custom form.

      My question is how to place my form so it ends up to the right of the Y axis.
      What container do I add my form to?
      How to force my form to paint on right side of existing ChartCanvas and still have Ninja paint the chart contents and Y axis as it does now?

      I have seen this done several times, but have not seen a code sample.

      Can anybody provide a suggestion?

      Thanks,
      Gary

      Comment


        #4
        Hello Gary,

        Below is a link to a forum thread where this is discussed.
        http://www.ninjatrader.com/support/f...079#post197079
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          The links provided do not address the question I am asking, which is:
          How to insert a custom form into the Ninja.ChartForm (which contains the ChartPanel) so that it appears on the right side of Y axis.

          I am not asking for advice on creating a custom form or button.

          Anyone willing to share how they inserted a form on the RIGHT side of the Y axis?

          BTW, I am aware that manipulating the chart margin that creates an area on the LEFT side of the Y axis. I need to place my form on RIGHT side of Y axis.

          Thanks,
          Gary

          Comment


            #6
            Hello GaryAlbers,

            I agree that was a bad example.

            Here is a better example:
            http://www.ninjatrader.com/support/f....php?t=61647#2

            This adds a toolstrip to the chart. Instead of adding a toolstrip add your form.

            (Actually, you will want to create a form panel and set the DockStyle to the right)
            Last edited by NinjaTrader_ChelseaB; 04-27-2015, 12:57 PM.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Chelsea,

              Thanks, but I have seen those examples.
              I don't believe those examples do anything to create an open area to the right of the Y axis.

              See the attached picture from original post. It shows a blank white area to right of Y axis.

              All the examples mentioned do not create that space, they just place the widget somewhere in the chart area covering up whatever is underneath them.

              Still seeking ...

              Gary

              Comment


                #8
                Hi Gary,

                The example has the ChartControl.Controls.Add() code which will add your form panel to the chart once its created. This is the same as adding a toolstrip.

                Set the form panel DockStyle to the right and this will appear to the right of the price margin.

                Give this a try.

                It is against our policy for me to assist with unsupported code, however, with that said, if you are unable to get it working, I'll give you an example made by NinjaTrader_Jesse that demonstrates this.
                Last edited by NinjaTrader_ChelseaB; 04-27-2015, 01:52 PM.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  OK, I'll explore from there.

                  I was expecting to see something to control placement of the control added, but I'll see what I can do with this.

                  Thanks,
                  Gary

                  Comment


                    #10
                    I found the answer in the latest example.

                    Thanks,
                    Gary

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by andrewtrades, Today, 04:57 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by chbruno, Today, 04:10 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post chbruno
                    by chbruno
                     
                    Started by josh18955, 03-25-2023, 11:16 AM
                    6 responses
                    436 views
                    0 likes
                    Last Post Delerium  
                    Started by FAQtrader, Today, 03:35 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post FAQtrader  
                    Started by rocketman7, Today, 09:41 AM
                    5 responses
                    19 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Working...
                    X