tensortrade.feed.api.float.accumulators module¶
- class tensortrade.feed.api.float.accumulators.CumMax(*args, **kwargs)[source]¶
-
A stream operator that creates a cumulative maximum of values.
- Parameters:
skip_na (bool, default True) – Exclude NA/null values. If a value is NA, the result will be NA.
References
[1] https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.cummax.html
- class tensortrade.feed.api.float.accumulators.CumMin(*args, **kwargs)[source]¶
-
A stream operator that creates a cumulative minimum of values.
- Parameters:
skip_na (bool, default True) – Exclude NA/null values. If a value is NA, the result will be NA.
References
[1] https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.cummin.html
- class tensortrade.feed.api.float.accumulators.CumProd(*args, **kwargs)[source]¶
-
A stream operator that creates a cumulative product of values.
References
- class tensortrade.feed.api.float.accumulators.CumSum(*args, **kwargs)[source]¶
-
A stream operator that creates a cumulative sum of values.
References
[1] https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.cumsum.html
- tensortrade.feed.api.float.accumulators.cummax(s: Stream[float], skipna: bool = True) Stream[float] [source]¶
Computes the cumulative maximum of a stream.
- Parameters:
s (Stream[float]) – A float stream.
skipna (bool, default True) – Exclude NA/null values. If a value is NA, the result will be NA.
- Returns:
Stream[float] – The cumulative maximum stream of s.
- tensortrade.feed.api.float.accumulators.cummin(s: Stream[float], skipna: bool = True) Stream[float] [source]¶
Computes the cumulative minimum of a stream.
- Parameters:
s (Stream[float]) – A float stream.
skipna (bool, default True) – Exclude NA/null values. If a value is NA, the result will be NA.
- Returns:
Stream[float] – The cumulative minimum stream of s.