Yes, momentum trading is legal. Restrictions to trading in general usually depend on your broker, so check with your jurisdiction and your provider’s domiciled location.