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 samish18, 04-17-2024, 08:57 AM
              16 responses
              55 views
              0 likes
              Last Post samish18  
              Started by arvidvanstaey, Today, 02:19 PM
              3 responses
              10 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by jordanq2, Today, 03:10 PM
              2 responses
              8 views
              0 likes
              Last Post jordanq2  
              Started by traderqz, Today, 12:06 AM
              10 responses
              18 views
              0 likes
              Last Post traderqz  
              Started by algospoke, 04-17-2024, 06:40 PM
              5 responses
              47 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X