Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to Retrieve Account Balance History in Code
Collapse
X
-
How to Retrieve Account Balance History in Code
How can I retrieve Account Balance History for last x days in my AddOn Code ?
Thanks
Tags: None
-
Hi, thanks for posting. The Account object only holds a single value, so you would need to store the CashValue data point with a timestamp in your own database system or .txt file. There are examples of file IO and an Excel dll example here:
This is a NinjaTrader 8 conversion of the BigMikeExcel tool created as an example to demonstrate NinjaTrader – Microsoft Excel interoperability that is found in the forums here. This script uses code that is not supported by the NinjaTrader Platform Support team.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
84 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
66 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment