tensortrade.environments.actions.discrete.simple_discrete_strategy module

class tensortrade.environments.actions.discrete.simple_discrete_strategy.SimpleDiscreteStrategy(n_bins=24, base_symbol='USD', asset_symbol='BTC')[source]

Bases: tensortrade.environments.actions.action_strategy.ActionStrategy

Simple discrete strategy, which uses fixed intervals to calculate the trade amount.

__init__(n_bins=24, base_symbol='USD', asset_symbol='BTC')[source]
# Arguments

n_bins: optional number of timesteps used to calculate the trade amount base_symbol: optional the symbol that defines the notional value asset_symbol: optional the asset symbol

get_trade(action, exchange)[source]

Suggest a trade to the trading environment

# Arguments

action: optional number of timesteps used to calculate the trade amount exchange: the AssetExchange

# Returns

the asset symbol, the type of trade, amount and price