Skip to content

Vector Ceil

CEIL rounds each element of the input array to the nearest integer greater than or equal to that element.

tm.ta.ceil(source)
ParameterArgument typeDescriptionDefault Value
sourcepd.SeriesInput data series-
OutputType
ceilnp.ndarray
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)