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

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.
    JimNinjaTrader Customer Service

    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 Brevo, Today, 01:45 AM
      0 responses
      6 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      3 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      242 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      384 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      6 views
      0 likes
      Last Post oviejo
      by oviejo
       
      Working...
      X