Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecution() on Historical Data?

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

    OnExecution() on Historical Data?

    I am writing strategies and I want to capture the entry price and PNL stats on the orders and write them out to a file. Since I am debugging the code in historical mode-I am not clear which order-related events fire the same in historical mode vs real time.

    Do all the events, particularly the OnExecution() events work (or work the same) on historical data?

    Can you comment on which order-related events and methods DON'T work the same when processing historical data?
    Jim-Boulder
    NinjaTrader Ecosystem Vendor - Elephant Tracks

    #2
    Jim-Boulder, OnExecution() will work exactly the same from backtest to real-time. The only methods that I am aware of that do not work the same are OnMarketData(), OnMarketDepth(), OnFundamentalData(), GetCurrentAsk() and GetCurrentBid(), because these are real-time events only.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    120 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    174 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    92 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    134 views
    0 likes
    Last Post cmoran13  
    Working...
    X