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 rocketman7, Today, 02:12 AM
      5 responses
      23 views
      0 likes
      Last Post rocketman7  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      7 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by samish18, 04-17-2024, 08:57 AM
      17 responses
      66 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by briansaul, Today, 05:31 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by PaulMohn, Today, 03:49 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X