加载中...
因子逻辑
比较尾盘半小时成交均价与全天成交均价的高低。尾盘均价显著高于全天水平说明收盘前有资金集中买入推高价格,反映尾盘买压或资金布局。值越大表示尾盘成交价格相对全天越高、尾盘买入压力越强。
所属主题:日内成交分布因子。A 股日频因子,每行一只股票一个交易日。
读取平台表 cn_stock_factors_ext_hf_volume.close30_full_vwap_pressure 原值;值只覆盖每日中证 1000 成分股,因此只做中证 1000 口径的分析。
BigQuant SQL
SELECT date, instrument, close30_full_vwap_pressure AS factorFROM cn_stock_factors_ext_hf_volumeORDER BY date, instrumentbq templates new strategies/multi_factor.py bqf_10884_strategy.py --name '尾盘均价偏离 选股' \ --set 'TABLES=["BQF"]' --set 'FACTORS=["BQF_10884"]' --set 'HOLD=30' \ --set 'EVERY=20' --set 'BENCHMARK="000300.SH"' --set 'START="2021-01-01"' \ --set 'END="2026-11-20"' \ && python bqf_10884_strategy.pySELECT date, instrument, BQF_10884 FROM BQF带入当前因子,在 Cowork 中继续研究。
from bigquant import dai, factor
values = dai.query( "SELECT date, instrument, BQF_10884 AS close30_full_vwap_pressure FROM BQF", filters={"date": ["2021-01-01", "2026-10-08"]},).df()report = factor.analyze( values, start_date="2021-01-01", end_date="2026-10-08", universe=("all", "hs300"), neutralize=(None, "size+industry"), depth="deep",)report.render()