Financial markets are often seen as chaotic and unpredictable. Every day, traders around the world buy shares and sell assets in a whirlwind of activity. It looks like a system of total randomness—but ...