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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      476 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      317 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      254 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      340 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      306 views
      0 likes
      Last Post CarlTrading  
      Working...
      X