보조지표 소수점 추가, cci 수정

This commit is contained in:
Macbook
2026-05-30 00:13:22 +09:00
parent 6332d198b1
commit ad92dace28
11 changed files with 286 additions and 20 deletions
@@ -396,10 +396,10 @@ public class IndicatorService {
*/
private Map<String, List<PlotPoint>> calcCCI(BarSeries s, Map<String, Object> p) {
int len = intP(p, "length", 13);
int maLen = intP(p, "maLength", 20);
int maLen = intP(p, "maLength", 10);
String maType = p.getOrDefault("maType", "SMA").toString();
CCIIndicator cci = new CCIIndicator(s, len);
CciOnSourceIndicator cci = new CciOnSourceIndicator(src(s, p), len);
Indicator<Num> maInd = switch (maType) {
case "EMA" -> new EMAIndicator(cci, maLen);