#region Variables
...
private DateTime publicHoliday0 = new DateTime (2009,01,19);
...
#region Properties
....
public DateTime PublicHoliday0
{
get { return publicHoliday0;}
set { publicHoliday0 = value;}
}
Problem: If the user sets a new value for PublicHoliday0, this value is not saved with the workspace, so after a restart of NinjaTrader, the default setting (2009,10,19) reappears.
With NT 6.5. there were no problems, With NT 7.0 I used this identical code for several indicators. For some indicators it works, for others it does not, so I admit being confused.

Comment