Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multitime frame question

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

    Multitime frame question

    What should the value of "Minimum Bars" in the back-test window
    when I have 2 indicators from different time-frames?

    For example, a daily SMA(13) and a weekly SMA(5).
    Or a daily SMA(5) and a weekly SMA(13).

    What is the required Minimum Bars value in both these cases? Assuming my primary data series is daily.

    #2
    Hello,

    Thank you for your note.

    For an accurate calculation, you will want the minimum to be the mimimum SMA, so if you have a daily SMA(13) and Weekly SMA(5), you want to use 13 as the minimum becuase the SMA(13) needs 13 bars to calculate correctly.
    So, in your second case, you would use 5 for the daily SMA (5).
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      If I put 5 as the minimum in the second case, there won't be enough bars
      for the Weekly SMA(13).
      Is that correct or am I not understanding this correctly?

      Comment


        #4
        Hi mjtrader,

        Sorry, you are correct.

        You need enough data for the longer time frame, not the shorter.
        Ray S.NinjaTrader Customer Service

        Comment


          #5
          So, in the first case, do i put 5 or 13?
          With 5, there won't be enough bars for the daily SMA(13).
          With 13, won't the simulator unnecessary wait 13 weeks to start backtesting?

          There is one minimum parameter that is being applied to both time-frames.

          Comment


            #6
            mjtrader,

            To clarify, you have one setting to determine the minimum. By default it is 20. When set to 20, you need at least 20 bars across all instruments and time frames before anything will happen.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Drone360x, Today, 10:27 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by Salahinho99, Yesterday, 04:13 AM
            2 responses
            23 views
            0 likes
            Last Post Salahinho99  
            Started by truepenny, Today, 03:45 AM
            4 responses
            21 views
            0 likes
            Last Post truepenny  
            Started by nightstalker, 05-04-2024, 02:05 PM
            4 responses
            45 views
            1 like
            Last Post Leeroy_Jenkins  
            Started by NUVERSA, Today, 10:08 AM
            2 responses
            12 views
            0 likes
            Last Post NUVERSA
            by NUVERSA
             
            Working...
            X