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!
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
NinjaTrader
GetAccountValue doesn't get correct value
Collapse
X
-
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.Tags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by frankthearm, Yesterday, 09:08 AM
|
14 responses
47 views
0 likes
|
Last Post Today, 02:19 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:05 PM | ||
Started by Kaledus, Today, 01:29 PM
|
2 responses
8 views
0 likes
|
Last Post
by Kaledus
Today, 02:04 PM
|
||
Started by PaulMohn, Today, 12:36 PM
|
2 responses
16 views
0 likes
|
Last Post
by PaulMohn
Today, 01:48 PM
|
||
Started by Conceptzx, 10-11-2022, 06:38 AM
|
2 responses
56 views
0 likes
|
Last Post
by PhillT
Today, 01:47 PM
|
Comment