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 -

      http://www.ninjatrader.com/support/f...ead.php?t=4977
      BertrandNinjaTrader Customer Service

      Comment


        #4
        found the solution
        http://www.ninjatrader.com/support/f...ead.php?t=4977

        BTW thanks for the quick reply

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by muratb35, Today, 03:36 AM
        0 responses
        4 views
        0 likes
        Last Post muratb35  
        Started by fernlicht, Today, 02:16 AM
        2 responses
        13 views
        0 likes
        Last Post fernlicht  
        Started by fernlicht, 04-12-2021, 06:01 PM
        1 response
        29 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by memonolog, Today, 02:10 AM
        3 responses
        10 views
        0 likes
        Last Post memonolog  
        Started by orenytz, Today, 12:25 AM
        0 responses
        10 views
        0 likes
        Last Post orenytz
        by orenytz
         
        Working...
        X