Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
      BertrandNinjaTrader Customer Service

      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 Perr0Grande, Today, 08:16 PM
            0 responses
            0 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            3 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            9 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X