Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying two indicators in the same panel

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

    Displaying two indicators in the same panel

    I am creating a strategy where I want to display two indicators on the chart, both in panel 2.

    I found this example code:

    VOLMA(20).Panel = 2;
    Add(VOLMA(20)); which seems to suggest I specify the panel as shown above. But when I type VOLMA(20), it does not offer me "Panel" as one of the properties.

    Any help would be appreciated.

    #2
    It may not show it, but it is there and that is proper usage.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Perhaps a different problem

      Josh

      Thanks for your response. It works fine if I try it with the example you gave, e.g. VOLMA, but I have created my own indicator and it does not work with that. Here is the code, which is in the Initialize section:

      MyMACDLong.Panel = 2;
      Add(MyMACDLong());

      The error I get is:

      'NinjaTrader.Strategy.Strategy.MyMACDLong()' is a 'method', which is not valid in the given context CS0119 - click for info

      I should add that the indicator itself works fine - the error message relates to the line where I try to specify the panel.

      Thank you

      Comment


        #4
        Josh

        Ignore my last message - I have found out what I was doing wrong!!!

        Thanks. No reply needed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        607 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        353 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X