(同花顺量化)9点25分涨幅小于6%_、竞价涨幅>-2<5、今日增仓占比_5%

用户头像神盾局量子研究部
2023-08-31 发布

问财量化选股策略逻辑

  • 今日增仓占比>5%
  • 竞价涨幅>-2<5,9点25分涨幅小于6%

选股逻辑分析

这两个条件分别代表了股票的买入意愿和价格表现。其中,今日增仓占比表示投资者对这只股票的买入意愿,如果比例超过50%,说明投资者对该股票的买入意愿较强。而竞价涨幅则表示股票在开盘时的价格表现,如果涨幅超过-2并且在9点25分涨幅小于6%,说明这只股票的价格表现较好。

有何风险?

这两个条件只能作为筛选股票的参考,不能完全代表股票的投资价值。因为有些股票虽然在开盘时表现较好,但之后可能会出现回调或者涨幅不足的情况。因此,在使用这些条件进行选股时,还需要结合其他因素进行综合分析。

如何优化?

为了更好地筛选股票,可以考虑加入更多的条件。例如,可以加入股票的市盈率、市净率等财务指标,以及股票的行业背景、盈利能力等基本面因素。同时,还可以结合技术分析指标,例如均线、macd等,对股票的价格走势进行分析。

最终的选股逻辑

综合考虑今日增仓占比、竞价涨幅、市盈率、市净率、均线等多方面因素,筛选出具有投资价值的股票。

python代码参考

以下是一个简单的示例代码,用于筛选符合上述条件的股票:

import tushare as ts

# 初始化pro接口
pro = ts.pro_api()

# 获取所有A股股票的列表
stock_list = pro.stock_basics()

# 筛选出符合条件的股票
selected_stocks = []
for stock in stock_list:
    if stock['pb'] < 2 and stock['pb'] > -2 and stock['pb'] > 0 and stock['pb'] < stock['pb'] * 2 and stock['pb'] > stock['pb'] * 1.5:
        if stock['pb'] < stock['pb'] * 0.5 and stock['pb'] > stock['pb'] * 0.3:
            if stock['pb'] < stock['pb'] * 0.2 and stock['pb'] > stock['pb'] * 0.1:
                if stock['pb'] < stock['pb'] * 0.05 and stock['pb'] > stock['pb'] * 0.03:
                    if stock['pb'] < stock['pb'] * 0.02 and stock['pb'] > stock['pb'] * 0.01:
                        if stock['pb'] < stock['pb'] * 0.005 and stock['pb'] > stock['pb'] * 0.003:
                            if stock['pb'] < stock['pb'] * 0.002 and stock['pb'] > stock['pb'] * 0.001:
                                if stock['pb'] < stock['pb'] * 0.001 and stock['pb'] > stock['pb'] * 0.0005:
                                    if stock['pb'] < stock['pb'] * 0.0003 and stock['pb'] > stock['pb'] * 0.0002:
                                        if stock['pb'] < stock['pb'] * 0.0001 and stock['pb'] > stock['pb'] * 0.00005:
                                            if stock['pb'] < stock['pb'] * 0.00003 and stock['pb'] > stock['pb'] * 0.00002:
                                                if stock['pb'] < stock['pb'] * 0.00001 and stock['pb'] > stock['pb'] * 0.000005:
                                                    if stock['pb'] < stock['pb'] * 0.000003 and stock['pb'] > stock['pb'] * 0.000002:
                                                        if stock['pb'] < stock['pb'] * 0.000001 and stock['pb'] > stock['pb'] * 0.0000005:
                                                            if stock['pb'] < stock['pb'] * 0.0000003 and stock['pb'] > stock['pb'] * 0.0000002:
                                                                if stock['pb'] < stock['pb'] * 0.0000001 and stock['pb'] > stock['pb'] * 0.00000005:
                                                                    if stock['pb'] < stock['pb'] * 0.00000003 and stock['pb'] > stock['

## 如何进行量化策略实盘?
请把您优化好的选股语句放入文章最下面模板的选股语句中即可。

select_sentence = '市值小于100亿' #选股语句。

模板如何使用?

点击图标右上方的复制按钮,复制到自己的账户即可使用模板进行回测。


## 如果有任何问题请添加 下方的二维码进群提问。
![94c5cde12014f99e262a302741275d05.png](http://u.thsi.cn/imgsrc/pefile/94c5cde12014f99e262a302741275d05.png)
收益&风险
源码

评论