ArcSine
systemic:core-arcsinMathInputs
| Name | Type | Description |
|---|---|---|
| Data | Number series | The numeric series to take the arcsine of. |
Outputs
| Name | Type | Description |
|---|---|---|
| ArcSin | Number series | The arcsine of each input value, in **radians**. |
Cost
0.198 + 0.00586·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Arcsine module computes the inverse sine of each value in a series. It returns the angle, in radians, whose sine equals that value. Its output is symmetric around zero, which makes it useful for analyzing oscillating indicators and finding the phase of a cycle.
Mathematical Foundation
Domain and Range
flowchart LR
subgraph Domain["Input Domain"]
D["-1 ≤ x ≤ 1"]
end
subgraph Transform["ARCSIN"]
F["arcsin(x)"]
end
subgraph Range["Output Range"]
R["-π/2 to +π/2 radians<br/>(-90° to +90°)"]
end
D --> F --> R
| Property | Value |
|---|---|
| Domain | |
| Range | radians (-90° to 90°) |
Key Advantage: Unlike arccos, the arcsine output is symmetric around zero. This suits indicators where zero-crossings matter.
Key Values Reference
| Input | Output (radians) | Output (degrees) | Oscillator Interpretation |
|---|---|---|---|
| 1 | 1.571 | 90° | Maximum bullish extreme |
| 0.5 | 0.524 | 30° | Moderately bullish |
| 0 | 0 | 0° | Neutral / zero-crossing |
| -0.5 | -0.524 | -30° | Moderately bearish |
| -1 | -1.571 | -90° | Maximum bearish extreme |
Financial Application: Oscillator Phase Extraction
Many technical oscillators move between -1 and 1 once they are normalized. Arcsine turns these values into a phase angle, which shows where you are in the cycle.
Cycle Phase Trading
flowchart TD
subgraph Input["Normalized Oscillator"]
OSC["RSI normalized to [-1, 1]<br/>or Stochastic"]
end
subgraph Transform["Phase Extraction"]
ARCSIN["ARCSIN Module"]
end
subgraph Phase["Cycle Position"]
P90["+90° = Peak"]
P0["0° = Midpoint"]
N90["-90° = Trough"]
end
OSC --> ARCSIN
ARCSIN --> P90 & P0 & N90
Interpretation:
- Phase near +90°: Oscillator at maximum, possible exhaustion
- Phase near 0°: Oscillator crossing equilibrium, momentum shift
- Phase near -90°: Oscillator at minimum, possible reversal
Creative Use Case: Momentum Angle Indicator
Build an "angular momentum" indicator that emphasizes changes near the extremes:
flowchart LR
subgraph System["Angular Momentum System"]
RSI["RSI (0-100)"] --> NORM["Normalize to [-1, 1]"]
NORM --> ARCSIN["ARCSIN"]
ARCSIN --> DEG["Convert to Degrees"]
DEG --> ROC["Rate of Change"]
ROC --> Signal["Angular Velocity"]
end
Why This Works
The arcsine transformation:
- Compresses the middle — Small moves near RSI 50 give small angle changes
- Expands the extremes — Small moves near RSI 0 or 100 give large angle changes
- Highlights exhaustion — Slowing angular velocity at the extremes can signal a reversal
Example Interpretation
| RSI | Normalized | Arcsin (degrees) | Meaning |
|---|---|---|---|
| 95 | 0.9 | 64° | Near peak, slowing |
| 50 | 0 | 0° | Neutral momentum |
| 5 | -0.9 | -64° | Near trough |
Variance Stabilization: The Arcsine Transformation
In statistics, the arcsine transformation is used to stabilize the variance of proportion data. In finance, this applies to:
- Win rate percentages — Make win rates easier to compare
- Allocation weights — Analyze changes in portfolio proportions
- Market share data — Compare proportional changes fairly
Where is a proportion between 0 and 1.
Handling Invalid Inputs
Arcsine is only defined for values between -1 and 1. If an input value is outside , the output on that bar is empty: the math is undefined there, and the module never substitutes a number. To avoid empty outputs from out-of-range data:
- Normalize the data first so it stays in the valid range
- Use the CLAMP module to limit inputs before the transformation
Missing Data
When an input value is missing (empty) — for example a data gap or a day when the market was closed — the output on that bar is empty. The module never fills in a value for data it does not have.
Note the difference: a missing input means there is no value on this bar, while an out-of-range input means there is a value, but arcsine is undefined for it. Both give an empty output.
Converting Radians to Degrees
The output is in radians. To convert to degrees:
Use a Multiply module with a constant of 57.2958 to convert.