Skip to content

Column order/selection strategies with cash_sharing and flex_simulate_nb #251

Answered by polakowo
shiosai asked this question in Q&A
Discussion options

You must be logged in to vote

@shiosai

  • Calling sort_call_seq_out_nb is optional - it's for pure convenience, you can use this function in the case when you know exactly what orders you're going to issue so it produces a right call sequence for you. But you can always do it manually by changing call_seq in the non-flexible mode or by returning a column index along with the order in the flexible one. You don't need to create call_seq_out, just return column indices in the desired order in flex_order_func.
  • After processing a buy/sell order, cash is removed/added right away.
  • You can replicate your simulation column-wise, just tile your columns n times to create n independent simulations. Or to not waste memory, simulate …

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@polakowo
Comment options

@shiosai
Comment options

@polakowo
Comment options

@shiosai
Comment options

@polakowo
Comment options

Answer selected by shiosai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants