tensortrade.actions.action_strategy module¶
-
class
tensortrade.actions.action_strategy.
ActionStrategy
(action_space, dtype=<class 'numpy.float16'>)[source]¶ Bases:
object
An abstract strategy for determining the action to take at each timestep within a trading environment.
-
property
action_space
¶ The shape of the actions produced by the strategy.
- Return type
Space
-
property
dtype
¶ A type or str corresponding to the dtype of the action_space.
-
property
exchange
¶ The exchange being used by the current trading environment.
This will be set by the trading environment upon initialization. Setting the exchange causes the strategy to reset.
- Return type
-
property