추세검색 설정 수정
This commit is contained in:
@@ -91,7 +91,7 @@ public class TrendSearchService {
|
||||
if (useBullishScore) {
|
||||
m.bullishTrendScore = computeBullishTrendScore(m, r);
|
||||
m.matchScore = m.bullishTrendScore;
|
||||
if (minTrendScore > 0 && m.bullishTrendScore < minTrendScore) continue;
|
||||
if (!TrendSearchBullishScoring.passesMinTrendScore(m.bullishTrendScore, r)) continue;
|
||||
} else {
|
||||
m.trendStrength = computeTrendStrength(m);
|
||||
m.matchScore = enabledFilters == 0
|
||||
@@ -365,13 +365,7 @@ public class TrendSearchService {
|
||||
|
||||
/** 상승추세 검색그룹 — 가중 점수 합산 (0~100) */
|
||||
private int computeBullishTrendScore(MetricValues m, TrendSearchRequest r) {
|
||||
int score = 0;
|
||||
if (m.bullishEmaAlignment) score += Math.max(0, r.getWeightMaAlignment());
|
||||
if (m.bullishEmaSlope) score += Math.max(0, r.getWeightMaSlope());
|
||||
if (m.bullishAdxTrend) score += Math.max(0, r.getWeightAdxTrend());
|
||||
if (m.bullishMacdMomentum) score += Math.max(0, r.getWeightMacdMomentum());
|
||||
if (m.bullishPricePosition) score += Math.max(0, r.getWeightPricePosition());
|
||||
return Math.min(100, score);
|
||||
return TrendSearchBullishScoring.computeScore(m, r);
|
||||
}
|
||||
|
||||
/** 정배열·상승세·거래량 복합 추세 강도 (0~100) */
|
||||
@@ -830,7 +824,7 @@ public class TrendSearchService {
|
||||
|
||||
private record ScoredMarket(String market, TickerSnap tick, List<CandleBarDto> candles, MetricValues metrics) {}
|
||||
|
||||
private static class MetricValues {
|
||||
private static class MetricValues implements TrendSearchBullishScoring.BullishFlags {
|
||||
final boolean priceAboveMa, maAlignment, maConvergence;
|
||||
final double maSpreadPct;
|
||||
final boolean ma20SlopeUp, newHighBreakout, ichimokuAboveCloud;
|
||||
@@ -895,5 +889,11 @@ public class TrendSearchService {
|
||||
this.bullishMacdMomentum = bullishMacdMomentum;
|
||||
this.bullishPricePosition = bullishPricePosition;
|
||||
}
|
||||
|
||||
@Override public boolean bullishEmaAlignment() { return bullishEmaAlignment; }
|
||||
@Override public boolean bullishEmaSlope() { return bullishEmaSlope; }
|
||||
@Override public boolean bullishAdxTrend() { return bullishAdxTrend; }
|
||||
@Override public boolean bullishMacdMomentum() { return bullishMacdMomentum; }
|
||||
@Override public boolean bullishPricePosition() { return bullishPricePosition; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user