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

Save-Restore WorkSpace is a bug?

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

    Save-Restore WorkSpace is a bug?

    This sample https://ninjatrader.com/support/foru...447#post790447 is not works now. After each save of the workspace, a new node is added with new values. Can someone tell me how to solve this?
    Click image for larger version  Name:	ws.png Views:	0 Size:	46.1 KB ID:	1145812

    #2
    Hello alexr,

    Thank you for your note.

    Thanks for bringing that to our attention. I've touched base with Chelsea and he says that he'll be updating that example as he wasn't aware at the time it was made that the node needed to be removed.

    Code:
    // the root node is appended to the xml document, so needs to be removed to prevent duplicates
    element.Elements().Where(el => el.Name.LocalName.Equals("WorkSpaceSavedItemsRootNode")).Remove();
    I'd give that a try after the values have been restored.

    For an example see AddonShellNoTabs_NT8 — https://ninjatrader.com/support/foru...830#post759830

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your reply. That's exactly what I did. It just seemed to work recently.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by traderqz, Yesterday, 09:06 AM
      2 responses
      15 views
      0 likes
      Last Post traderqz  
      Started by traderqz, Today, 12:06 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by f.saeidi, Today, 08:13 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DavidHP, Today, 07:56 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X