복합지표 전략 추가
This commit is contained in:
@@ -930,6 +930,14 @@ public class StrategyDslToTa4jAdapter {
|
||||
};
|
||||
}
|
||||
// MA (SMA)
|
||||
if (field.startsWith("CLOSE_MAX_")) {
|
||||
int period = parseTrailingInt(field, "CLOSE_MAX_", 33);
|
||||
return new HighestValueIndicator(close, period);
|
||||
}
|
||||
if (field.startsWith("CLOSE_MIN_")) {
|
||||
int period = parseTrailingInt(field, "CLOSE_MIN_", 33);
|
||||
return new LowestValueIndicator(close, period);
|
||||
}
|
||||
if (field.startsWith("MA") && !field.startsWith("MACD")) {
|
||||
try { return new SMAIndicator(close, Integer.parseInt(field.substring(2))); }
|
||||
catch (NumberFormatException ignored) { /* fall */ }
|
||||
|
||||
Reference in New Issue
Block a user