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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        82 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X