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 asd32, Today, 11:45 AM
      2 responses
      15 views
      0 likes
      Last Post asd32
      by asd32
       
      Started by GonzaloTradingSystems, Today, 05:30 AM
      1 response
      19 views
      0 likes
      Last Post GonzaloTradingSystems  
      Started by styvenrutchell, Today, 12:42 PM
      0 responses
      5 views
      0 likes
      Last Post styvenrutchell  
      Started by tkaboris, Today, 11:09 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by marco231, 03-20-2024, 03:56 PM
      5 responses
      159 views
      0 likes
      Last Post bnoisette  
      Working...
      X