I'm probably doing something wrong, but ...
I have an enum declare in my strategy:
[Serializable]
public enum MyEnum
{
Item1 = 0,
Item2 = 1
}
and I have a property defined as:
[Display(ResourceType = typeof(Custom.Resource), Name = "My Prop", Description = @"My Prop", Order = 1, GroupName = "Misc")]
public MyEnum MyProperty
{ get ; set; }
Everything works great except the following scenario when I am running the Strat Analyzer.
I choose item2 from the dropdown that is displayed for MyProperty.
I run the backtest or optimizer.
All is well. It comes back with whatever results and MyProperty is still showing item1.
I then recompile my strat.
The dropdown for MyProperty changes back to item1.
All other properties that are not an enum keep their values between compiles.
What is the secret sauce I am missing?
Thanks ... Ed
Comment