When running the program XLC is sold, and bought in April 2019.  I thought my code would HOLD any repeat sectors, but never SELL, and BUY on the same day.

My guess is that the reBalance routine is in error.  It works great for the 1st 3 months (Jan. - March 2019) in my backtest.

Any ideas how I'm miscalculating?