A collection of custom algorithmic trading strategies designed for the Freqtrade crypto trading bot. This pack includes trend-following, mean-reversion, and hybrid regime-switching algorithms optimized for various timeframes.
Timeframe: 4h Concept: Market Regime Switching.
- Ranging Market (Low ADX): Uses Bollinger Bands to trade mean reversion (buy low, sell high).
- Trending Market (High ADX): Switches to MACD to catch strong breakouts and trend continuations.
- Why it works: Adapts to changing market conditions rather than forcing a single logic type.
Timeframe: 4h Concept: Pure Trend Following.
- Entry: Requires MACD Histogram crossover AND strong trend strength (ADX > 25) with positive directional movement (DI+ > DI-).
- Exit: Detects trend exhaustion via MACD and directional reversal.
- Risk: Wide stop-loss (-100%), relying on the strategy's sell signal to close trades dynamically.
Timeframe: 5m (High Frequency) Concept: Volatility-Adjusted Momentum.
- Logic: Identifies potential reversals by combining MACD histogram inflection points with Standard Deviation (
STDDEV) analysis. - Risk Management: Tighter stop-loss (-21%) and stepped ROI for quick scalping.
Timeframe: 5m Concept: Composite EMA Crossover.
- Logic: Note: Despite the filename, this strategy uses a custom EMA weighting system, not Bollinger Bands.
- It calculates a weighted blend of fast (9/18) and slow (32/64) EMA differentials to create a custom momentum oscillator for signal generation.
- Requirement: Ensure you have a working Freqtrade installation.
- Deploy: Copy the
.pyfiles into your Freqtrade user data folder:cp *.py /path/to/freqtrade/user_data/strategies/ - Run: Launch Freqtrade with your desired strategy:
freqtrade trade --strategy Maro4hBbAdxMacd
- Timeframes: Strategies are hardcoded for
4hor5m. Ensure your config file provides data for these candles. - Pairs:
Maro4h_Macd_Adxand the Hybrid strategy specifically request informative pairs (BTC/USD, ETH/USD) for trend confirmation. - Libraries: Requires
talib,numpy, andfreqtradestandard libraries.
These strategies are for educational purposes. Cryptocurrency trading involves high risk. Always backtest extensively (freqtrade backtesting ...) and run in Dry Run mode before deploying real capital.