Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Retrieve Account Balance History in Code

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

    How to Retrieve Account Balance History in Code

    How can I retrieve Account Balance History for last x days in my AddOn Code ?

    Thanks

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    84 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    66 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Working...
    X