Skip to content

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

ParameterArgument typeDescriptionDefault Value
sourcepd.SeriesInput data series-

Outputs

OutputType
ceilnp.ndarray

Example usage

strategy.py
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)