...
This commit is contained in:
@@ -86,7 +86,7 @@ object AutoTradingManager {
|
||||
val now = LocalTime.now(ZoneId.of("Asia/Seoul"))
|
||||
val nowDate = LocalDate.now(seoulZone)
|
||||
var checkTime = 60_000 * 3L
|
||||
val isTradingDay = nowDate.dayOfWeek.value in 1..5
|
||||
val isTradingDay = MarketUtil.canTradeToday()
|
||||
if (isTradingDay && now.isAfter(KisSession.startTime()) && now.isBefore(KisSession.endTime()) && !shouldShowFullWindow) {
|
||||
shouldShowFullWindow = true
|
||||
SystemSleepPreventer.wakeDisplay()
|
||||
@@ -951,7 +951,6 @@ object AutoTradingManager {
|
||||
if (reanalysisList.isNotEmpty()) {
|
||||
candidates.addAll(reanalysisList)
|
||||
}
|
||||
candidates.clear()///물타기
|
||||
reanalysisList.clear()
|
||||
if (KisSession.tradeConfig.lowerAveragePrice) {
|
||||
currentBalance?.getHoldings()?.map {
|
||||
|
||||
Reference in New Issue
Block a user