Skip to main content
Any Framework

MACD + Bollinger Bands + RSI Strategy (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
743
743

Install

dotnet add package StockSharp.Strategies.0430_Macd_Bb_Rsi.py --version 5.0.0

No framework information available.

README

MACD + Bollinger Bands + RSI Strategy (Python Version)

This composite setup looks for pullbacks against the prevailing MACD momentum that stretch beyond the Bollinger Bands. When MACD is positive yet price closes below the lower band with an oversold RSI, the strategy buys in anticipation of a trend continuation. The opposite applies for shorts.

Details

  • Entry Criteria:
    • Long: MACD > 0 and Close < LowerBand and RSI < 30
    • Short: MACD < 0 and Close > UpperBand and RSI > 70
  • Long/Short: Both sides
  • Exit Criteria: Opposite signal
  • Stops: None
  • Default Values:
    • MacdFastLength = 12
    • MacdSlowLength = 26
    • MacdSignalLength = 9
    • BBLength = 20
    • BBMultiplier = 2.0
    • RSILength = 14
  • Filters:
    • Category: Trend following
    • Direction: Both
    • Indicators: MACD, Bollinger Bands, RSI
    • Stops: No
    • Complexity: Medium
    • Timeframe: Short-term
    • Seasonality: No
    • Neural networks: No
    • Divergence: Yes
    • Risk level: Medium

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.