notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.73k stars 539 forks source link

TradingEnv.py why we add 6 to n_features? #136

Open loliksamuel opened 5 years ago

hankly commented 4 years ago

6 is about feature about agent in account_history self.account_history = pd.DataFrame([{ 'balance': self.balance, 'asset_held': self.asset_held, 'asset_bought': 0, 'purchase_cost': 0, 'asset_sold': 0, 'sale_revenue': 0, }])

csaluigm commented 4 years ago

i was wondering the same thing. Commit a2a8a6a11fac4e77b1f40334006281eedf4cce87 gives some info Add "asset_held" to "account_history"