Dear Community

My goal with this algorithm is to invest in 20 stocks with the highest dividend yield sorted from my universe and to rebalance monthly. I'm using the equal weighting portfolio model. My first idea was to emit insights monthly but the construction model would rebalance every day without rebalance function. After creating a monthly rebalancing function, my new problem would be that my monthly insights would rise over the year from 20 to 33. At the same time, my holdings and equity would differ at the rebalancing. I don't understand why my insights are rising and why not all of my Cash is being invested when rebalancing.

I would be glad if someone could help