.
This commit is contained in:
parent
c55b089fcd
commit
81ce9b1539
@ -460,7 +460,9 @@ object AutoTradingManager {
|
||||
"거랙 차단 대상 : ${holding.currentPrice}[${holding.quantity}주] 보유, 수익률(${holding.profitRate.toDouble()})"
|
||||
)
|
||||
} else {
|
||||
val targetProfitLimit = if (holding.isTodayEntry) {
|
||||
val now = LocalTime.now()
|
||||
|
||||
val targetProfitLimit = if (holding.isTodayEntry && now.isBefore(LocalTime.of(18, 0))) {
|
||||
// 당일 매수 종목: 짧은 익절 (예: 1.0% 이상이면 즉시 매도)
|
||||
KisSession.config.getValues(ConfigIndex.PROFIT_INDEX)+ KisSession.config.getValues(ConfigIndex.TAX_INDEX)
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user