전략편집기 기준값 보조지표 설정값 동기화
This commit is contained in:
@@ -47,6 +47,7 @@ public class StrategyTriggerBranchEvaluator {
|
||||
String side,
|
||||
String triggerCandleType,
|
||||
Map<String, Map<String, Object>> indicatorParams,
|
||||
Map<String, Map<String, Object>> indicatorVisual,
|
||||
Ta4jStorage storage) {
|
||||
BranchScope scope = parseScope(conditionJson);
|
||||
if (scope.branches().isEmpty()) return new BooleanRule(false);
|
||||
@@ -56,6 +57,7 @@ public class StrategyTriggerBranchEvaluator {
|
||||
new StrategyDslToTa4jAdapter.RuleBuildContext(
|
||||
storage.getOrCreate(market, trigger),
|
||||
indicatorParams,
|
||||
indicatorVisual != null ? indicatorVisual : Map.of(),
|
||||
market,
|
||||
storage);
|
||||
|
||||
@@ -230,7 +232,7 @@ public class StrategyTriggerBranchEvaluator {
|
||||
|
||||
StrategyDslToTa4jAdapter.RuleBuildContext branchCtx =
|
||||
new StrategyDslToTa4jAdapter.RuleBuildContext(
|
||||
branchSeries, ctx.indicatorParams(), ctx.market(), ctx.storage());
|
||||
branchSeries, ctx.indicatorParams(), ctx.indicatorVisual(), ctx.market(), ctx.storage());
|
||||
try {
|
||||
Rule rule = adapter.toRule(subtree, branchCtx);
|
||||
return rule.isSatisfied(branchIndex, null);
|
||||
|
||||
Reference in New Issue
Block a user