Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    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 DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      40 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      10 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,615 views
      0 likes
      Last Post aligator  
      Working...
      X