Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
enzbus committed Nov 10, 2023
1 parent 1e2f6eb commit 6eba397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvxportfolio/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def simulate(self, t, t_next, h, policy, past_returns, current_returns,
u = self._round_trade_vector(u, current_prices)

# recompute cash
u.iloc[-1] = sum(u.iloc[:-1])
u.iloc[-1] = -sum(u.iloc[:-1])
assert sum(u) == 0.

# compute post-trade holdings (including cash balance)
Expand Down

0 comments on commit 6eba397

Please sign in to comment.