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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            82 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            43 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            68 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            56 views
            0 likes
            Last Post CarlTrading  
            Working...
            X