Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding indcators to a strategy pane

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

    adding indcators to a strategy pane

    When I add a bollinger to the intialize area I only see the mid band, how do I add the upper and lower lines to the strategy chart window?

    Add(Bollinger(1.8,50));

    #2
    tinkerz, that should not be the case, if you Add() an indicator to display it would add the complete study including all plots - can you please recheck on a standalone chart with this strategy applied only?

    Comment


      #3
      Thanks it was me

      One more thing though.

      When I optimize for the period, myInput2, then add the RSI.

      The chart in the optimizer shows the default time from, 30 mins, not 20mins as in the myInput2 optimization parameter.

      Is this correct to do it this way?


      Add(PeriodType.Minute,myInput2);
      Add(RSI(Closes[1],myInput3,myInput4));

      Thanks

      Tinkerz

      Comment


        #4
        tinkerz,

        The primary series of the optimizer will be whatever is selected in the data series section. The code you posted is used for the secondary or added series.

        You can optimize on the primary series though. Set optimize on data series > true and then you can set the min, max, and increment values for it.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          When I use multiperiod charts in a strategy, my assumption is after you add the period type you then use closes to pick the data array.

          The add is drawing the RSI the same as the default chart period, 60 mins, and not 10.

          RSI(ES##-##,(60 min),4,4), where I am expecting 10mins

          Where is my error?

          myInput2=10; Min and Max are 10, the increment is 1

          myInput3 & myInput4 are optimized

          So that means my crossover code is on 60min as well

          Add(PeriodType.Minute,myInput2);
          Add(RSI(Closes[1],myInput3,myInput4));

          CalculateOnBarClose = true;

          if (BarsInProgress==0)
          {
          if(CrossBelow(RSI(Closes[1],myInput3,myInput4).Avg,70,1))
          {
          'some instruction
          }
          }

          Comment


            #6
            Its BarsArray, not closes

            Comment


              #7
              I still cant plot or take trades from

              Add(RSI(BarsArray[1],4,4));

              Is the code correct?

              Thanks

              Comment


                #8
                To plot multiseries indicators in a strategy: The multiseries part has to be within the indicator itself. The indicator sets plots based on the added series, and then the strategy adds the indicator.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                647 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                572 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                573 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X