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 Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,788 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,293 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    12 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X