Skip to content

spec: add indicator-macd specification#3186

Merged
MarkusNeusinger merged 1 commit intomainfrom
specification/indicator-macd
Jan 7, 2026
Merged

spec: add indicator-macd specification#3186
MarkusNeusinger merged 1 commit intomainfrom
specification/indicator-macd

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jan 7, 2026

New Specification: indicator-macd

Related to #3181


specification.md

indicator-macd: MACD Technical Indicator Chart

Description

A MACD (Moving Average Convergence Divergence) chart displaying three components: the MACD line, signal line, and histogram. The MACD line represents the difference between 12-day and 26-day exponential moving averages, while the signal line is a 9-day EMA of the MACD. The histogram visualizes the difference between these two lines. This is an essential momentum oscillator for technical analysis, helping traders identify trend direction, momentum strength, and potential buy/sell signals through line crossovers.

Applications

  • Analyzing stock price momentum to identify trend reversals and entry/exit points
  • Generating trading signals for cryptocurrency markets based on MACD/signal line crossovers
  • Confirming trend strength by observing histogram expansion or contraction

Data

  • date (datetime) - Trading date or timestamp for each period
  • macd (numeric) - MACD line value (12-day EMA minus 26-day EMA)
  • signal (numeric) - Signal line value (9-day EMA of MACD)
  • histogram (numeric) - Difference between MACD and signal line
  • Size: 60-200 periods for meaningful pattern recognition
  • Example: Daily MACD values calculated from stock closing prices over 120 trading days

Notes

  • Display histogram as bars with green (positive) and red (negative) colors
  • Include a zero reference line to highlight crossover signals
  • MACD and signal lines should use distinct colors (e.g., blue and orange)
  • Standard parameters are 12, 26, 9 but should be noted in the chart
  • Typically shown as a separate panel below a price chart, but can stand alone

Next: Add approved label to the issue to merge this PR.


🤖 spec-create workflow

@MarkusNeusinger MarkusNeusinger merged commit cb0375f into main Jan 7, 2026
4 checks passed
@MarkusNeusinger MarkusNeusinger deleted the specification/indicator-macd branch January 7, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant