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 Lumbeezl, 01-11-2022, 06:50 PM
    31 responses
    817 views
    1 like
    Last Post NinjaTrader_Adrian  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by swestendorf, Today, 11:14 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_Kimberly  
    Started by Mupulen, Today, 11:26 AM
    0 responses
    6 views
    0 likes
    Last Post Mupulen
    by Mupulen
     
    Started by Sparkyboy, Today, 10:57 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X