tensortrade.environments.actions.continuous.simple_continuous_strategy module

class tensortrade.environments.actions.continuous.simple_continuous_strategy.SimpleContinuousStrategy(base_symbol='USD', asset_symbol='BTC')[source]

Bases: tensortrade.environments.actions.action_strategy.ActionStrategy

Simple continuous strategy, that executes trades on a continuous basis.

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

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