This commit is contained in:
2026-03-26 15:27:34 +09:00
parent d6cfcbd579
commit 9ff088bf6b
4 changed files with 39 additions and 11 deletions
+2 -2
View File
@@ -448,14 +448,14 @@ object TradingLogStore {
}
}
fun addAnalyzer(name : String, code : String, log: String) {
fun addAnalyzer(name : String, code : String, log: String, positive : Boolean = false) {
synchronized(this) {
if (decisionLogs.size > 1000) decisionLogs.removeAt(0)
decisionLogs.add(
LogEntry(
time = LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss")),
stockName = "$name[$code] 분석",
decision = "ANALYZER",
decision = if(positive) "ANALYZER" else "PASS",
confidence = 100.0,
reason = log
)