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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      671 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X