Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              152 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              87 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              131 views
              2 likes
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              127 views
              1 like
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              106 views
              0 likes
              Last Post CarlTrading  
              Working...
              X