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

Adding button to a chart panel rather than to chart controls

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

    Adding button to a chart panel rather than to chart controls

    Hello! Can you please advise on how can I add a button directly on a chart panel rather than on chart control panel?

    #2
    Hello,

    Thank you for the post.

    For nt7 there is really no documentation surrounding these concepts, but I can provide some links which can assist.

    The first would be to use the toolbar rather than the chart trader:


    The second would be to add a new panel to the chart, there is an example attached called UnsupportedAddFormPanelToChart_NT7, as the name suggests using these type of items in nt7 are unsupported and undocumented. This is mainly just using C# to modify the existing windows forms window and controls in that window.

    I look forward to being of further assistance.
    Attached Files
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse! Thank you for your reply. I am familiar with the attached code and it adds a button (or a panel) to controls group of the currently opened chart window. So if I were to add several data series within one chart window these would have shared a panel created by one of them. Is there a way to create a button directly on the chart panel like on the attached screenshot (it is from NT8)?
      Attached Files

      Comment


        #4
        Hello,

        Thank you for the reply.

        I am unaware of a way to layer controls in this way in windows forms. You could review windows forms information online to see if this type of layering is possible in winforms at all but this would be outside of the scope that I could assist with for NT7.

        I am only aware of being able to append items into the controls collection and have them dock in a position relative to other controls. in NT8 the UserControlCollection is what you are asking for which is an extra layer that is added which allows for controls to be added over a chart. You could try experimenting with making a layer like this in 7, but then you have to worry about passing clicks to the chart control and so on.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello Jesse! OK, thank you for your assistance!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DJ888, 04-16-2024, 06:09 PM
          4 responses
          11 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by terofs, Today, 04:18 PM
          0 responses
          5 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by nandhumca, Today, 03:41 PM
          0 responses
          5 views
          0 likes
          Last Post nandhumca  
          Started by The_Sec, Today, 03:37 PM
          0 responses
          3 views
          0 likes
          Last Post The_Sec
          by The_Sec
           
          Started by GwFutures1988, Today, 02:48 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X