Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

getting account data from indicator

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

    getting account data from indicator

    Dear friends.
    I want to get data about account positions / order/ and etc via indicator.
    I have copy/paste this code from one of my strategy (this code working well in strategy)
    Code:
    System.Collections.IEnumerator ListOrders = Account.Orders.GetEnumerator();
    System.Collections.IEnumerator ListExec = Account.Executions.GetEnumerator();
    System.Collections.IEnumerator ListS = Account.Strategies.GetEnumerator();
    But it did not work in indicator. Indicator can not be compiled.

    #2
    Hello daglas,
    The Account class is not exposed in an indicator, like it is exposed in a strategy. You can refer to this code to get an idea how to expose the Account class, but nothing we would support officially.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X