Skip to content

背离策略

背离策略是一种基于价格与技术指标出现分歧的交易策略。

背离类型

  • 顶背离
  • 底背离
  • 隐性背离

常用背离指标

  • RSI 背离
  • MACD 背离
  • 成交量背离

策略实现

  • 背离识别算法
  • 入场条件
  • 出场条件

回测结果

  • 历史表现
  • 参数优化
  • 风险分析

代码框架

python
# 背离检测示例
def detect_divergence(dataframe, indicator_col, price_col):
    # 背离检测逻辑
    pass