Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnEachTick vs OnBarClose Optimization

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

    OnEachTick vs OnBarClose Optimization

    From: https://ninjatrader.com/support/help...ime_vs_bac.htm

    "During backtest, strategies can ONLY be processed at the close of each bar."

    I am doing my best to decrease optimization time. Strategy analyzer is done on historical data, so will having my strategy set to "Calculate.OnEachTick" cause longer optimization times? Or will the speed of Calculate.OnEachTick also match the speed of Calculate.OnBarClose in strategy analyzer because only OHLC data is available?

    #2
    Hello thereyoflite1,

    Strategy analyzer is done on historical data, so will having my strategy set to "Calculate.OnEachTick" cause longer optimization times? Or will the speed of Calculate.OnEachTick also match the speed of Calculate.OnBarClose in strategy analyzer because only OHLC data is available?
    A backtest is always run OnBarClose so no matter what selection you have its going to be OnBarClose execution there. You can effectively simulate OnEachTick logic by using a secondary 1 tick series and programming the strategy accordingly but it will otherwise work OnBarClose for all series used. https://ninjatrader.com/support/help...ipt_strate.htm

    If you absolutely need to test OnEachTick logic it would be suggested to avoid the historical based tools and use a tool like playback so you can move forward through time like you would normally in realtime.

    Comment


      #3
      Hello,

      Thank you for your response. For the sensitivity of my testing, I'll probably end up using market replay to be most accurate.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      91 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      121 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      72 views
      0 likes
      Last Post PaulMohn  
      Working...
      X