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

Referencing ChartPanel in indicator

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

    Referencing ChartPanel in indicator

    Hello, i have an indicator which makes reference to the ChartPanel and the values

    ChartPanel.X
    ChartPanel.Y
    ChartPanel.ActualHeight

    and uses those values to render some lines in the lower region of the Price Chart panel where the indicator is loaded.

    This is working fine for me and most of colleagues - however have 1 or 2 cases where the scaling of the lines is off as if the ChartPanel values are off -
    do i need to specifically reference which ChartPanel or scale i need -
    given the chartpanel should be accessed for the panel where the script resides i did not see that as needed. Has anything changed in last few release up to and including 8.0.14.2 with regard to chartpanel and the values

    thanks

    #2
    Hello explorer101,

    Thank you for your note.

    Yes, there was a change. See,


    I would suggest your colleagues update to the newest version of NT and see if that resolves the issue.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      wondering also on this
      Last edited by soulfx; 08-01-2018, 04:11 AM.

      Comment


        #4
        Hello, could you please reference my original questions and which chartpanel to reference i have looked at the help pages on chartpanel and there is nothing obvious there i or best practice that i am not doing.
        It looks like it is getting its chartpanel values from somewhere else ? ie the X Y etc
        thanks

        Comment


          #5
          Hello explorer101,

          Chart Panel X and Y coordinates are for the panel on which the calling script resides, you do not need to specifically reference a chart panel.

          See,





          I would suggest you have all users upgrade to the most recent version and see if that resolves the discrepancy.

          Please let us know if you need further assistance.
          Alan P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          2 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          217 views
          1 like
          Last Post PaulMohn  
          Working...
          X