Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy backtest trade assumptions

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

    strategy backtest trade assumptions

    While doing Ninjatrader backesting, is it possible to configure such that whenever OnBarUpdate() generates EnterLong() or EnterShort(), the backtesting P&L assumes that a "market order" was filled at the "Open" of the very next bar?

    #2
    Originally posted by uday12 View Post
    While doing Ninjatrader backesting, is it possible to configure such that whenever OnBarUpdate() generates EnterLong() or EnterShort(), the backtesting P&L assumes that a "market order" was filled at the "Open" of the very next bar?
    I'm pretty sure that this is exactly what happens when CalculateOnBarClose=True.

    And, you're in luck, the Strategy Analyzer window (where you do all your backtesting) always assumes CalculateOnBarClose=True. I mean, the property grid in the Straegy Analyzer window doesn't even show this property.

    However, if you want to experiment with the settings in the Historical Fill Processing section, changing 'Fill type' from Default to Liberal may affect what you're looking for.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PaulMohn, Today, 03:49 AM
    0 responses
    3 views
    0 likes
    Last Post PaulMohn  
    Started by inanazsocial, Today, 01:15 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by rocketman7, Today, 02:12 AM
    0 responses
    10 views
    0 likes
    Last Post rocketman7  
    Started by dustydbayer, Today, 01:59 AM
    0 responses
    2 views
    0 likes
    Last Post dustydbayer  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    23 views
    0 likes
    Last Post trilliantrader  
    Working...
    X