Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions env/StockTradingEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,9 @@ def render(self, mode='human', close=False):
# Render the environment to the screen
profit = self.net_worth - INITIAL_ACCOUNT_BALANCE

print(f'Step: {self.current_step}')
print(f'Balance: {self.balance}')
print(
f'Shares held: {self.shares_held} (Total sold: {self.total_shares_sold})')
print(
f'Avg cost for held shares: {self.cost_basis} (Total sales value: {self.total_sales_value})')
print(
f'Net worth: {self.net_worth} (Max net worth: {self.max_net_worth})')
print(f'Profit: {profit}')
print('Step: {0}'.format(self.current_step))
print('Balance: {0}'.format(self.balance))
print('Shares held: {0} (Total sold: {1})'.format(self.shares_held,self.total_shares_sold))
print('Avg cost for held shares: {0} (Total sales value: {1})'.format(self.cost_basis,self.total_sales_value))
print('Net worth: {0} (Max net worth: {1})'.format(self.net_worth,self.max_net_worth))
print('Profit: {0}'.format(profit))
Binary file added env/__pycache__/StockTradingEnv.cpython-35.pyc
Binary file not shown.
Binary file added env/__pycache__/__init__.cpython-35.pyc
Binary file not shown.