同花顺backtest选股策略-连续2天60日均线向上、2天前涨跌幅排列、涨幅小于5%和

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

问财量化选股策略逻辑

在选股过程中,我们采用了以下策略来寻找具有投资价值的股票:

  1. 连续2天60日均线向上:我们关注股票的60日均线,连续2天呈現上涨趋势。
  2. 2天前涨跌幅排列:我们关注股票在过去两天的涨跌幅表现,选择涨幅小于5%的股票。

选股逻辑分析

这两个选股逻辑是为了寻找具有稳定性和成长的股票。首先,连续2天60日均线向上可以过滤掉一些短期波动较大的股票,留下的是相对稳定的股票。其次,涨幅小于5%的股票在短期内可能存在下跌的风险,但相对概率较小。

有何风险?

该策略存在以下风险:

  1. 选股逻辑 based on 60-day average, 2-day price change, and price change less than 5% in the last 2 days may not be effective for all stocks. Some stocks may have a high price change rate but still not meet the selection criteria.
  2. This strategy focuses on short-term performance. The long-term performance of the stock may not be impressive.

如何优化?

  1. Expand the range of stocks: Consider adding more stocks to the selection criteria to increase the diversity of the portfolio.
  2. Calculate other indicators: Add other technical indicators, such as the Moving Average Convergence Divergence (MACD), to the selection process to provide more insights.
  3. Analyze the reasons behind the performance: Conduct in-depth analysis to understand why the stock meets the selection criteria. This will help to identify potential investment opportunities.

最终的选股逻辑

在优化和改进后,我们的选股策略如下:

  1. 选股策略基于60日均线、短期价格变化和价格变化小于5%等多个指标。
  2. 股票需要同时满足连续2天60日均线向上、2天前涨跌幅排列和涨幅小于5%这三个条件。
  3. 选股策略将根据股票的长期表现和短期价格波动进行调整,以提高策略的有效性。

常见问题

  1. 什么股票符合选股策略?
    答:符合选股策略的股票需要同时满足连续2天60日均线向上、2天前涨跌幅排列和涨幅小于5%这三个条件。
  2. 选股策略的风险是什么?
    答:选股策略可能存在筛选出的股票短期表现不佳的风险。
  3. 如何优化选股策略?
    答:可以通过扩大选股范围、计算其他技术指标和分析股票的原因来优化选股策略。
  4. 选股策略的最终版本是什么?
    答:选股策略的最终版本需要根据市场情况和投资目标进行调整。

指标公式代码参考

在选股策略中,我们关注了股票的60日均线、短期价格变化和价格变化小于5%这三个指标。以下是指标公式代码参考:

  1. 60日均线SMA(close, 60)
  2. 短期价格变化(close - close[1]) / close[1]
  3. 价格变化小于5%(close - close[1]) / close[1] < 0.05

如何进行量化策略实盘?

请把您优化好的选股语句放入文章最下面模板的选股语句中即可。

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

模板如何使用?

点击页面下方的复制按钮,复制到自己的账户即可使用模板进行回测。
收益&风险
源码

评论