Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

GetAccountValue doesn't get correct value

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

    GetAccountValue doesn't get correct value

    I could not get the correct value on GetAccountValue(AccountItem.CashValue,Currency.UsD ollar) code on my indicator. I am using a market replay connection and normally it has 100000 cash value. I have checked my connection and my code is this Replay101.GetAccountValue(AccountItem.CashValue,Cu rrency.UsDollar). I think it is correct but still it output $ 0. Need some help on this one.

    #2
    A value of 0 will always be returned on historical data. However when running real time replay data this does not count as historical.

    You can use this to print out the account value:
    Print(GetAccountValue(AccountItem.CashValue));

    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by gentlebenthebear, Today, 01:30 AM
    2 responses
    13 views
    0 likes
    Last Post gentlebenthebear  
    Started by Kaledus, Today, 01:29 PM
    2 responses
    8 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    16 views
    0 likes
    Last Post PaulMohn  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    2 responses
    56 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Working...
    X