Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last Trade Type

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

    #16
    Originally posted by NinjaTrader_Bertrand View Post
    spaceTrader, I'm sorry. Thanks for ringing my bell here. This is something that the Trade class would provide as well, each trade would have an entry and exit IExecution object to offer to check for example the execution time and compare - http://www.ninjatrader.com/support/h.../nt7/trade.htm

    The pairing itself on the strategy level is done by signal name, however in the account performance reports you would see it strictly done on the FIFO principle.
    One quick glance at the example in given link - It is evaluating the trade in OnBarUpdate(), this is something i am already struggling to get rid of. I guess i want it to do in OnExecution(), would it be possible and will it give me correct result in Historeical data Backtesting process ?

    Comment


      #17
      spaceTrader, yes you can access it in this context as well, and it would also be called in historical processing. However the updated trade would be guaranteed to be included only is the position update is fully processed, that is on the next OnBarUpdate call then.

      Generally this sequence would be seen as orders / execution / positions are processed -

      OnOrderUpdate() > OnExecution() > OnPositionUpdate()

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      673 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      577 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X