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

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.​
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NM_eFe, Today, 10:13 AM
    0 responses
    3 views
    0 likes
    Last Post NM_eFe
    by NM_eFe
     
    Started by hdge4u, Yesterday, 12:23 PM
    1 response
    10 views
    0 likes
    Last Post hdge4u
    by hdge4u
     
    Started by 1001111, Today, 09:45 AM
    0 responses
    12 views
    0 likes
    Last Post 1001111
    by 1001111
     
    Started by DTSSTS, 01-28-2024, 12:07 PM
    11 responses
    559 views
    0 likes
    Last Post bmo111
    by bmo111
     
    Started by Torontobluejays, Today, 08:43 AM
    0 responses
    3 views
    0 likes
    Last Post Torontobluejays  
    Working...
    X