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 reynoldsn, 05-10-2024, 07:04 PM
    6 responses
    37 views
    0 likes
    Last Post reynoldsn  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    22 responses
    179 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by ETFVoyageur, Today, 02:15 AM
    5 responses
    30 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by drnoggin, Today, 12:19 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by synthhokie, Today, 12:00 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X