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 Karado58, 11-26-2012, 02:57 PM
              8 responses
              14,825 views
              0 likes
              Last Post Option Whisperer  
              Started by Option Whisperer, Today, 09:05 AM
              0 responses
              1 view
              0 likes
              Last Post Option Whisperer  
              Started by cre8able, Yesterday, 01:16 PM
              3 responses
              11 views
              0 likes
              Last Post cre8able  
              Started by Harry, 05-02-2018, 01:54 PM
              10 responses
              3,203 views
              0 likes
              Last Post tharton3  
              Started by ChartTourist, Today, 08:22 AM
              0 responses
              6 views
              0 likes
              Last Post ChartTourist  
              Working...
              X