please help me to fix an error:
I added objects in State.SetDefault to use "sub menů property" (set colors).

This is the code:
if (State == State.SetDefaults)
{
Description = @"Multi Time Frame Impulse Strategy";
Name = "NTT01";
Calculate = Calculate.OnBarClose;
EntriesPerDirection = 1;
EntryHandling = EntryHandling.AllEntries;
IsExitOnSessionCloseStrategy = true;
ExitOnSessionCloseSeconds = 30;
IsFillLimitOnTouch = false;
MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
OrderFillResolution = OrderFillResolution.Standard;
Slippage = 0;
StartBehavior = StartBehavior.WaitUntilFlat;
TimeInForce = TimeInForce.Gtc;
TraceOrders = false;
RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
StopTargetHandling = StopTargetHandling.PerEntryExecution;
BarsRequiredToTrade = 20;
ColorTF1Variables = new ColorTF1() { BrushTF1up = Brushes.LightGreen, BrushTF1dw = Brushes.LightPink, BrushTF1fl = Brushes.LightYellow};
ColorTF2Variables = new ColorTF2() { BrushTF2up = Brushes.Green, BrushTF2dw = Brushes.Red};
ColorTF3Variables = new ColorTF3() { BrushTF3up = Brushes.Blue, BrushTF3dw = Brushes.Magenta};
}
This after compile:

If I try to "enable" from tab_strategy I get the following error.


I test that the problem come from the 3 object "ColorTf1/2/3Variables" becouse if I cancel them there is no error.
Can you help me please?
Thanks
Comment