Vector Ceil
CEIL rounds each element of the input array to the nearest integer greater than or equal to that element.
Method
tm.ta.ceil(source)
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
Outputs
Output | Type |
---|---|
ceil | np.ndarray |
Example usage
import tradomate as tm
@tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Trying out Vector Ceil ceil = tm.ta.ceil(data.close)
# Get the last value and print last_value = ceil.iloc[-1] tm.log(f"Last value of Vector Ceil is {last_value}")
# Plot the values of ceil tm.plot(ceil, title="Vector Ceil", overlay=False)