• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create a Chart Tab from an AddOn

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

    Create a Chart Tab from an AddOn

    How does one create a Chart Tab from an AddOn?

    Thanks.

    #2
    Hi jeronymite, thanks for your question.

    The chart tab written by NinjaTrader is not publicly available, so it would need to be done "from scratch". All of the WPF controls and some kind of render area need to be added to the addon tab. I'll submit a feature request to our product managers so we can easily add a chart into an addon tab.

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Chris. A supported feature would be excellent.

      In the meantime, I know that many capabilities are not "supported" or documented for use, but can be done in an unsupported manner if one is aware of the way. Is this possible with creating a chart tab via an AddOn?

      I am aware of the Chart and ChartTab classes, for example. The AddOn documentation even speaks of the Chart class in particular and how it can be accessed in an AddOn for various reasons. Can they (or some other, unsupported means) be used to either create the chart tab or make it relatively straightforward to do so?

      Thanks.

      Comment


        #4
        Hello jeronymite,

        This is Jim responsing on behalf of Chris who is out of the office at this time.

        Interest in the ability to create a chart tab in an AddOn window is being tracked with the internal ticket ID SFT-4897.

        There is not any documentation or insight we could provide for programmatically creating/adding a chart tab. If other community members of have accomplished this, we will leave the thread open so they can share their experience.

        We look forward to assisting.
        JimNinjaTrader Customer Service

        Comment


          #5
          Taking a slightly different approach, if one identifies a Chart window with multiple Chart tabs, and identifies the MainTabControl and all TabItems, how can one access the individual tabs as Charts and modify the Instrument and Interval on any individual Chart tab?

          Thanks.

          Comment


            #6
            Hello jeronymite,

            We do not offer a supported way to programmatically change the Data Series on a chart and do not have a supported way to switch the tab and then programmatically change the data series. My colleague Chelsea has some code that can programmatically change the Data Series by sending key presses to change the instrument through an overlay instrument selector in the Rollover Indications indicator.

            You could consider triggering the hot key to switch tabs programmatically, but this would also be considered an unsupported approach.

            Rollover Indications - https://ninjatraderecosystem.com/use...indications-2/

            The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

            We look forward to assisting.
            JimNinjaTrader Customer Service

            Comment


              #7
              Thanks, Jim. That was helpful. I found a few clues to ways to do things, and although some minor "contortions" are still needed, I can now achieve quite a lot of what I want.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by vitrxotinusa, Yesterday, 11:56 PM
              0 responses
              5 views
              0 likes
              Last Post vitrxotinusa  
              Started by vitrxotinusa, Yesterday, 11:55 PM
              0 responses
              3 views
              0 likes
              Last Post vitrxotinusa  
              Started by vitrxotinusa, Yesterday, 11:53 PM
              0 responses
              6 views
              0 likes
              Last Post vitrxotinusa  
              Started by raymonds, Yesterday, 10:23 PM
              0 responses
              4 views
              0 likes
              Last Post raymonds  
              Started by Gbnowpes, Yesterday, 09:21 PM
              0 responses
              5 views
              0 likes
              Last Post Gbnowpes  
              Working...
              X