Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartControl.Properties.PropertyChanged

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

    ChartControl.Properties.PropertyChanged

    For my custom indicator I'm cloning the font from the ChartControl (ChartControl.Properties.LabelFont). When the user changes the properties of the chart font I would like to automatically adjust the font in my indicator. I'm also interested to know if any other ChartControl properties have been updated by the user. I tried to use the ChartControl.Properties.PropertyChanged listener but this does not seem to fire for me. Is there a different even listener I should be using? Thanks.

    #2
    Hello martyn73,

    Thanks for your post.

    ChartControl.Properties.PropertyChanged is not documented for use and is unsupported. If any community members have used this successfully and would like to share their insight, they are welcome to comment here.

    If you are trying to detect when font changes and change what your script uses accordingly, you could save the LabelFont's SimpleFont to a private variable and check if it changes in OnRender. If it changes, you can then change the SimpleFont that you use, and also update any SharpDX TextFormats\TextLayouts. I may also promote doing this for scripts that use custom rendering so the change is trapped and can be updated right away.

    We look forward to assisting.

    Comment


      #3
      Hi, i would also be interested if anyone has found a solution, please write briefly here how you did it, thanks.
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X