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.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    1 view
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,770 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    944 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    11 views
    0 likes
    Last Post Max238
    by Max238
     
    Working...
    X