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

programmaticly add panel to chartwindow

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

    programmaticly add panel to chartwindow

    hi,

    i know this is unsupported, but perhaps someone could give me some input.
    what i am trying to do is the following, i want to create a additional chartpanel to the chart, which should be located on the right side of the chart, similar to the chart trader panel.

    I tried chartcontrol.add(panel) and some other ways, but it does not show up.

    Can anybody give me a headsup, on this, please.

    P.S. Should look like in the attached picture.
    Attached Files

    #2
    Hello keepsimple,

    Thank you for your post.

    We do not have an example of a custom chart trading panel on the charts. Perhaps one of our Forum members may be able to assist here.

    Comment


      #3
      Hello KeepSimple,

      I`ve made many indicators and strategies using an additional panel to host other .net controls. You can use Visual Studio to build a prototype windows desktop application, hosting your custom NT controls, and then copy and paste the c# from Visual Studio to NT.

      After you`ve built your prototype panel and controls in Visual Studio for example, open VS file "Form1.Designer.cs"

      1. copy method "private void InitializeComponent()" into your NT indicator or strategy
      2. copy control definitions into your NT indicator or strategy (located at the end of file "Form1.Designer.cs")

      3 You will need to call InitializeComponent from NT "protected override void OnStartUp()"
      4 You will need to Dispose your custom controls from NT "protected override void OnTermination()"
      5 You will also need to comment out specific C# statements in method InitializeComponent, that are not supported by Ninjscript.

      I`ve uploaded a working example Indicator that you can use as an example.

      Cheers
      Rayko
      Attached Files

      Comment


        #4
        rayko, this is brilliant, thanks so much, this is exactly what I was looking for.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        940 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        4 views
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        28 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        33 views
        0 likes
        Last Post wzgy0920  
        Working...
        X