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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      12 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      18 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      12 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      18 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X