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 argusthome, Yesterday, 10:06 AM
      0 responses
      14 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      11 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      9 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      4 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      31 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X