Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Ways to Limit Commission

Hey Everyone,

I am new to coding and I was looking for ways to limit commission cost and I was wondering what was the best ways to do the following:

  1. Set the maximum number of positions to a pre determined number or each position to a fixed % of the portfolio. I currently have the code set to where it uses the entire portfolio but sometimes it holds 3 positions and other times it holds 7.
  2. Have all the Buys/Sells occur at one time and not day trade. If I day trade this will increase commission cost.

Any help will be great and much appreciated.