Math Transform

Vector Tangent (TAN)

Vector Trigonometric Tan

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

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

How Traders Use It

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.

Highlights

TAN at a Glance

Tangent transformation: sin/cos
Converts angles to slope ratios
Has asymptotes at odd π/2 multiples
Used for slope and gradient calculations
Pair with ATAN for angle/slope conversions
Relevant for trend angle analysis
Popular in slope-based indicators

Get Started

Automate TAN with cryptorobot.ai

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.