Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Panel index of price panel

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

    Panel index of price panel

    In most cases the price panel will be the panel with the panel index 0.

    However, in those rare cases where the price panel is not the first panel on the chart, the panel index of the price panel will be greater than 0.

    Is it possible to access the panel index of the price panel programmatically?

    #2
    Hello,

    This is a good question that I am not certain of, there is no specific property that comes to mind.

    I will review this further and see what I can locate.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for your quick reply. Please let me know, if there is an answer.

      The reason that I am asking this question is that formatting of price markers should be done in a different way on the price panel compared to secondary indicator panels.

      Comment


        #4
        Hello,

        I wanted to reply back on this item.

        It seems this was a simple property that just slipped my mind. The ChartBars object is a reference to the Primary series. In this object is the Panel property.

        Code:
        ChartBars.Panel

        That would reference the primary bars, and in case you need to know the panel of an indicator that would be:

        Code:
        ChartPanel.PanelIndex



        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Jesse,

          Thank you for your help. ChartBars.Panel was exactly what I was looking for.

          I understand that ChartBars.Panel and ChartPanel.PanelIndex should not be used before the state State.DataLoaded has been reached.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by tsantospinto, 04-12-2024, 07:04 PM
          6 responses
          98 views
          0 likes
          Last Post tsantospinto  
          Started by rocketman7, Today, 02:12 AM
          5 responses
          25 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by ZenCortexReal, Today, 08:54 AM
          0 responses
          1 view
          0 likes
          Last Post ZenCortexReal  
          Started by ZenCortexReal, Today, 08:52 AM
          0 responses
          0 views
          0 likes
          Last Post ZenCortexReal  
          Started by trilliantrader, 04-18-2024, 08:16 AM
          7 responses
          28 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X