Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color properties of my custom indicator reseting to white after compile

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

    Color properties of my custom indicator reseting to white after compile

    Hi;
    I have developed an indicator and pass in a couple of color parameters. In the indicator I have set the default color to red.

    I have now added the indicator to a chart, changed the color in the Property window when adding the indicator. I then right clicked on the color to make this the new default when using this indicator.

    So far so good, when I now close the workspace, recompile the indicator, suddenly I can't see the objects on the chart anymore. This is because the color property has been reset to white. White foreground on white background results in invisible.

    How can I fix this again, so I don't need to set the colors new with every recompile?

    Thanks
    Thomas

    #2
    Tested it again, this behaviour does not seem to have anything to do with the re-compile. When I close the workspace (with changed colors) and re-open workspace it defaults to white.

    Comment


      #3
      This would be expected per default, as your color input set could not be serialized - please read through this tip here and apply the technique offered to code this behavior into your script -

      Comment


        #4
        found the solution


        BTW thanks for the quick reply

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        333 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X