Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New tab on chart programmatically

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

    New tab on chart programmatically

    Hi,

    Is it possible to add an instrument as a new tab in chart programmatically? I would like to make an indicator which loads specific instrument at a specific date in a new tab.
    Any advice welcomed.

    Regards,
    Jiri

    #2
    Hello @tmc_,

    Thank you for your post.
    I am unaware of any way in NinjaScript to open a new chart/tab and configure its DataSeries properties, this is something I will need to put in a feature request for. I have added a vote for Tracking ID: SFT-377


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Not even with an unsupported way like using UI elements?

      Comment


        #4
        Hello @tmc_,

        Unfortunately not, creating an object/tab is one step in the process of a chart being created. You would also need to configure the data series and prime the chart just as it does when you manually create it. At this time there are no known ways of doing this through NinjaScript, there are also no existing open source references of creating a tab that we can use to confirm a custom solution works the same.

        The feature request would be the correct way to approach this to get supported methods exposed for NinjaScript. This would be very important because a chart may have other items applied to it if the base chart is not created right that may affect other items down the line causing problems.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          What about loading workspace programmatically, is that possible?
          Forcing current workspace to restore would work too...
          Last edited by @tmc_; 03-23-2019, 05:59 AM.

          Comment


            #6
            Hello @tmc_,

            Thank you for the reply.

            There is currently no documented ways to do this, however, I may suggest looking at the WorkspaceOptions object if you wanted to explore the undocumented side of this subject further. The WorkspaceOptions object has some methods to do various workspace actions, however, as we don't have any of this documented I would be unsure if there are any limitations here.

            I look forward to being of further assistance.

            JesseNinjaTrader Customer Service

            Comment


              #7
              Hi,

              I'd like to be able to create a new chart in two scenarios:

              1. I would like to be able to create a new chart in my addon and embed the chart in my NtTabPage. I would like to be able to provide the chart with initial data(ideally multiple series plots) to plot and I'd like to be able to push data updates to the chart from my NtTabPage OnMarketUpdate and OnDepthUpdate.

              2. I'd like to be able to create a new independent chart from Ninjascript. Pretty much the same action as Control Center->New->Chart. I'd like to be able to supply the same information that can be set from the chart Data Series Screen and I guess why I'm wishing I'd like to be able to set the charts indicators also.

              So yea +1 for SFT-377.

              I guess I'm going to have to Use my own WPF chart control for in my add on, which is far from ideal given the excellent chart control NT already has.

              Thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by giulyko00, Yesterday, 12:03 PM
              2 responses
              10 views
              0 likes
              Last Post giulyko00  
              Started by r68cervera, Today, 05:29 AM
              0 responses
              3 views
              0 likes
              Last Post r68cervera  
              Started by geddyisodin, Today, 05:20 AM
              0 responses
              6 views
              0 likes
              Last Post geddyisodin  
              Started by JonesJoker, 04-22-2024, 12:23 PM
              6 responses
              36 views
              0 likes
              Last Post JonesJoker  
              Started by GussJ, 03-04-2020, 03:11 PM
              12 responses
              3,241 views
              0 likes
              Last Post Leafcutter  
              Working...
              X