백테스팅 수정
This commit is contained in:
@@ -299,6 +299,8 @@ public class BacktestingService {
|
||||
.stats(stats)
|
||||
.analysis(analysis)
|
||||
.resultId(resultId)
|
||||
.timeframe(normalizeTf(req.getTimeframe()))
|
||||
.symbol(req.getSymbol())
|
||||
.build();
|
||||
}
|
||||
|
||||
@@ -616,7 +618,8 @@ public class BacktestingService {
|
||||
snapshot.put("strategyId", req.getStrategyId());
|
||||
snapshot.put("strategyName", strategyName);
|
||||
snapshot.put("symbol", req.getSymbol() != null ? req.getSymbol() : "UNKNOWN");
|
||||
snapshot.put("timeframe", req.getTimeframe());
|
||||
String execTf = normalizeTf(req.getTimeframe());
|
||||
snapshot.put("timeframe", execTf);
|
||||
snapshot.put("barCount", bars.size());
|
||||
if (execParams != null && !execParams.isEmpty()) snapshot.put("indicatorParams", execParams);
|
||||
if (execBuyDsl != null && !execBuyDsl.isNull()) snapshot.put("buyCondition", execBuyDsl);
|
||||
@@ -627,7 +630,7 @@ public class BacktestingService {
|
||||
.strategyId(req.getStrategyId())
|
||||
.strategyName(strategyName)
|
||||
.symbol(req.getSymbol() != null ? req.getSymbol() : "UNKNOWN")
|
||||
.timeframe(req.getTimeframe())
|
||||
.timeframe(execTf)
|
||||
.barCount(bars.size())
|
||||
.fromTime(fromTime)
|
||||
.toTime(toTime)
|
||||
|
||||
Reference in New Issue
Block a user