....
This commit is contained in:
@@ -627,7 +627,7 @@ $standardizedScores
|
||||
if (candles.size < 20 || !reboundStats.isValid) return null
|
||||
|
||||
// 1. 최근 20일 내 단기 고점 파악 (현재 진행 중인 하락 파동의 시작점)
|
||||
val recentCandles = candles.takeLast(20)
|
||||
val recentCandles = candles.takeLast((candles.size.times(0.8).toInt()))
|
||||
var recentPeakPrice = 0.0
|
||||
|
||||
for (i in recentCandles.indices.reversed()) {
|
||||
@@ -652,7 +652,7 @@ $standardizedScores
|
||||
val remainingDropRate = reboundStats.avgDropRate - currentDropRate
|
||||
|
||||
// 5. 바닥권 진입 판별 (예상 바닥가의 +2% 이내로 들어왔거나, 통계적 마지노선(extremeLow) 근처일 때)
|
||||
val isBottomZone = currentPrice <= (expectedBottomPrice * 1.02) || currentPrice <= (volatility.extremeLow * 1.02)
|
||||
val isBottomZone = currentPrice <= (expectedBottomPrice * 1.015) || currentPrice <= (volatility.extremeLow * 1.015)
|
||||
|
||||
return DropPrediction(
|
||||
recentPeakPrice = recentPeakPrice,
|
||||
|
||||
Reference in New Issue
Block a user