I have coded an indicator that has definable colors for all lines and text drawn by indicator.
Everything works fine expect the default colors always revert back to the set color where defined in variables. Even after saving the defaults.... The original parameters can be saved but the colors wont stay.
I have trawled the internet looking for answers and found someone else with a simlar problem which was solved by removing the " XmlIgnore" however this just takes the colors away altogether in which case they need to be defined every time the indicator is run.
The funny thing is that i got the below code from another program that someone else coded and it works fine and holds the values in that program... but not in mine... :-(
Can anyone make any suggestions?
[Description("Text Colour for last Alert2"), XmlIgnore, VisualizationOnly]
[GridCategory("Status panel")]
[NinjaTrader.Gui.Design.DisplayName("Levels Color")]
public Color LevelNormal
{
get { return this.textbrushOff.Color; }
set { this.textbrushOff = new SolidBrush(value); }
}
Comment