protected override void Initialize() { Add(PeriodType.Day, 1);
if (BarsInProgress != 0) return; #region onbarupdate variables ..... if ( (ToDay(Time[0]) ==ToDay(new DateTime(2004,1, 8).AddDays(x))|| ToDay(Time[0]) ==ToDay(new DateTime(2004,2, 5).AddDays(x))||ToDay(Time[0]) == ToDay(new DateTime(2004,3, 4).AddDays(x))||ToDay(Time[0]) ==ToDay(new DateTime(2004,4, 1).AddDays(x)) || ToDay(Time[0]) ==ToDay(new DateTime(2004,5, 6).AddDays(x))||ToDay(Time[0]) ==ToDay(new DateTime(2004,6, 3).AddDays(x)) ) {return;} else {}
Will this statement be checked every new bar of my primary series?
If yes, would are the best solution to improve the code? Creating a counter? Moving the filter to a section for the second dataseries.
Comment