[XmlIgnore()]
[Description("Up signal color")]
[GridCategory("Colors")]
[Gui.Design.DisplayNameAttribute("Up Signal Color")]
public Color Uparrowcolor
{
get { return uparrowcolor; }
set { uparrowcolor = value; }
}
[Browsable(false)]
publicstring UparrowcolorSerialize
{
get { return NinjaTrader.Gui.Design.SerializableColor.ToString( uparrowcolor); }
set { uparrowcolor = NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }
}
What is availale to serialize PeriodType?
I tried:
[XmlIgnore()]
[Description("The type of price data, typically set this to the same as the chart")]
[GridCategory("Price Data")]
[Gui.Design.DisplayNameAttribute("Price Type")]
public PeriodType PriceDataType0
{
get { return priceDataType; }
set { priceDataType = value; }
}
[Browsable(false)]
publicstring PriceDataType0Serialize
{
get { return NinjaTrader.Gui.Design.SerializablePeriodType.ToSt ring(priceDataType); }
set { priceDataType = NinjaTrader.Gui.Design.SerializablePeriodType.From String(value); }
}
but NinjaTrader.Gui.Design.SerializablePeriodType.From String
does not exist.
Comment