A clustering-based portfolio strategy incorporating momentum effect and market trend prediction