From afaecacb5bdc68f3896c5ed8cc5cb803eed1f9aa Mon Sep 17 00:00:00 2001 From: yanweidong Date: Wed, 20 May 2026 18:24:03 +0800 Subject: [PATCH] fix StkFactorPro --- schema/dataset_indicator_pro.go | 3 +++ tushare/indicator.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/schema/dataset_indicator_pro.go b/schema/dataset_indicator_pro.go index e6d2528..1c934d2 100644 --- a/schema/dataset_indicator_pro.go +++ b/schema/dataset_indicator_pro.go @@ -35,10 +35,13 @@ type DatasetIndicatorPro struct { MaQfq5 float64 `gorm:"type:decimal(20,6);comment:MA5前复权"` MaQfq10 float64 `gorm:"type:decimal(20,6);comment:MA10前复权"` MaQfq20 float64 `gorm:"type:decimal(20,6);comment:MA20前复权"` + MaQfq30 float64 `gorm:"type:decimal(20,6);comment:MA30前复权"` MaQfq60 float64 `gorm:"type:decimal(20,6);comment:MA60前复权"` EmaQfq5 float64 `gorm:"type:decimal(20,6);comment:EMA5前复权"` EmaQfq10 float64 `gorm:"type:decimal(20,6);comment:EMA10前复权"` EmaQfq20 float64 `gorm:"type:decimal(20,6);comment:EMA20前复权"` + EmaQfq30 float64 `gorm:"type:decimal(20,6);comment:EMA30前复权"` + EmaQfq60 float64 `gorm:"type:decimal(20,6);comment:EMA60前复权"` MacdQfq float64 `gorm:"type:decimal(20,6);comment:MACD前复权"` MacdDifQfq float64 `gorm:"type:decimal(20,6);comment:MACD DIF前复权"` MacdDeaQfq float64 `gorm:"type:decimal(20,6);comment:MACD DEA前复权"` diff --git a/tushare/indicator.go b/tushare/indicator.go index 808c6f0..dead85e 100644 --- a/tushare/indicator.go +++ b/tushare/indicator.go @@ -58,10 +58,13 @@ func (cli *TushareClient) StkFactorPro(ts_code, trade_date, start_date, end_date {"ma_qfq_5": "MA5前复权"}, {"ma_qfq_10": "MA10前复权"}, {"ma_qfq_20": "MA20前复权"}, + {"ma_qfq_30": "MA30前复权"}, {"ma_qfq_60": "MA60前复权"}, {"ema_qfq_5": "EMA5前复权"}, {"ema_qfq_10": "EMA10前复权"}, {"ema_qfq_20": "EMA20前复权"}, + {"ema_qfq_30": "EMA30前复权"}, + {"ema_qfq_60": "EMA60前复权"}, {"macd_qfq": "MACD前复权"}, {"macd_dif_qfq": "MACD DIF前复权"}, {"macd_dea_qfq": "MACD DEA前复权"},