Skip to content

Vector Trigonometric Sinh

SINH calculates the hyperbolic sine of a value.

Method

tm.ta.sinh(source)

Inputs

ParameterArgument typeDescriptionDefault Value
sourcepd.SeriesInput data series-

Outputs

OutputType
sinhnp.ndarray

Example usage

strategy.py
import tradomate as tm
@tm.strategy()
def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Trying out Vector Trigonometric Sinh
sinh = tm.ta.sinh(data.close)
# Get the last value and print
last_value = sinh.iloc[-1]
tm.log(f"Last value of Vector Trigonometric Sinh is {last_value}")
# Plot the values of sinh
tm.plot(sinh, title="Vector Trigonometric Sinh", overlay=False)