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 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