Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 -

      BertrandNinjaTrader Customer Service

      Comment


        #4
        found the solution


        BTW thanks for the quick reply

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X