Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Would someone care to explain this please ? (backtesting flaw)

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

    Would someone care to explain this please ? (backtesting flaw)

    Hi,
    this is not to throw the blame at Ninjatrader which is certainly one of the top backtesting system arround.

    I don't understand why the system must wait until bar close to enter a trade on the next bar ?

    When looking for a backtesting engine, I simply wanted to simulate entering a trade at bar opening, providing X Y conditions where met. This turned to be impossible since It will only enter next bar opening. The problem is that on next bar open more often than not, my conditions are not valid anymore, making the backtest almost useless.

    I could analyse any bar open manually and decide to simulate an entry or not. Why can't the backtest do this ? What's the specific reason ?

    I know the intrabar granularity method, but it makes the whole process much more complicated for a non programmer.

    Cordially,
    DUVAL

    #2
    Hi Duval,

    This is the way accurate backtesting works, we have to wait for a bar to close to issue orders for the next bar, otherwise you would have to deal with a lot of assumptions of market behavior inside the bars...

    That being said, you can of course prepare on order to be executed at the bar's open + / - some type of offset...

    Though backtesting with 2 datastreams is more work like you mentioned, it gives you more control of what is happening inside your bigger timeframe bars and what potential action that means for your strategy execution...
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by nandhumca, Today, 03:41 PM
    0 responses
    3 views
    0 likes
    Last Post nandhumca  
    Started by The_Sec, Today, 03:37 PM
    0 responses
    3 views
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    33 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    36 views
    0 likes
    Last Post frankthearm  
    Working...
    X