Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Retrieve Cash Value

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

    Retrieve Cash Value

    How do I retrieve the cash value of the account? I'm using
    NinjaTrader.Cbi.Globals.Accounts[i].GetAccountValue(AccountItem.CashValue,Currency.Us Dollar).Value which returns a value of '0' when that account really has a cash value.

    #2
    Hello Mike Winfrey,
    If you try the below code then are you able to retrieve the correct value.
    Code:
    this.GetAccountValue(AccountItem.CashValue);


    The Account class is not officially supported and thus not documented.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thank you...I see what the problem is...
      "A value of 0 will be returned on historical bars."

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      59 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X