tensortrade.actions.discrete_action_strategy module¶
-
class
tensortrade.actions.discrete_action_strategy.
DiscreteActionStrategy
(n_actions=20, instrument_symbol='BTC', max_allowed_slippage_percent=1.0)[source]¶ Bases:
tensortrade.actions.action_strategy.ActionStrategy
Simple discrete strategy, which calculates the trade amount as a fraction of the total balance.
-
__init__
(n_actions=20, instrument_symbol='BTC', max_allowed_slippage_percent=1.0)[source]¶ - Parameters
n_actions (
int
) – The number of bins to divide the total balance by. Defaults to 20 (i.e. 1/20, 2/20, …, 20/20).instrument_symbol (
str
) – The exchange symbol of the instrument being traded. Defaults to ‘BTC’.max_allowed_slippage – The maximum amount above the current price the strategy will pay for an instrument. Defaults to 1.0 (i.e. 1%).
-
property
dtype
¶ A type or str corresponding to the dtype of the action_space.
-