Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting on tick data

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

    Backtesting on tick data

    Hi All,

    I have Kinetick tick data and I want to run my strategy that is set to CalculateOnBarClose=false.
    Does the Strategy Analyzer call the OnBarUpdate() every tick in my data?

    Thanks in advance

    #2
    Hello freewind,

    In a backtest, strategies call OnBarUpdate() only on bar close. CalculateOnBarClose = false is only used in real time operation.


    For intrabar granularity in a backtest you must add a secondary series that is smaller than the first, but all logic is still only processed on bar close.
    Last edited by NinjaTrader_RyanM1; 02-09-2011, 09:44 AM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Yes it can, if you use "add tick"

      Comment


        #4
        Baruch,
        What do you mean?

        BTW a hack that I thought about and seems to work is to use Tick bars of 1.

        Comment


          #5
          Why do you call it a hack? I use it all the time.
          What I mean is that if you want to trade form X min bars, but you have tight stops or target then add in initialize: Add(PeriodType.Tick, 1);
          Then you'll have secondary bars on which you can track your trades.

          Comment


            #6
            Baruch,

            When I am working with MTF strategies i generally set one time frame to 1 min, and i run all code within that BIP index. I will then reference the other time frames i work with from within the 1 min data, this seems to allow entry much more accurately than trying to say run a 15 min indicator within a 15 min BIP index. Does this make sense?

            I am basically trying to implement what Multicharts would have considered LIB=1 with Intrabar execution on.

            It appears to be working but with 10 years of 1 min data the results are obviously slow. I used to work with 5 min LIB on systems to start with and as they looked promising i would lower the LIB to 1 min but the tests would naturally take 5 times longer.

            It seems with NT that the setting of one min or 5 min does not affect total optimizer performance, which is strange since its 5 times the amount of data.......

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            61 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            40 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            21 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            23 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            51 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X