Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate tick-based indicators on historical bars

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

    Calculate tick-based indicators on historical bars

    Hi. Will the ability to calculate historical tick-based indicator values be available sometime in the future? This would be of great help for indicator development and strategy backtesting. Neoticker has this feature as an option for a chart, since it's a bit of a CPU hog to recreate the historical periods tick by tick.

    Thank you.


    Regards,

    #2
    This is on our list for the future.
    RayNinjaTrader Customer Service

    Comment


      #3
      tick-based indicators

      Originally posted by NinjaTrader_Ray View Post
      This is on our list for the future.
      Hi Ray,

      Can you explain this a bit more? I am developing a number of tick based indicators (1 tick/bar. It seems to work with live data (Sim feed), but I am having considerable problems back testing it. Is that what this thread is about? That one cannot backtest tick based indicators?

      I haven't come across any such restrictions against tick based indicators in the NT documentation . I'd appreciate it if you can point me to that.

      Cheers

      Comment


        #4
        Currently on historical tick data, we have price, volume and time. In the future, we will add at least two more properties, ask and bid at the time of the tick so people can do historical bid/ask volume analysis on indicators.
        RayNinjaTrader Customer Service

        Comment


          #5
          tick-based indicators

          Originally posted by NinjaTrader_Ray View Post
          Currently on historical tick data, we have price, volume and time. In the future, we will add at least two more properties, ask and bid at the time of the tick so people can do historical bid/ask volume analysis on indicators.
          Thanks Ray.

          This doesn't seem to explain my problems with the backtesting of my indicators. I will try to get more info first, before I trouble you with it.

          Thanks again.

          Cheers

          Comment


            #6
            Isn't it also the case that when historical periods are loaded, only the OHLC for the period are utilized for calculating indicators?

            That is, if you have an indicator that runs OnBarUpdate on each tick (CalculateOnBarClose = false), historical periods will not be processed in the same manner as real-time periods.

            Comment


              #7
              During a backtest, data is *always* calculated on a bar by bar basis, the equivalent of the CalculateOnBarClose property set to a value of true.
              RayNinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Ray View Post
                Currently on historical tick data, we have price, volume and time. In the future, we will add at least two more properties, ask and bid at the time of the tick so people can do historical bid/ask volume analysis on indicators.
                By this do you also mean that in forex tick backtest spreads are not taken into account, or is the spread used simply the current/last active spread?

                Comment


                  #9
                  In a backtest, all we know is OHLC. We do not know bid/ask data thus, you can only simulate a historical fill based on the OHLC data.
                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    I've been looking through a few similar topics. Is it true that it's not possible to backtest a strategy let's say on 10 min bars, having them filled using real historical tick data, so that OnBarUpdate is called for every tick?

                    If it's not possible in NT 6, is it improved in version 7?

                    Originally posted by NinjaTrader_Ray View Post
                    In a backtest, all we know is OHLC. We do not know bid/ask data thus, you can only simulate a historical fill based on the OHLC data.

                    Comment


                      #11
                      As I have written earlier, this is a key missing feature.

                      The good thing is that all the basic building blocks are already in place. The replay mode is doing exactly that. However the historical data load or backtesting does not pump in tick by tick data.

                      NT will have to start maintaining the relative order of the bid-ask-price ticks in the NT historical database used for pumping historical data.

                      Also for indicators which require it, the tick by tick data will have to be pumped in. During the recreation of historical bars, indicators which do not need tick by tick data can still operate on a barclose basis; only indicators which genuinely need tick by tick data need all the ticks. This potentially is an additional property (e.g. ReBuildUsingTickData).

                      There can be indicators for which we want CalculateOnBarClose = false in real-time but it is OK to do it on a bar by bar basis when rebuilding historical value (RebuildUsingTickData = false). OTOH there are other indicators which will require tick by tick data both during historical periods and real-time. These are primarily which build up aggregate statistics (e.g. VWAP, volume profile, market delta etc.).

                      Comment


                        #12
                        aviat72, thanks for clarification!

                        what about NT7 ?

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by briansaul, Today, 05:31 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post briansaul  
                        Started by fwendolynlpxz, Today, 05:19 AM
                        0 responses
                        4 views
                        0 likes
                        Last Post fwendolynlpxz  
                        Started by traderqz, Yesterday, 12:06 AM
                        11 responses
                        28 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by PaulMohn, Today, 03:49 AM
                        0 responses
                        8 views
                        0 likes
                        Last Post PaulMohn  
                        Started by inanazsocial, Today, 01:15 AM
                        1 response
                        10 views
                        0 likes
                        Last Post NinjaTrader_Jason  
                        Working...
                        X