From c509c346f0e584ed221465c5c1741b805dcbf23c Mon Sep 17 00:00:00 2001 From: yanweidong Date: Sun, 28 Jun 2026 20:14:22 +0800 Subject: [PATCH] =?UTF-8?q?Add=20ATR20=E5=89=8D=E5=A4=8D=E6=9D=83=20field?= =?UTF-8?q?=20to=20DatasetIndicatorPro=20and=20update=20StkFactorPro=20to?= =?UTF-8?q?=20include=20ATR=E5=89=8D=E5=A4=8D=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/dataset_indicator_pro.go | 1 + tushare/indicator.go | 1 + 2 files changed, 2 insertions(+) diff --git a/schema/dataset_indicator_pro.go b/schema/dataset_indicator_pro.go index 1c934d2..f7b42a8 100644 --- a/schema/dataset_indicator_pro.go +++ b/schema/dataset_indicator_pro.go @@ -32,6 +32,7 @@ type DatasetIndicatorPro struct { TotalMv float64 `gorm:"type:decimal(20,4);comment:总市值(万元)"` CircMv float64 `gorm:"type:decimal(20,4);comment:流通市值(万元)"` AdjFactor float64 `gorm:"type:decimal(20,6);comment:复权因子"` + AtrQfq20 float64 `gorm:"type:decimal(20,6);comment:ATR20前复权"` 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前复权"` diff --git a/tushare/indicator.go b/tushare/indicator.go index dead85e..d9acd37 100644 --- a/tushare/indicator.go +++ b/tushare/indicator.go @@ -55,6 +55,7 @@ func (cli *TushareClient) StkFactorPro(ts_code, trade_date, start_date, end_date {"total_mv": "总市值(万元)"}, {"circ_mv": "流通市值(万元)"}, {"adj_factor": "复权因子"}, + {"atr_qfq": "ATR前复权"}, {"ma_qfq_5": "MA5前复权"}, {"ma_qfq_10": "MA10前复权"}, {"ma_qfq_20": "MA20前复权"},