일목균형표 수정
This commit is contained in:
@@ -749,17 +749,24 @@ public class StrategyDslToTa4jAdapter {
|
||||
private IchimokuKijunSenIndicator ichimokuKijun(BarSeries s, Map<String, Object> p) {
|
||||
return new IchimokuKijunSenIndicator(s, intP(p, "basePeriods", 26));
|
||||
}
|
||||
private int ichimokuSenkouDisplacement(Map<String, Object> p) {
|
||||
return intP(p, "senkouDisplacement", intP(p, "displacement", 26));
|
||||
}
|
||||
|
||||
private int ichimokuChikouDisplacement(Map<String, Object> p) {
|
||||
return intP(p, "chikouDisplacement", intP(p, "displacement", 26));
|
||||
}
|
||||
|
||||
private IchimokuSenkouSpanAIndicator ichimokuSpanA(BarSeries s, Map<String, Object> p) {
|
||||
return new IchimokuSenkouSpanAIndicator(s, ichimokuTenkan(s, p), ichimokuKijun(s, p),
|
||||
intP(p, "displacement", 26));
|
||||
ichimokuSenkouDisplacement(p));
|
||||
}
|
||||
private IchimokuSenkouSpanBIndicator ichimokuSpanB(BarSeries s, Map<String, Object> p) {
|
||||
// IndicatorService 와 동일하게 displacement 파라미터 반영
|
||||
return new IchimokuSenkouSpanBIndicator(s, intP(p, "laggingSpan2Periods", 52),
|
||||
intP(p, "displacement", 26));
|
||||
ichimokuSenkouDisplacement(p));
|
||||
}
|
||||
private IchimokuChikouSpanIndicator ichimokuLagging(BarSeries s, Map<String, Object> p) {
|
||||
return new IchimokuChikouSpanIndicator(s, intP(p, "displacement", 26));
|
||||
return new IchimokuChikouSpanIndicator(s, ichimokuChikouDisplacement(p));
|
||||
}
|
||||
|
||||
/** 종가가 구름 위 */
|
||||
|
||||
Reference in New Issue
Block a user