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

How to change/set ChartPanel.(X/Y/W/H) via code?

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

    How to change/set ChartPanel.(X/Y/W/H) via code?

    Hello,

    I'm trying to change an existing chart panel's X/Y/W/H values via code, but I keep running into the following error:

    Property or Indexer "NinjaTrader.Gui.Chart.ChartPanel.Y" cannot be assigned to -- it is read only
    my understanding of this error is that normally I would have to create another instance of what ever I'm trying to assign a value to, and then give that instance the value. Unless, I'm not clear on this, I do not see how that is a viable option in this case. What I'm trying to do is resize the height and alter the Y coordinate of an indicator's chart panel.

    Any idea how this can be done?


    thank you in advance!


    #2
    Hello Gubbar924,

    Thank you for writing in.

    ChartPanel.Y/X/W/H are values you can get but not set. There is no supported way to resize the height of a chart panel through code in NT8.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    8 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,613 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Yesterday, 05:56 PM
    0 responses
    10 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    20 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X