Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing tool defaults will not save

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

    Drawing tool defaults will not save

    I've developed a drawing tool which draws a line on the chart. There is a PathBrush property which is exposed and can be set through the Drawing Object properties. I'm able to change the color of the PathBrush property through the properties dialog however when I try to set this property as "Default" it doesn't actually save. The problem appears to be specific to saving the color in any template, not just "Default". When I save and load any template, the color is not changed (it still reflects the default defined in the code, not the value overridden from the dialog box). To be clear, changing the property actually changes the color of the line, but I can't seem to save/load it to/from a template. Is there something I'm missing here which is preventing this from working as expected?

    #2
    Hello stocks29,

    Welcome to the NinjaTrader forums!

    Are there any errors appearing on the Log tab of the Control Center when trying to save a default template?

    Is the object being properly converted to a string and serialized?

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you! The problem was the serialization issue you linked to.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      73 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      152 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X