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 Belfortbucks, Today, 09:29 PM
    0 responses
    6 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Working...
    X