Adolescent suicide attempts are on the rise, presenting a significant public health concern. Recent research aimed at improving risk assessment for adolescent suicide attempts has turned to machine learning. But no studies to date have examined the performance of stacked ensemble algorithms, which are more suitable for low-prevalence conditions. The existing machine learning-based research also lacks population-representative samples, overlooks protective factors and their interplay with risk factors, and neglects established theories on suicidal behavior in favor of purely algorithmic risk estimation. The present study overcomes these shortcomings by comparing the performance of a stacked ensemble algorithm with a diverse set of algorithms, performing a holistic item analysis to identify both risk and protective factors on a comprehensive data, and addressing the compatibility of these factors with two competing theories of suicide, namely, The Interpersonal Theory of Suicide and The Strain Theory of Suicide. A population-representative dataset of 173,664 Norwegian adolescents aged 13 to 18 years (mean = 15.14, SD = 1.58, 50.5% female) with a 4.65% rate of reported suicide attempt during the past 12 months was analyzed. Five machine learning algorithms were trained for suicide attempt risk assessment. The stacked ensemble model significantly outperformed other algorithms, achieving equal sensitivity and a specificity of 90.1%, AUC of 96.4%, and AUCPR of 67.5%. All algorithms found recent self-harm to be the most important indicator of adolescent suicide attempt. Exploratory factor analysis suggested five additional risk domains, which we labeled internalizing problems, sleep disturbance, disordered eating, lack of optimism regarding future education and career, and victimization. The identified factors provided stronger support for The Interpersonal Theory of Suicide than for The Strain Theory of Suicide. An enhancement to The Interpersonal Theory based on the risk and protective factors identified by holistic item analysis is presented.