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 helpwanted, Today, 03:06 AM
            0 responses
            0 views
            0 likes
            Last Post helpwanted  
            Started by Brevo, Today, 01:45 AM
            0 responses
            6 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            5 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            242 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            384 views
            1 like
            Last Post Gavini
            by Gavini
             
            Working...
            X