Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying indicator on selected panel

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

    Displaying indicator on selected panel

    I tried to plot the following:
    protectedoverridevoid Initialize()
    {
    Add(EMA(StochRSI(Close,15) ,6));

    CalculateOnBarClose = false;
    }

    when I load this strategy onto a chart, the indicator is forced into the price panel which creates a problem with scalling...
    How can I force this to be plotted on a separate panel ... i.e. 2 or 3?

    Any help will be much appreciated.

    #2
    See the following post for some guidance in this area.

    RayNinjaTrader Customer Service

    Comment


      #3
      Assign Indicator to Specific Panel

      so from the above entries I attempted the following:
      protectedoverridevoid Initialize()
      {
      EMA(StochRSI(Close,15) ,6).panel = 2
      Add(EMA(StochRSI(Close,15) ,6));

      CalculateOnBarClose = false;
      }

      The result: "Error Generating Strategy" :
      Did not like this : EMA(StochRSI(Close,15) ,6).panel = 2

      what am I doing wrong?

      Comment


        #4
        "Panel" needs to be with a capital "P" is likely the problem.
        RayNinjaTrader Customer Service

        Comment


          #5
          Excellent that was the problem ... The Strategy compiles and runs fine. Thx!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by sidlercom80, 10-28-2023, 08:49 AM
          167 responses
          2,260 views
          0 likes
          Last Post jeronymite  
          Started by warreng86, 11-10-2020, 02:04 PM
          7 responses
          1,361 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Perr0Grande, Today, 08:16 PM
          0 responses
          5 views
          0 likes
          Last Post Perr0Grande  
          Started by elderan, Today, 08:03 PM
          0 responses
          9 views
          0 likes
          Last Post elderan
          by elderan
           
          Started by algospoke, Today, 06:40 PM
          0 responses
          10 views
          0 likes
          Last Post algospoke  
          Working...
          X