Solar storm prediction through flare forecasting based on multi-line magnetograms