Народ! Вопрос!
Добавлено: 25 ноя 2017, 20:39
Код: Выделить всё
if (PeriodType == 0 && BarDate() != BarDate(1)) x = 0;
if (PeriodType == 1 && BarDate().DayOfWeek < BarDate(1).DayOfWeek) x = 0;
if (PeriodType == 2 && BarDate().Month != BarDate(1).Month) x = 0;
Как обнулять x каждый час?