• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Rastus, Today, 10:27 PM
    0 responses
    2 views
    0 likes
    Last Post Rastus
    by Rastus
     
    Started by kloiuyvcp, Today, 09:54 PM
    0 responses
    2 views
    0 likes
    Last Post kloiuyvcp  
    Started by WNorton, Today, 06:53 PM
    0 responses
    10 views
    0 likes
    Last Post WNorton
    by WNorton
     
    Started by Jorge.andres.o, Today, 03:44 PM
    1 response
    18 views
    0 likes
    Last Post bltdavid  
    Started by r3n3v, Today, 06:30 PM
    1 response
    5 views
    0 likes
    Last Post r3n3v
    by r3n3v
     
    Working...
    X