Vector Trigonometric ACos
ACOS calculates the arc cosine of a value.
Method
Section titled “Method”tm.ta.acos(source)Inputs
Section titled “Inputs”| Parameter | Argument type | Description | Default Value |
|---|---|---|---|
| source | pd.Series | Input data series | - |
Outputs
Section titled “Outputs”| Output | Type |
|---|---|
| acos | np.ndarray |
Example usage
Section titled “Example usage”import tradomate as tm
@tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Trying out Vector Trigonometric ACos acos = tm.ta.acos(data.close)
# Get the last value and print last_value = acos.iloc[-1] tm.log(f"Last value of Vector Trigonometric ACos is {last_value}")
# Plot the values of acos tm.plot(acos, title="Vector Trigonometric ACos", overlay=False)