Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Template problems - possibly Serialization

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

    Chart Template problems - possibly Serialization

    I have an indicator

    It has some serialization code in it for brushes.

    I commented out the serialization methods that are under the actual Brush property getters and setters.The property definition including the getters and setters are not commented out.

    I still have this problem even though all serialization code is commented out in the indicator.

    The problem is that the indicator works but if I save a template and then open the template... then the indicator is no longer displayed - the whole bottom of the chart area (pane) where it should be is not displayed.

    So can this still be a serialization problem? or should I look somewhere else?

    #2
    Hello NinjaCustomer,

    Thank you for the post.

    You do need the serialization code for Brushes to prevent errors when saving/loading, have you checked the control center Log tab to see if there are errors?

    We have a template for the structure you need at the following link, perhaps you are just missing one of the [Attributes]?


    I look forward to being of further assistance.

    Comment


      #3
      just to clear enums don't need to be serialized and neither do primitives?

      Comment


        #4
        Hello NinjaCustomer,

        Correct, enums and other simple types such as int, string, double would not need a converter to be serialized. Complex objects need to be converted to a string so the value can be saved to xml, and then converted back from a string when loading. This is the reason for needing the serialization on some but not other objects.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        71 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