I was wondering if there is a way to run backtests with money management that allocates the available purchasing capital equally among the number of potential trades that the strategy generates each day.

For example, I have a starting capital of $100k. I want no more than 5 positions in the strategy. My strategy can produce any number of trades each day, but I use the Rank feature with the entry: random(1,10), so that there are only 10 stock orders max the next day. All these trades are limit orders for the next day, so some may not execute. Lets just say after the first day of trading, I have 2 positions, and I have $60k in purchasing capital for the next day. Is there way to allocate the purchasing capital for the next day so that each of the 10 potential buy trades ( if in fact there are 10, there may be less) has an equal allocated amount ($60k /10 = $6K) per trade?