Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account on which a Strategy is running

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

    Account on which a Strategy is running

    Hello,

    Is it possible to get in a strategy script, the account on which the strategy has been launched? If not, can this information be gathered from elsewhere with a program ? (The accounts associated to the realtime strategies in the Strategies tab).

    Thank you.

    #2
    Jean-Marc, unfortunately this is not supported - as a hint you could check into the AccountName property.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Jean-Marc, unfortunately this is not supported - as a hint you could check into the AccountName property.
      Thank you : Is there any instruction I can use to read this account name property?, or do you mean that this can be seen "visually" in the strategies table?

      Comment


        #4
        Just posted in your other threads, though unsupported you can try checking it like this...

        Code:
         
        if (AccountName == "Sim101");
        ....

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Just posted in your other threads, though unsupported you can try checking it like this...

          Code:
           
          if (AccountName == "Sim101");
          ....

          This hint works. Thank you.

          Comment

          Latest Posts

          Collapse

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