Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account Selector reloading account after save

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

    Account Selector reloading account after save

    I have this code

    Code:
    XElement accountElement = rootControlsElement.Element("account");
    ​accountSelector.DesiredAccount = accountElement.Value;
    ​
    in my protected override void Restore(XElement element) function, when I reload the workspace only tradovates accounts get loaded, not Rithmic account, how to solve this issue

    this is my save function:
    Code:
    rootControlsElement.Add(new XElement("account", (lastAccount != null ? lastAccount.Name : "Sim101")));
    ​

    #2
    Hello Pole123,

    One way to check this would be to add a print into the save method to confirm if a value is actually being saved when you save the workspace. That would probably be the best first step at addressing where the problem is. If a value is not being saved that will answer the question on why its not loading, if a value is being saved but then not loaded we would likely need more specific details on the use case and a simple test script so that we can test and report that.

    Comment


      #3
      I have tested th print with 2 account

      updated on reload: APEX-117503-01 (Rithmic)

      updated on reload: APEX290100000167 (Tradovate)

      second account shows correctly on tab and account selector, first account won't load into the selector

      Comment


        #4
        Hello Pole123,

        To clarify were you able to see the account names when printing them during the save event? We don't need to know about the load process at this point just if the account names are seen when you save.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        54 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        25 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        17 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        24 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X