is_monotonically_decreasing#
API documentation for tradeexecutor.utils.increasing.is_monotonically_decreasing Python function.
- is_monotonically_decreasing(series, index=2)[source]#
Check if a series is monotonically decreasing.
- Parameters:
series (pandas.core.series.Series | list) – A pandas.Series object or a list.
index (int) – The number of latest elements to check for monotonically decreasing series.
- Returns:
bool. True if the series is monotonically decreasing, False otherwise.
- Return type: