Nocturnal hypoglycemia is a serious complication of insulin-treated diabetes, and it is often asymptomatic. A novel CGM metric-gradient was proposed in this paper, and a method of combining mean sensor glucose (MSG) and gradient was presented for the prediction of nocturnal hypoglycemia. For this purpose, the data from continuous glucose monitoring (CGM) encompassing 1,921 patients with diabetes were analyzed, and a total of 302 nocturnal hypoglycemic events were recorded. The MSG and gradient values were calculated, respectively, and then combined as a new metric (i.e., MSG+gradient). In addition, the prediction was conducted by four algorithms, namely, logistic regression, support vector machine, random forest, and long short-term memory. The results revealed that the gradient of CGM showed a downward trend before hypoglycemic events happened. Additionally, the results indicated that the specificity and sensitivity based on the proposed method were better than the conventional metrics of low blood glucose index (LBGI), coefficient of variation (CV), mean absolute glucose (MAG), lability index (LI), etc., and the complex metrics of MSG+LBGI, MSG+CV, MSG+MAG, and MSG+LI, etc. Specifically, the specificity and sensitivity were greater than 96.07% and 96.03% at the prediction horizon of 15 minutes and greater than 87.79% and 90.07% at the prediction horizon of 30 minutes when the proposed method was adopted to predict nocturnal hypoglycemic events in the aforementioned four algorithms. Therefore, the proposed method of combining MSG and gradient may enable to improve the prediction of nocturnal hypoglycemic events. Future studies are warranted to confirm the validity of this metric.