同花顺backtest选股策略-顺博合金下跌会合线、剔除股价大于50元、流通市值小于400

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

问财量化选股策略逻辑

在本文中,我们将介绍一种量化选股策略,该策略基于顺博合金的下跌会合线和股价、流通市值的限制。

首先,我们观察顺博合金的价格走势,当价格下跌时,如果顺博合金的下跌会合线得到验证,则认为这是一个潜在的买入机会。

其次,为了降低风险,我们剔除了股价大于50元和流通市值小于400亿的股票。这一限制可以确保我们只关注具有稳定性和成交量的股票。

选股逻辑分析

该策略主要依赖技术分析, specifically, it is based on the trend-following index (TFI) and the support and resistance levels. The TFI is a momentum indicator that measures the strength of a trend and generates buy and sell signals based on this strength. The support and resistance levels are key levels on the price chart that indicate areas where the trend may potentially reverse.

The strategy first identifies the TFI lines and support/resistance levels on the chart. Then, it looks for instances where the TFI line crosses above the support level or below the resistance level, indicating a potential buy or sell signal. Additionally, it looks for instances where the price breaks through the support or resistance levels, providing additional confirmation of a potential buy or sell signal.

有何风险?

尽管该策略基于技术分析,但仍然存在一定的风险。首先,市场 conditions can change rapidly, and the strategy may not be able to capture all of these changes. Additionally, the use of technical indicators can be subjective, and different people may interpret the same indicators differently.

如何优化?

To optimize this strategy, one potential approach is to incorporate additional technical indicators or analysis methods, such as trend-following filters or sentiment indicators. Additionally, one could consider adjusting the criteria for selecting stocks, such as increasing the minimum流通市值 or adding additional screens for stocks with high volatility.

最终的选股逻辑

Based on the above analysis, the final version of the strategy will be as follows:

  1. Identify the trend-following index (TFI) lines and support/resistance levels on the chart.
  2. Look for instances where the TFI line crosses above the support level or below the resistance level, indicating a potential buy or sell signal.
  3. Look for instances where the price breaks through the support or resistance levels, providing additional confirmation of a potential buy or sell signal.
  4. Exclude stocks with a price greater than 50 or a流通市值 less than 400亿.
  5. Consider incorporating additional technical indicators or analysis methods to optimize the strategy.

常见问题

  1. How do I calculate the trend-following index (TFI)?
    The TFI is typically calculated using a combination of the relative strength index (RSI) and the moving average convergence divergence (MACD) indicator.
  2. What are the support and resistance levels?
    Support and resistance levels are key levels on the price chart where the trend may potentially reverse. They are typically identified based on the previous price action.
  3. How do I adjust the criteria for selecting stocks?
    Adjusting the criteria for selecting stocks will depend on the specific strategy and goals of the investor. One could consider increasing the minimum流通市值 or adding additional screens for stocks with high volatility.
  4. What are the potential risks of this strategy?
    The potential risks of this strategy include the risk of missing market conditions and the subjective interpretation of technical indicators.
  5. Can I use this strategy on multiple stocks at once?
    Yes, the strategy can be applied to multiple stocks simultaneously, provided that the stocks are selected based on the same criteria.

指标公式代码参考

Here are some possible指标公式代码参考:

  • Trend-following index (TFI):
TFI = RSI(快速EMA, 14) - MACD(快速EMA, 14, 29, 9)
  • Support and resistance levels:
Support = XAveragePrice(close, 5)
Resistance = XAveragePrice(close, 20)

Note: These formulas are just examples, and the specific implementation may vary depending on the platform or software used.

如何进行量化策略实盘?

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

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

模板如何使用?

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

评论