mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 12:38:06 +00:00
doc headers
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
# MACD: Moving Average Convergence Divergence
|
||||
|
||||
| Property | Value |
|
||||
| ---------------- | -------------------------------- |
|
||||
| **Category** | Momentum |
|
||||
| **Inputs** | Source (close) |
|
||||
| **Parameters** | `fastPeriod` (default 12), `slowPeriod` (default 26), `signalPeriod` (default 9) |
|
||||
| **Outputs** | Multiple series (Signal, Histogram) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- The Moving Average Convergence Divergence measures momentum through the relationship between two exponential moving averages.
|
||||
- Parameterized by `fastperiod` (default 12), `slowperiod` (default 26), `signalperiod` (default 9).
|
||||
- Output range: Varies (see docs).
|
||||
- Requires 1 bar of warmup before first valid output (IsHot = true).
|
||||
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
|
||||
|
||||
> "The trend is your friend, until it bends." — Ed Seykota
|
||||
|
||||
The Moving Average Convergence Divergence measures momentum through the relationship between two exponential moving averages. Created by Gerald Appel in 1979, the indicator transforms price into a bounded oscillator that reveals trend strength, direction, and potential reversals. Standard parameters (12, 26, 9) detect monthly and biweekly cycles: the 26-period represents roughly one trading month, the 12-period half that duration.
|
||||
@@ -370,4 +387,4 @@ Zero allocations in streaming hot path. Batch mode uses ArrayPool, returning mem
|
||||
- Aspray, T. (1986). "MACD Histogram." *Technical Analysis of Stocks & Commodities*.
|
||||
- Murphy, J. (1999). *Technical Analysis of the Financial Markets*. New York Institute of Finance.
|
||||
- Pring, M. (2002). *Technical Analysis Explained*. McGraw-Hill.
|
||||
- Elder, A. (1993). *Trading for a Living*. Wiley. (Discussion of MACD histogram interpretation)
|
||||
- Elder, A. (1993). *Trading for a Living*. Wiley. (Discussion of MACD histogram interpretation)
|
||||
|
||||
Reference in New Issue
Block a user