보조지표 소수점 추가, cci 수정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user