dogabot dogabot

strategy

MACD (Moving Average Convergence Divergence)

What MACD, signal line, and histogram represent, and how dogabot’s MACD rule uses the histogram for signals.

strategyindicatorsmacd

MACD (Moving Average Convergence Divergence) tracks the relationship between two EMAs of price. It helps identify momentum shifts and trend changes.

Components

LineMeaning
MACD lineFast EMA minus slow EMA
Signal lineEMA of the MACD line
HistogramMACD line minus signal line

Formula

MACD line = EMA_fast(close) − EMA_slow(close)

Signal line = EMA_signal(MACD line)

Histogram = MACD line − Signal line

Defaults on dogabot: fast 12, slow 26, signal 9.

Typical settings

Defaults on dogabot match widely used values:

How traders interpret MACD

In dogabot

The MACD trading rule uses the histogram sign, not a MACD/signal line crossover:

This matches the Go evaluator used in backtests and live automations.

Example

Using defaults (12 / 26 / 9) on ETH/USDT 1h, the MACD histogram moves from −5 to +2 on the last bar. The MACD rule sees a positive histogram and may signal buy. A drop from +3 to −1 would flip toward sell.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest