Exploring the Origin of Moving Groups and Diagonal Ridges by Simulations of Stellar Orbits and Birthplaces