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

Add some elements from another workspace without complete restore

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

    Add some elements from another workspace without complete restore

    on page:


    it's shown how to save/restore workspace.

    Is there any way, that when you have already open a workspace, and if i want to add only one window from another workspace, how can I do that programatically?

    because what i understand with the above example , is that you fully restore the other workspace (causing to close your current open workspace).


    #2
    Hello TazoTodua,

    Thanks for your message.

    We do not have a documented/supported way to programmatically add specific elements to a workspace in NinjaScript. Since the workspace files are XML files, you may wish to work around this by saving a new workspace file with XML injected into it the file, and adjusting your workflow to use the workspace files that you are saving on your own.

    This would take a fair bit of understanding the XML layout for the workspace file, which we do not document, but observing how NinjaTrader creates these files would be a good way to observe how you may work with these files.

    Please let me know if there is anything else we can do to help.


    JimNinjaTrader Customer Service

    Comment


      #3
      many thanks!
      yes, i was thinking about same. 1 question, is there any way to open another workspace (not partial elements from worskpace, but as NT does normally) BUT without closing the currently opened workspace?

      Comment


        #4
        Hello TazoTodua,

        There is not any documented way to achieve this.

        You may wish to use intellisense/intelliprompt to give some clues for using WorkspaceOptions which offers some methods that may help to achieve the goal, but as this item is not documented, we could not offer any support for its usage.

        We have a feature request to expand documentation on WorkspaceOptions and I will add a vote on your behalf, citing your feedback. The ticket ID is SFT-3346.

        Please let me know if we can be of further assistance.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Barry Milan, Yesterday, 10:35 PM
        5 responses
        16 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        13 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        12 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        8 views
        0 likes
        Last Post nandhumca  
        Working...
        X