Skip to content

Commit

Permalink
TODO added
Browse files Browse the repository at this point in the history
  • Loading branch information
deependersingla committed Aug 22, 2016
1 parent 0f18d93 commit 787ae88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensor-reinforcement/train_stock.py
Expand Up @@ -49,11 +49,13 @@ def new_stage_data(action, portfolio, old_state, new_state, portfolio_value, don
#buying
if action == 1:
#old_price = old_state[1]
#Todo: Add transaction cost here also
portfolio_value -= price
portfolio += 1
#selling
elif action == 2:
#old_price = old_state[2]
#Todo: Add transaction cost here also
portfolio_value += price
portfolio -= 1
elif action == 0:
Expand Down

0 comments on commit 787ae88

Please sign in to comment.