mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
doc headers
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
# ROC: Rate of Change (Absolute)
|
||||
|
||||
| Property | Value |
|
||||
| ---------------- | -------------------------------- |
|
||||
| **Category** | Momentum |
|
||||
| **Inputs** | Source (close) |
|
||||
| **Parameters** | `period` (default 9) |
|
||||
| **Outputs** | Single series (Roc) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period + 1` bars |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- ROC (Rate of Change) calculates the absolute price difference between the current value and the value N periods ago.
|
||||
- Parameterized by `period` (default 9).
|
||||
- Output range: Varies (see docs).
|
||||
- Requires `period + 1` bars of warmup before first valid output (IsHot = true).
|
||||
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
|
||||
|
||||
> "The simplest momentum measure: how far has price moved? Not percentage, not ratio - just the raw difference."
|
||||
|
||||
ROC (Rate of Change) calculates the absolute price difference between the current value and the value N periods ago. This is the most basic form of momentum measurement, returning the raw price change in the same units as the input data. Unlike ROCP (percentage) or ROCR (ratio), ROC preserves the original scale, making it directly interpretable in dollar/point terms.
|
||||
|
||||
Reference in New Issue
Block a user