Absolute
systemic:core-absMathInputs
| Name | Type | Description |
|---|---|---|
| Data | Number series | The numeric series to convert to absolute values. |
Outputs
| Name | Type | Description |
|---|---|---|
| Absolute | Number series | The absolute value of each input value. |
Cost
0.198 + 0.00591·n credits for n bars, rounded up. The marks are each plan's limit of bars.
Removes the sign of every value in a series. Positive values stay the same, negative values become positive, and zero stays zero.
| Input | Output |
|---|---|
| 5 | 5 |
| -3 | 3 |
| 0 | 0 |
| -7.5 | 7.5 |
Missing Data
A value can be missing (empty) — a data gap, or a bar when the market was closed, such as a weekend on a stock series.
- An empty input gives an empty output on the same bar. No zero or other substitute is filled in.
- Every real number has an absolute value, so an empty output always means "no input value on this bar", never a math error.
When to Use
Use absolute value when you care about how much something moved, not in which direction:
| Use Case | Example |
|---|---|
| Volatility measurement | Size of daily returns regardless of direction |
| Distance from baseline | How far price is from a moving average |
| Error magnitude | Tracking error, deviation from target |
Practical Example: Movement Magnitude
Take the absolute value of daily returns to measure how large the moves are:
| Day | Return | |Return| |
|---|---|---|
| Mon | +2.5% | 2.5% |
| Tue | -1.8% | 1.8% |
| Wed | -4.2% | 4.2% |
| Thu | +0.3% | 0.3% |
The average of these magnitudes (2.2%) shows how much the asset typically moves per day. Volatility measures such as Average True Range build on the same idea.
Volatility Compression Detection
Absolute value can also help detect stretches of low volatility, which often come before large moves. When the average absolute return is very low compared with its own history, the market may be "coiling" for a breakout.
flowchart LR
subgraph Pipeline["Volatility Compression Pipeline"]
DR["Daily Return"]
ABS["ABS Module"]
SMA["Simple Moving Average"]
PERC["Percentile"]
SIGNAL["Low Percentile = Signal"]
end
DR --> ABS
ABS --> SMA
SMA --> PERC
PERC --> SIGNAL
style ABS fill:#4a90d9,stroke:#333,color:#fff
style SIGNAL fill:#e74c3c,stroke:#333,color:#fff
When the average absolute return falls into the lowest 10% of its values over the past year, treat it as a warning: a large move may follow. This effect is well documented (see volatility clustering) and can inform both directional and options strategies.
Related Modules
- SUB — Calculate differences (then apply ABS for unsigned distance)
- SQRT — Square root, another way to shrink large values
- POW — Use exponent 0.5 for a dampened magnitude
Key Takeaways
| Use Case | What ABS Does | Why It Matters |
|---|---|---|
| Volatility analysis | Converts returns to magnitudes | Measures movement intensity |
| Deviation measurement | Removes directional sign | Focuses on distance from reference |
| Symmetric indicators | Equal treatment of up/down | Ideal for oscillators |
| Risk metrics | Absolute drawdown/deviation | Direction-agnostic risk assessment |
Further Reading
- Absolute Value - Khan Academy — Foundational math concepts
- Average True Range (ATR) - Fidelity — A popular volatility indicator built on absolute values
- Mean Absolute Deviation - Khan Academy — Statistical measure using absolute values
- Volatility Clustering - Wikipedia — The phenomenon of clustered volatility in financial markets