Skip to content

Commit

Permalink
fixed simulate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperjo committed Feb 29, 2024
1 parent 241b33d commit f49e5ab
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 215 deletions.
2 changes: 1 addition & 1 deletion cvx/stat_arb/ccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def get_q(self, prices: pd.DataFrame, mu=None, T_max=500):
)

q[exit_index + exit_length :] = 0
q[-1] = 0
q.iloc[-1] = 0

exit_trigger = min(exit_index, len(q) - 1)
exit_trigger = q.index[exit_trigger]
Expand Down
Loading

0 comments on commit f49e5ab

Please sign in to comment.