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 frankthearm, Yesterday, 09:08 AM
        14 responses
        47 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by gentlebenthebear, Today, 01:30 AM
        2 responses
        13 views
        0 likes
        Last Post gentlebenthebear  
        Started by Kaledus, Today, 01:29 PM
        2 responses
        8 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by Conceptzx, 10-11-2022, 06:38 AM
        2 responses
        56 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Working...
        X