Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to programmatically open a Chart window?

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

    How to programmatically open a Chart window?

    Hi,

    I'm trying to programmatically open a Chart window from an add-on using the following code (which is the same way you would open a custom window in an add-on):

    Code:
    Globals.RandomDispatcher.BeginInvoke(new Action(() => new Chart().Show()));
    However, there are two major problems with the opened Chart window:

    1) The chart area is transparent and you can see straight through to the applications / desktop behind it
    2) When you try to add an instrument you get the following error "Unhandled exception: Object reference not set to an instance of an object."

    What additional properties of the Chart do I need to set before calling Show() for this to work?

    #2
    Hello tcdouglas,

    Thanks for your post.

    Currently, there are no supported or documented methods or properties available for programmatically opening a chart window in NinjaScript.

    Our Development team is tracking interest for this in an internal feature request ticket and I have added your vote. This request is being tracked under the number SFT-377.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    This forum thread will be open for other community member to share their insights on unsupported code to accomplish this.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    651 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X