TickAtlas
trend 10 min read Updated 2026-03-21

Moving Average Convergence Divergence (MACD)

MACD is a trend-following momentum indicator that shows the relationship between two EMAs. It consists of the MACD line, signal line, and histogram, making it one of the most versatile indicators available.

TL;DR

  • MACD is a trend indicator used in technical analysis
  • MACD crossing above signal line is bullish; crossing below is bearish. Histogram shows momentum strength. Zero-line crossovers indicate trend direction changes.
  • Best timeframes: H1, H4, D1
  • Skip to API docs →

What is Moving Average Convergence Divergence?

MACD is a trend-following momentum indicator that shows the relationship between two EMAs. It consists of the MACD line, signal line, and histogram, making it one of the most versatile indicators available.

How MACD is Calculated

formula
MACD Line = EMA(12) - EMA(26)
Signal Line = EMA(9) of MACD Line
Histogram = MACD Line - Signal Line

How to Interpret MACD

MACD crossing above signal line is bullish; crossing below is bearish. Histogram shows momentum strength. Zero-line crossovers indicate trend direction changes.

Trading Strategies Using MACD

Strategy 1: MACD Crossover

The classic MACD strategy trades when the MACD line crosses the signal line.

Entry Rules

Buy when MACD crosses above signal line. Sell when MACD crosses below signal line.

Exit Rules

Exit on reverse crossover or when histogram starts declining after reaching extreme.

Strategy 2: MACD Divergence

Divergence between MACD and price signals potential reversals.

Entry Rules

Enter long on bullish divergence (price lower low, MACD higher low). Enter short on bearish divergence.

Exit Rules

Target previous swing level. Use ATR for stop loss placement.

Combining MACD with Other Indicators

MACD works best when combined with complementary indicators:

  • MACD + RSI: Combine for stronger confluence signals
  • MACD + EMA: Combine for stronger confluence signals
  • MACD + ADX: Combine for stronger confluence signals

MACD Across Different Timeframes

MACD works across all 7 timeframes but performs best on H1, H4, D1 for most trading styles.

H1 H4 D1

Learn about all 7 timeframes →

Accessing MACD via TickAtlas API

GET https://tickatlas.com/v1/indicator

Python Example

python
import requests

url = "https://tickatlas.com/v1/indicator"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "symbol": "EURUSD",
  "indicator": "MACD_main",
  "timeframe": "H1"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data)

Sample Response

200 OK
{
  "symbol": "EURUSD",
  "indicator": "MACD_main",
  "timeframe": "H1",
  "timestamp": "2026-03-21T14:00:00Z",
  "value": 58.43,
  "signal": "neutral"
}

Common Mistakes to Avoid

  1. 1

    Trading MACD signals without considering the overall trend

  2. 2

    Ignoring MACD histogram divergence which often precedes the crossover

  3. 3

    Using MACD in very choppy/sideways markets where it generates many false signals

Frequently Asked Questions

What are the best MACD settings?

The standard settings (12, 26, 9) work well for most markets. Some traders use (8, 17, 9) for faster signals or (5, 35, 5) for smoother signals on lower timeframes.

How to read the MACD histogram?

Rising histogram bars (becoming more positive) indicate increasing bullish momentum. Falling bars indicate weakening momentum. The histogram crossing zero corresponds to the MACD/signal line crossover.

Continue learning

Ready to use MACD data in your application?

Start your free trial and access real-time MACD data across 7 timeframes.