Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting different bar lengths

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

    Setting different bar lengths

    When constructing a strategy, how do you set different bar lengths. for example, close of a 1 minute bar compared to the open of the current 30 minute bar, or day bar. Also, is the close of the current bar updarted at every tick?

    #2
    Hello,

    When constructing a strategy, how do you set different bar lengths. for example, close of a 1 minute bar compared to the open of the current 30 minute bar, or day bar.
    >>Please review this link:


    Also, is the close of the current bar updarted at every tick?
    >>Generally speaking yes if you have CalculateOnBarClose set to False:
    http://www.ninjatrader-support.com/H...BarClose1.html
    Note that if you are using multiple bar types this behaves a bit differently so you should review the previous multtimeframe link regarding this as well.
    DenNinjaTrader Customer Service

    Comment


      #3
      Thanks - another question

      Sometimes I use PAR SAR as triggers, which can trigger anywhere in the bar, but are relative the the value of the last bar. Is there a way to have the value reported at trade in backtesting be relative the to PAR SAR value of teh previous bar?

      Comment


        #4
        If you want the value of the previous bar use the [1] indexing. [0] is for current bar. [1] is previous bar. [2] is the bar before that. etc.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Bars with different time frames

          With regards to using bars with different time frames - i.e. 1 minute bar and 5 minute bare in the same strategy, how is this done using the wizard - don't think I could write code at this point.

          Jeff

          Comment


            #6
            When you select an indicator you have a parameter called "Bars ago". Type in 1 or 2 etc. 0 is for the current bar.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Bar times

              Ok - I think I have seen that, as in bars ago - but i did not see how to change the Bar length - for example close of current 1 minute bar greater than open of the current 5 minute bar

              Comment


                #8
                Multi-time frame strategies is not available in the Strategy Wizard. Unfortunately you can only access this through programming.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  uh ohhh

                  Looks like i have a steep learning curve - that can be added into a strategy made with the wizard after it is done right?

                  What are the best webinars to learn the rogramming side?

                  Jeff

                  Comment


                    #10
                    Jeff,

                    It can be done after the wizard. Unfortunately there are no webinars for the programming aspect. We have a webinar for how to do things with the Strategy Wizard though. It is held ever other Tuesday. Feel free to join us.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by mgco4you, Today, 09:46 PM
                    1 response
                    2 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by wzgy0920, Today, 09:53 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post wzgy0920  
                    Started by Rapine Heihei, Today, 08:19 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by Rapine Heihei, Today, 08:25 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Rapine Heihei  
                    Started by f.saeidi, Today, 08:01 PM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Working...
                    X