Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TradePerformanceReport for historical trades in an indicator

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

    TradePerformanceReport for historical trades in an indicator

    Would it possible to create an instance of TradePerformanceReport in an indicator and use that get historical trade data from various accounts.

    I've seen in the manual and other posts that it's not possible to directly get historical trade data from the internal database. However, TradePerformanceReport does it so maybe there is a way to work with this object to get the data desired programmatically.

    I'm sure this would be an advanced programming solution, but if someone has done it or any of the Ninja folks could steer in the right direction I'm sure many of us would appreciate it.

    Thanks!
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,

    Thank you for the post.

    While I dont believe there is any exposed method to directly create the TradePerformanceReport, You could look into the Account objects methods and iterate over the various collections that an account has such as the Executions collection. https://ninjatrader.com/support/help...unt.executions


    I look forward to being of further assistance.

    Comment


      #3
      Thanks for the quick reply Jesse.

      This is where I started. Unfortunately, the Executions and Orders collections are not able to reach into the local database and get the historical executions or orders. If accessed before any new orders have been placed since starting Ninja these collections will have a count of 0.

      Any other ideas?
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        Hello daqu40,

        Thank you for the reply.

        Unfortunately not, if the orders are not contained in the accounts collections it would be unavailable to NinjaScript from a documented/supported standpoint. There is nothing I could suggest to dig further into the database from NinajScript specifically. The account object would basically be the highest level access to the various collections that are available in NinjaScript.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X