Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X