This commit is contained in:
2026-02-27 13:26:22 +08:00
parent 4dde784047
commit fc5a1be7e1
8 changed files with 47 additions and 40 deletions

View File

@@ -12,7 +12,7 @@ import (
func Run(key string, ymd int) {
log.Println("Run Mock Order.")
var stocks []*models.StratModel
impl.DBService.Where("strat_key=? and ymd=? and rsi_score>0 and macd_score>0 and ai_score>=?", key, ymd, 5).Find(&stocks)
impl.DBService.Where("strat_key=? and ymd=? and status=2 and ai_score>=?", key, ymd, 5).Find(&stocks)
if len(stocks) == 0 {
log.Println("No data to process.")
return