currentPeriods method
Implementation
List<int> currentPeriods(IndicatorType type) {
KLineController config = KLineController.shared;
if (type == IndicatorType.kdj) {
return config.kdjPeriods;
} else if (type == IndicatorType.wr) {
return config.wrPeriods;
} else if (type == IndicatorType.obv) {
return [0];
}
return [];
}