Under the Hood
TAN applies the tangent trigonometric function to each value in a data series (interpreting values as radians). TAN = SIN / COS and has vertical asymptotes at odd multiples of π/2 where it approaches ±infinity. This function is particularly useful for slope and angle calculations - small angle approximations use TAN for representing gradients. TAN converts angles into slope ratios, making it valuable for trend angle analysis and rate-based indicators.
In Practice
Developers use TAN for converting phase angles into slope representations, building angle-based trend strength indicators, or creating gradient measures from angular data. Particularly useful in conjunction with ATAN for bidirectional angle/slope conversions, or for implementing indicators similar to LINEARREG_ANGLE that measure trend steepness. Combine with angle calculations for creating slope-based filters or adaptive thresholds. Useful for building custom momentum indicators that use angular/slope representations of price movement.
Build automated strategies using Vector Tangent and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.