Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SystemPerformance.AllTrades Collection Problem

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

    SystemPerformance.AllTrades Collection Problem

    I'd like to report that this is still a problem from the early beta which myself and someone else had both reported previously:



    When adding and running a strategy from the Control Center Strategies tab, the AllTrades collection is not populated, resulting in problems when trying to reference the last trade.

    Since System.Performance.AllTrades is always zero, referencing the last trade by means of SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1] gives the standard error:
    You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
    It works fine however, when you add and run a strategy from a Chart, and works fine in backtesting and optimization as well.

    Could you please flag this for fixing, and/or suggest a workaround? My problem is I use NT for automated trading, and it's so much easier to add/manage a portfolio of strategies from the Strategies tab as opposed to having a whole bunch of charts open, and a lot of my framework relies on this collection for both reporting and capital management/trade sizing.

    Thanks
    Last edited by wuileng; 11-25-2016, 02:47 PM.

    #2
    Hello wuileng,

    Thank you for your patience.

    I will check with development and report back here.

    Comment


      #3
      Hello wuileng,

      Thank you for your patience.

      You will need to enable the IncludeTradeHistoryInBacktest bool: http://ninjatrader.com/support/helpG...inbacktest.htm

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X