Tan

Tan ( double angle );

Description

Returns the trigonometric tangent of an angle.

Input parameters

Parameter Default value Description
angle - Defines angle (in radians) whose tangent is calculated.

Example

declare lower;
input length = 5;
input min = 30;
input max = 90;
plot CheckingTangentHit = Between((close - close[length]) / length, Tan(min * double.Pi / 180), Tan(max * double.Pi / 180));

The code checks if the tangle of the closing price angle of slope is within the defined limits.