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