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 Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by alifarahani, Today, 09:40 AM
    5 responses
    23 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X