..
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user