Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

need to have Range bar as input in Indicator/Strategy

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

    #16
    MoreYummy,

    No, you do not program it as an input. There is only one input for scripts. If you want additional bars you add it as a secondary bar series. This is not to be confused with as another "input".

    Please see here: http://www.ninjatrader-support.com/H...ameInstruments
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      Ok.

      So using a second time series's data to calculate whatever is needed.

      That still looks like a second input, that is independent of what is on the chart(which is 1st input)...

      Comment


        #18
        Correct. You would use the secondary bar series to do what you want.

        It may just be terminology here, but we do not consider this an "input" because you can't "input" it from via the UI in the same sense as how you can control the primary series. Regardless, I believe we are on the same page now.
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          yea, we have nailed it.

          going to read the documents.

          Comment


            #20
            A question from my side.
            If you want to have a strategy based on a range chart, you have to put that range chart on. And then with 'Add', your're adding minutes charts or whatever.
            But is it also possible to add a second range chart. So would work this?

            Chart loaded: 5 range, with the following strategy

            protected override void Initialize()
            {
            Add(PeriodType.Minute, 30); //BarsArray[1]
            Add(PeriodType.Minute, 120);//BarsArray[2]
            Add(PeriodType.Range, 25);//BarsArray[3]
            }

            Comment


              #21
              no111,

              There would be no issue doing that.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by inanazsocial, Today, 01:15 AM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by rocketman7, Today, 02:12 AM
              0 responses
              5 views
              0 likes
              Last Post rocketman7  
              Started by dustydbayer, Today, 01:59 AM
              0 responses
              1 view
              0 likes
              Last Post dustydbayer  
              Started by trilliantrader, 04-18-2024, 08:16 AM
              5 responses
              22 views
              0 likes
              Last Post trilliantrader  
              Started by Davidtowleii, Today, 12:15 AM
              0 responses
              3 views
              0 likes
              Last Post Davidtowleii  
              Working...
              X