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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X