Systemicbeta

ArcSine

systemic:core-arcsinMath

Inputs

NameTypeDescription
DataNumber seriesThe numeric series to take the arcsine of.

Outputs

NameTypeDescription
ArcSinNumber seriesThe arcsine of each input value, in **radians**.

Cost

7
credits per run
1,000
bars

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.

y=arcsin⁡(x)wheresin⁡(y)=xy = \arcsin(x) \quad \text{where} \quad \sin(y) = x

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
PropertyValue
Domainx∈[−1,1]x \in [-1, 1]
Rangey∈[−π2,π2]y \in \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] 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 xxOutput (radians)Output (degrees)Oscillator Interpretation
11.57190°Maximum bullish extreme
0.50.52430°Moderately bullish
000°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:

  1. Compresses the middle — Small moves near RSI 50 give small angle changes
  2. Expands the extremes — Small moves near RSI 0 or 100 give large angle changes
  3. Highlights exhaustion — Slowing angular velocity at the extremes can signal a reversal

Example Interpretation

RSINormalizedArcsin (degrees)Meaning
950.964°Near peak, slowing
5000°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
Transformed=arcsin⁡(p)\text{Transformed} = \arcsin(\sqrt{p})

Where pp 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 [−1,1][-1, 1], 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:

degrees=radians×180π≈radians×57.2958\text{degrees} = \text{radians} \times \frac{180}{\pi} \approx \text{radians} \times 57.2958

Use a Multiply module with a constant of 57.2958 to convert.


Further Reading

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5