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 kevinenergy, 02-17-2023, 12:42 PM
          116 responses
          2,757 views
          1 like
          Last Post kevinenergy  
          Started by franatas, 12-04-2023, 03:43 AM
          7 responses
          106 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by jpapa, Today, 07:22 AM
          0 responses
          3 views
          0 likes
          Last Post jpapa
          by jpapa
           
          Started by Jltarrau, Today, 05:57 AM
          3 responses
          8 views
          0 likes
          Last Post Jltarrau  
          Started by f.saeidi, Today, 05:56 AM
          2 responses
          8 views
          0 likes
          Last Post NinjaTrader_Erick  
          Working...
          X