Closed arunavo4 closed 5 years ago
The current TradingEnv
supports any reward_fn
to be passed in as kwargs
. All of the necessary data you need to calculate the weighted unrealized reward should already be available to you in the net_worths
and account_history
arguments of reward_fn
.
A better solution (needed for me to review the PR), would be to create a new directory lib/rewards
and a new file lib/rewards/weighted_unrealized.py
, which implements the reward_fn
interface outside of the scope of TradingEnv
.
Great I will try to work it out .
@notadamking Added Weighted Unrealised Reward Function. This is the best way to reward a agent in our case, that I have found in my experience.