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 pechtri, 06-22-2023, 02:31 AM
      10 responses
      124 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Yesterday, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Yesterday, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Working...
      X