Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 B6 - SystemPerformance.AllTrades doesn't work in Strategy Tab

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

    NT8 B6 - SystemPerformance.AllTrades doesn't work in Strategy Tab

    When a strategy is added to a chart, AllTrades and Trade work fine. I get the results of the last trade printed.

    When a strategy is added to the Control Center Strategy Tab - it does not work. I always get 0.

    Attached is some sample code that takes a LONG trade at 10:00am candle and should reverse.

    This is a finding I found out of re-testing this stuff: http://ninjatrader.com/support/forum...d.php?p=437119



    Code:
    		protected override void OnPositionUpdate(Position position, double averagePrice, int quantity,
    												 MarketPosition marketPosition )
    		{
    ...
    Trade lastTrade  = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1];
    					//Trade firstTrade = Performance.AllTrades.LosingTrades[0];
    					Print ( "OnPositionUpdate  A LastTrade was "+ lastTrade.ProfitPoints );
    *This is of course in Playback-Market Replay. I guarantee poor results running this strategy in live.
    Attached Files
    Last edited by sledge; 11-14-2015, 12:32 PM.

    #2
    Hello sledge,

    Thank you for writing in. I will investigate this behavior further and update this post when I have additional information.

    Thank you for your continued patience in the meantime.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hello sledge,

      I have confirmed this behavior and submitted a bug report. I will update this post when I have further information.
      Michael M.NinjaTrader Quality Assurance

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MGHORBEL, Yesterday, 11:16 AM
      1 response
      13 views
      0 likes
      Last Post MGHORBEL  
      Started by MGHORBEL, Today, 06:41 AM
      0 responses
      1 view
      0 likes
      Last Post MGHORBEL  
      Started by ETFVoyageur, 05-03-2024, 04:00 PM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by llanqui, 05-03-2024, 09:59 AM
      9 responses
      43 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by AaronKTradingForum, 05-03-2024, 03:44 PM
      2 responses
      30 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X