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 ghoul, Today, 06:02 PM
      2 responses
      12 views
      0 likes
      Last Post ghoul
      by ghoul
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      180 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X