Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest Strategy - Strategy Analyzer

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

    Backtest Strategy - Strategy Analyzer

    Hi,

    Is it possible to backtest strategy with "Enter on Bar Open" using Strategy Analyzer?

    #2
    No.

    (Btw, welcome to the forums!)

    I mean, um, you won't find any terminology like that, sooo ... as to the wording of
    your question -- the answer is a soft "no".

    Why a 'soft' no?
    Because, NinjaTrader defines "on bar close" and "on bar open" as the exact
    same event -- or more precisely, it is the first tick of a new bar that is precisely
    recognized, and it is that tick that drives the "on bar close" event -- the first tick
    of a new bar is, by definition, doing double duty in the internal code.

    Strategy Analyzer executes your strategy in such a way that your OnBarUpdate is
    called in "on bar close" mode -- in fact, this mode is the only mode supported by
    Strategy Analyzer.

    [This discussion presumes you're well aware of the Calculate mode setting and
    what it means and how it is used. My point is, Strategy Analyzer ignores the
    Calculate setting and always runs your Strategy in OnBarClose mode -- but,
    technically, even this can be altered somewhat if you enable TickReplay.]

    Anyways, the final answer is "yes", except that NinjaTrader prefers terminology
    that refers to "on bar close", not "on bar open".
    Last edited by bltdavid; 02-01-2022, 06:11 AM.

    Comment


      #3
      Hi nelubiwa, thanks for posting.

      The strategy analyzer will always run OnBarClose. We have an example of intrabar backtesting below:


      Kind regards,
      -ChrisL
      Chris L.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cre8able, Today, 03:20 PM
      0 responses
      5 views
      0 likes
      Last Post cre8able  
      Started by Fran888, 02-16-2024, 10:48 AM
      3 responses
      47 views
      0 likes
      Last Post Sam2515
      by Sam2515
       
      Started by martin70, 03-24-2023, 04:58 AM
      15 responses
      114 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by The_Sec, Today, 02:29 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by jeronymite, 04-12-2024, 04:26 PM
      2 responses
      31 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X