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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    12 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X