Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range Chart minute bars

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

    Range Chart minute bars

    running a strategy on a Range bar Chart. I want to use an indicator on a minute chart for a filter.. Any references?

    #2
    gg80108,

    Please see this article on creating multi-time frame strategies: http://www.ninjatrader-support.com/H...ameInstruments
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      there is a sampleMultitimeframe strategy, I was looking at.. More then one way to skin a cat so the two examples look vaguely familiar..
      Here is what I'm doing .. looking for a 30m bar of :BBS(2,1.5,5).BarValues.Get(CurrentBar).. Any hints? Tried several mutantations but cant get it to complie
      thought it might look something like this

      ADD(BBS(2,1.5,5).BarValues.Get(CurrentBar),PeriodT ype.Minute,30);

      Comment


        #4
        Please look at the link I provided earlier and pay attention to the BarsArray section.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I'm using the current chart futures symbol., with my index[0] (current chart interval) I get the correct values ie: My DrawText shows the correct values.. The index set to [1],, the values are always 0. I can plot the BBS on a 30 minute and it isnt 0.

          Here is my code.

          Initialize
          Add(PeriodType.Minute, 30)


          OnBarUpdate()
          if (BarsInProgress != 0)
          return;


          if (BBS(BarsArray[1],2,1.5,20). BarValues.Get(CurrentBar)> 0)
          BullLTT = true;

          DrawText("TI"+ CurrentBar, "TI "+ BBS(BarsArray[1],2,1.5,20). BarValues.Get(CurrentBar).ToString("0.00") , 0,High[0]+ TickSize *25, Color.Black);
          - Show quoted text -

          Comment


            #6
            gg80108,

            We do not know how your custom indicator is programmed. Please just use the SMA() indicator to see how it is suppose to work. Also, you need to be sure you have enough 30 minute bars to run your strategy. By default you need at least 20 bars on all of your bar series.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Started with SMA works good, course its a straight forward indicator with the return value straight forward,,,
              Does it mean anything that it works on [0] but doesn't [1].. seems like its almost there or maybe this doesn't work on other time frames if the indicator doesn't have a straightforward return..
              Loading 10 days of range bar 10 on the chart.

              Comment


                #8
                SMA() indicator should work on all of your bar series. BarsArray determines which bars series you are running on.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Thats great, but I don't want a Simple Moving Average, I want the BBS on a 30 min chart.

                  Comment


                    #10
                    Please use the SMA to see how it works. Ensure it works on BarsArray[1]. Then you do the same thing on BBS. If it works on SMA and not on BBS then it is an issue with your custom indicator. Unfortunately we are not qualified to make any statements on your custom indicator since we have no idea what it does or how it is programmed.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Txs for the tips,,, SMA,CCI, etc work.... BBS ,, thumbs down...

                      Comment


                        #12
                        gg80108,

                        Please try contacting the original author to see if you can get help with that indicator.
                        Josh P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        558 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        324 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        101 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        545 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        547 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X