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 toughiee, Today, 12:04 AM
        0 responses
        2 views
        0 likes
        Last Post toughiee  
        Started by vdoan20, Yesterday, 08:30 PM
        0 responses
        7 views
        0 likes
        Last Post vdoan20
        by vdoan20
         
        Started by gupagoer, Yesterday, 07:42 PM
        0 responses
        9 views
        0 likes
        Last Post gupagoer  
        Started by Holligoly, Yesterday, 05:13 PM
        2 responses
        11 views
        0 likes
        Last Post Holligoly  
        Started by Raginpower, Yesterday, 01:53 PM
        0 responses
        14 views
        0 likes
        Last Post Raginpower  
        Working...
        X