MACD Histo (MACDHIST)

StratCraft indicator page for the MACD histogram.

Route: /indicators/macdhist/

What It Does

MACDHIST shows the distance between the MACD line and its signal line, which makes momentum shifts easier to see.

Formula

MACD Histogram = MACD Line - Signal Line

Parameters

  • period_me1 - default 12
  • period_me2 - default 26
  • period_signal - default 9
  • movav - default ExponentialMovingAverage

C++23 API

#include <nonabt/indicators/macdhist.hpp>
auto macdHist = std::make_unique<nonabt::MACDHIST>(data().close(), 12, 26, 9, "ExponentialMovingAverage");

Common Usage

  • Watch zero-line crosses for momentum regime changes.
  • Use histogram expansion to confirm trend acceleration.
  • Pair it with MACD line crossovers for cleaner timing.