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