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 reynoldsn, 05-10-2024, 07:04 PM
|
6 responses
37 views
0 likes
|
Last Post
by reynoldsn
Today, 01:25 PM
|
||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
22 responses
179 views
0 likes
|
Last Post Today, 01:21 PM | ||
Started by ETFVoyageur, Today, 02:15 AM
|
5 responses
30 views
0 likes
|
Last Post Today, 01:06 PM | ||
Started by drnoggin, Today, 12:19 PM
|
1 response
14 views
0 likes
|
Last Post Today, 12:46 PM | ||
Started by synthhokie, Today, 12:00 PM
|
1 response
16 views
0 likes
|
Last Post Today, 12:31 PM |
Comment