The best moving average length for a 5-minute chart is generally around 20 periods to capture short-term trends effectively.