tensortrade.env.stoppers.abstract module

class tensortrade.env.stoppers.abstract.AbstractStopper(*args, **kwargs)[source]

Bases: SchemeMixin, Component, TimeIndexed

A component for determining if the environment satisfies a defined stopping criteria.

registered_name = 'stopper'
reset() None[source]

Resets the stopper.

abstract stop() bool[source]

Computes if the environment satisfies the defined stopping criteria. :return: If the environment should stop or continue. :rtype: bool