Under the Hood
COS applies the cosine trigonometric function to each value in a data series (interpreting values as radians). COS oscillates between -1 and +1 with a period of 2π. This function is fundamental in cycle analysis, creating oscillating patterns useful for modeling market cycles or building wave-based indicators. COS is typically used with normalized or phase-adjusted data rather than raw prices.
In Practice
Developers use COS in custom cycle indicators, creating synthetic oscillators based on phase angles, or building wave-based market models. Particularly useful when combined with Hilbert Transform outputs for quadrature analysis, or with phase calculations for creating leading cycle indicators. Pair with SIN for complete in-phase/quadrature systems, or use with detected cycle periods for adaptive oscillators. Essential for MESA-style indicators and custom cycle analysis algorithms.
Build automated strategies using Vector Cosine and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.