Learning the population dynamics of technical trading strategies