En esta página
MACD — Moving Average Convergence Divergence — is the indicator everyone has on their chart and few can explain. It draws two lines and a histogram, and most traders read the crossover and ignore the rest. To use it well you only need one idea: MACD measures the rate of change of a trend. It is momentum about momentum.
How MACD is built — in three steps
- MACD line = the 12-period EMA minus the 26-period EMA. When the fast average pulls away from the slow one, the line moves away from zero. This is the trend's strength and direction.
- Signal line = a 9-period EMA of the MACD line. It is a smoothed, lagging version of the MACD line — a baseline to compare against.
- Histogram = MACD line minus signal line. It measures how fast the MACD line is moving relative to its own average. The histogram is the part that leads.
Read that ladder again: price feeds the EMAs, the EMAs feed the MACD line, the MACD line feeds the signal line, and the gap between them feeds the histogram. Each layer is a derivative of the one before. The histogram peaks and turns before the crossover happens — which is why it carries more information than the crossover everyone watches.
The crossover is the laggiest signal
The classic rule — buy when the MACD line crosses above the signal line — is the most-quoted and least-useful read. By construction it is built on a 26-period EMA and a 9-period smoothing on top; it is deeply lagging. In choppy markets it whipsaws relentlessly: dozens of crossovers, each one late, each one paying the spread. Backtest a pure MACD-crossover system on ranging crypto and you will watch fees grind the account down.
What actually works with MACD
- Zero-line context — only take long crossovers while the MACD line is above zero (an established uptrend). This single filter removes most of the whipsaw.
- Histogram momentum — a histogram that is negative but shrinking tells you the down-move is decelerating. That is an early read, ahead of any crossover.
- Divergence — price makes a new high, the histogram makes a lower high: the trend is running out of fuel. As with RSI, treat it as a warning to manage risk, not a standalone reversal trigger.
- Trend filter on top — gate every MACD signal behind a long EMA on price. MACD times; the trend filter decides direction.
Leave 12/26/9 mostly alone
MACD has three parameters, which means three knobs to overfit. Sweeping all three over a wide grid will always find a combination that printed money on your history — and almost always one that means nothing. The default 12/26/9 is a reasonable Schelling point. If you must adapt it, change one parameter, justify it (e.g. a faster setting for a lower timeframe), and confirm it with walk-forward rather than picking the grid winner.
Noon Barbari ships MACD in the built-in indicator library, and one of the reference templates is a MACD trend strategy you can open, inspect, and backtest in a couple of clicks. Add a zero-line filter in the visual designer, then walk-forward it before you trust the parameters.
MACD is not a buy/sell oracle. It is a clean, layered view of trend momentum. Read the histogram for early information, use the zero line for context, and let a separate filter pick direction — and the indicator becomes genuinely useful instead of just decorative.
Pruébalo con tus datos
Cada concepto de arriba está implementado en la plataforma. Backtest, walk-forward, paper trading, luego live — el mismo conjunto de reglas en cada etapa.