Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Using Close in multi time frame

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

    Using Close in multi time frame

    What is the sytax for using Close in multi time frame.

    Close(BarrsArray[2])[0] does not work and I can't find what will?

    Thansk.

    #2
    Try Closes[1][0].
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks

      I now have if (Closes[2][0] > Bollinger(StDevs, Level).Lower[0])

      which complies but do I also need to reference the Bollinger lines to 2nd Time frame and if so how do I do that one.

      Thanks,

      Comment


        #4
        Try with the BarsArray[] you were using earlier. Please review this article on how to use multi-time frame/instrument strategies: http://www.ninjatrader-support.com/H...struments.html
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          in the newer versions of ninja if I want to use a 1 minute and a 15 minute timeframe, can the 1 minute be index position [1]? This would be most helpful as only one alogorithm comes from the 1 minute time frame which will make the coding a lot simpler if this can be done. In the back of my mind I have the idea it can?

          Comment


            #6
            Yes, just apply the strategy to 15 min series and in Initialize() you would add the 1 minute series.
            RayNinjaTrader Customer Service

            Comment


              #7
              Super thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Jonafare, 12-06-2012, 03:48 PM
              5 responses
              3,986 views
              0 likes
              Last Post rene69851  
              Started by Fitspressorest, Today, 01:38 PM
              0 responses
              2 views
              0 likes
              Last Post Fitspressorest  
              Started by Jonker, Today, 01:19 PM
              0 responses
              2 views
              0 likes
              Last Post Jonker
              by Jonker
               
              Started by futtrader, Today, 01:16 PM
              0 responses
              8 views
              0 likes
              Last Post futtrader  
              Started by Segwin, 05-07-2018, 02:15 PM
              14 responses
              1,792 views
              0 likes
              Last Post aligator  
              Working...
              X