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 traderqz, Today, 12:06 AM
              2 responses
              3 views
              0 likes
              Last Post traderqz  
              Started by RideMe, 04-07-2024, 04:54 PM
              5 responses
              28 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by f.saeidi, Today, 08:13 AM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by DavidHP, Today, 07:56 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by kujista, Today, 06:23 AM
              3 responses
              11 views
              0 likes
              Last Post kujista
              by kujista
               
              Working...
              X