Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account CashValue

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

    Account CashValue

    Hello, i can see in the NT7 Control Center the Accounts tab with a lot of info.
    Its possible access to it from my strategy code?
    I am need known the CashValue of my broker account in realtime.
    Its possible?
    Thank you


    #2
    Hello,

    Thanks for your note.

    You can get this with the following code:

    http://www.ninjatrader.com/support/h...countvalue.htm

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Hello Brett, thank you very much for your answer.

      Yes, i found that but the output of GetAccountValue(AccountItem.CashValue) or GetAccountValue(AccountItem.BuyingPower) always was 0 (zero).

      ( When i tested today Saturday i was connecting in demo (Sim101) with a lease licensed )

      Itr possible select the account in the code?


      Thanks

      Comment


        #4
        Hello,

        The account that is selected is the account that you run the strategy on. This is set in the strategy parameters.

        If it has a value of 0 this most likely indicates that you ran this code on the Sim101 account in historical or backtest. As this value is only available in realtime.


        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

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