Skip to content

MACD Strategy Templates

  1. MACD Signal Line + ADX — Crossovers in trending markets
  2. MACD + RSI — Momentum confluence
  3. MACD + EMA Direction — Trend confirmation with timing

Strategy 1: MACD Signal Line + ADX

Overview

Trade MACD signal line crossovers only in trending markets (ADX > 25).

When This Works Best

  • Trending markets
  • 4H to 1D timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size45% of equity (REL)
Order TypeMARKET
TimeoutCOOLDOWN_ONLY, 3 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_above_signalLine
RequiredADXadx_above_threshold25

Long Exit Conditions

SettingValue
RequiredMACD · macdLine_below_signalLine
Stop Loss5% (REL), trailing
Take Profit10% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_below_signalLine
RequiredADXadx_above_threshold25

Short Exit Conditions

SettingValue
RequiredMACD · macdLine_above_signalLine
Stop Loss5% (REL), trailing
Take Profit10% (REL)

Recommended Parameters

IndicatorParameterValueNotes
MACDFast12 barsStandard
MACDSlow26 barsStandard
MACDSignal9 barsStandard
ADXThreshold25Trend filter

Strategy 2: MACD + RSI Momentum

Overview

MACD crossover confirmed by RSI not being overbought/oversold.

When This Works Best

  • Momentum transitions
  • 1H to 4H timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size35% of equity (REL)
Order TypeMARKET
TimeoutREGULAR, 2 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_above_signalLine
RequiredRSIrsi_below_threshold65

Long Exit Conditions

SettingValue
RequiredMACD · macdLine_below_signalLine
Stop Loss4% (REL)
Take Profit8% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_below_signalLine
RequiredRSIrsi_above_threshold35

Short Exit Conditions

SettingValue
RequiredMACD · macdLine_above_signalLine
Stop Loss4% (REL)
Take Profit8% (REL)

Recommended Parameters

IndicatorParameterValueNotes
MACDFast/Slow/Signal12/26/9Standard
RSIPeriod14Standard

Strategy 3: MACD + EMA Trend

Overview

Only take MACD crossovers in the direction confirmed by EMA trend.

When This Works Best

  • Trending markets
  • 4H to 1D timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size40% of equity (REL)
Order TypeMARKET
TimeoutCOOLDOWN_ONLY, 5 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_above_signalLine
RequiredEMAprice_above_ema

Long Exit Conditions

SettingValue
RequiredEMA · price_below_ema
Stop Loss5% (REL)
Take Profit10% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredMACDmacdLine_below_signalLine
RequiredEMAprice_below_ema

Short Exit Conditions

SettingValue
RequiredEMA · price_above_ema
Stop Loss5% (REL)
Take Profit10% (REL)

Recommended Parameters

IndicatorParameterValueNotes
MACDFast/Slow/Signal12/26/9Standard
EMAPeriod20 barsDirection

  • Test MACD periods: 8/21/5 vs 12/26/9 for different responsiveness
  • Compare MACD vs PPO: PPO normalizes by price — better for cross-asset comparison