MACD Divergence (Python)

MACD Divergence looks for disagreement between price action and the MACD indicator. Higher highs in price but lower highs in MACD suggest weakening momentum (bearish divergence), while lower lows in p...

1.0K 下载量
☆☆☆☆☆ 评分
0 评价
NuGet 5.0.1 Install-Package StockSharp.Strategies.0061_MACD_Divergence.py -Version 5.0.1
MACD Divergence (Python)

MACD Divergence looks for disagreement between price action and the MACD indicator. Higher highs in price but lower highs in MACD suggest weakening momentum (bearish divergence), while lower lows in price and higher MACD lows hint at bullish reversal. After detecting divergence, the system waits for MACD to cross its signal line before entering. The trade is closed if MACD crosses back or the stop-loss triggers.

  • Entry Criteria: Bullish or bearish divergence plus MACD crossing signal line.

  • Long/Short: Both directions.

  • Exit Criteria: MACD crosses opposite direction or stop.

  • Stops: Yes.

  • Default Values:

  • FastMacdPeriod = 12

  • SlowMacdPeriod = 26

  • SignalPeriod = 9

  • DivergencePeriod = 5

  • CandleType = TimeSpan.FromMinutes(15)

  • StopLossPercent = 2.0m [*]Filters:

  • Category: Divergence

  • Direction: Both

  • Indicators: MACD

  • Stops: Yes

  • Complexity: Intermediate

  • Timeframe: Intraday

  • Seasonality: No

  • Neural Networks: No

  • Divergence: Yes

  • Risk Level: Medium

用户评价

登录 以撰写评价

暂无评价