Providing alerts for upcoming geomagnetic storms and predicting their effects on Earth is the basis of the science known as “Space Weather”. In this paper we have developed a new code for the identification of Coronal Mass Ejections (CME) e and the forecast of their geo-effectiveness, based on in-situ data acquired at L1 with the NASA Wind probe. This novel tool is very efficient, even 100% for the most intense geomagnetic events, allowing to provide an alarm in 98% of cases between 2 and 8 hours in advance.