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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        30 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        16 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X