Mastering Market Allocation Optimizing Returns in Bull and Bear Trends