Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detecting which Panel an Indicator Is On

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

    Detecting which Panel an Indicator Is On

    Hello,

    Is there a NinjaTrader Variable we can read to tell which Panel an indicator is displaying on?

    I am trying to detect whether the user dragged an indicator onto Price Action so that I can changed how the indicator is displayed.

    Thank you.

    #2
    Originally posted by montana View Post
    Hello,

    Is there a NinjaTrader Variable we can read to tell which Panel an indicator is displaying on?

    I am trying to detect whether the user dragged an indicator onto Price Action so that I can changed how the indicator is displayed.

    Thank you.
    Code:
    int this.Panel;

    Comment


      #3
      Welcome to our forums here montana, there would be no supported NinjaScript property but you can look into the suggest this.Panel / this.PanelUI ones. Panel would be 0 based, while the UI one would start from a base of 1.

      Comment


        #4
        Originally posted by NinjaTrader_Bertrand View Post
        Welcome to our forums here montana, there would be no supported NinjaScript property but you can look into the suggest this.Panel / this.PanelUI ones. Panel would be 0 based, while the UI one would start from a base of 1.
        Have checked this. For both "this.Panel" and "this.PanelUI", the price panel returns the value -1, whereas the values for the panels below the price panel are in line with the values indicated in the indicator dialogue box.

        Comment


          #5
          Harry,

          This is true when using "Same as Input Series" for the Panel setting in the indicators

          Here's what my testing shows -

          Panel: "Same as Input Series"
          Panel = -2
          PanelUI = -1

          Panel: 1
          Panel = 0
          PaneUI = 1

          Panel: 2
          Panel = 1
          PanelUI = 2
          Cal H.NinjaTrader Customer Service

          Comment


            #6
            You are correct. I did not make the difference between panel 1 and price panel, because the price panel is usually panel 1.

            Of course there can be a difference. Thank you again for your answer.
            Last edited by Harry; 02-26-2015, 05:12 PM.

            Comment

            Latest Posts

            Collapse

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