class tensortrade.env.generic.components.reward_scheme.RewardScheme[source]

A component to compute the reward at each step of an episode.

registered_name = 'rewards'
reset() → None[source]

Resets the reward scheme.

reward(env: TradingEnv) → float[source]

Computes the reward for the current step of an episode.

Parameters: env (TradingEnv) – The trading environment float – The computed reward.