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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        56 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X