ArcTangent
systemic:core-arctanMathInputs
| Name | Type | Description |
|---|---|---|
| Data | Number series | The numeric series to take the arctangent of. |
Outputs
| Name | Type | Description |
|---|---|---|
| ArcTan | Number series | The arctangent of each input value, in **radians**. |
Cost
0.198 + 0.00585·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Arctangent (arctan) module computes the inverse tangent of each value in a series. It returns the angle, in radians, whose tangent equals that value.
Mathematical Foundation
Domain and Range
| Property | Value |
|---|---|
| Domain | — all real numbers |
| Range | radians (-90° to 90°) |
Key Advantage: Unlike arcsine and arccosine, arctangent accepts any real number as input. You can use it on unbounded series without worrying about invalid inputs.
Properties
- (45°)
- (-45°)
- for all
- As ,
- As ,
Key Values
| Input | Output (radians) | Output (degrees) |
|---|---|---|
| 10 | 1.471 | 84.3° |
| 1 | 0.785 | 45° |
| 0.5 | 0.464 | 26.6° |
| 0 | 0 | 0° |
| -0.5 | -0.464 | -26.6° |
| -1 | -0.785 | -45° |
| -10 | -1.471 | -84.3° |
Behavior in Systemic
The Arctangent module applies the arctan function to every value in the input series, bar by bar.
Handling Any Input
Unlike arcsine and arccosine, arctangent is defined for all real numbers. Any numeric input gives a valid angle. Even infinite values map to . This makes arctangent a safe choice for raw, unbounded data.
Missing Data
If an input value is missing (empty) on a bar — a data gap or a day when the market was closed — the output is empty on that bar. The module never substitutes a number for missing data. Every other input still gives its real angle.
Arctangent has no invalid inputs, so an empty output always means the input was missing on that bar, never a math error.
Creative Applications
Data Normalization (Squashing)
Arctangent is a squashing function: it compresses any unbounded range into the bounded interval :
- Large positive values → approach
- Large negative values → approach
- Values near zero → approximately linear response
This is useful for:
- Outlier compression — reducing the impact of extreme values
- Signal normalization — converting unbounded indicators into bounded ranges
- Rate-of-change smoothing — compressing large price moves
Momentum Analysis
Apply arctangent to rate-of-change or momentum indicators to create a bounded momentum oscillator. Extreme readings, positive and negative, are compressed. This makes the signal easier to read and to compare across periods or assets.
flowchart LR
Price[Price Data] --> ROC[Rate of Change]
ROC --> ARCTAN((Arctan))
ARCTAN --> Bounded["Bounded Momentum<br/>(-π/2 to +π/2)"]
Converting Radians to Degrees
The output is in radians. To convert to degrees, multiply by :
Use a Multiply module with a constant of approximately 57.2958 to convert.