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