This paper aimed to develop a useful Machine Learning (ML) model for detecting companies with lasting competitive advantages (companies’ moats) according their financial ratios in order improve the performance of investment portfolios. First, we computed belonging S&P 500. Subsequently, assessed stocks’ moats an evaluation defined between 0 and 5 each ratio. The sum all provided score 100 c...