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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        66 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X