Given the importance of foreign direct investment (FDI) in the economy, the purpose of this study is to identify and investigate the economic indicators that can explain the development of FDI in the economies of Central and Eastern European countries such as the Czech Republic, Poland, Hungary, and Slovenia throughout the period 1995–2020. When developing multiple linear regression models, the following explanatory variables were considered: exports, imports, import concentration and diversification indices, the balance of trade, the balance of payments, and different components of the economic freedom index. Therefore, it was shown that a rise in exports and imports has a beneficial impact on enhancing the flow of foreign direct investment (FDI) in each of the nations examined for this study. Furthermore, an increase in the value of the import diversification index is shown to have a beneficial effect on the levels of foreign direct investment (FDI) in the Czech Republic, Hungary, and Slovenia, as determined by this study. On the other hand, the import concentration index has been shown to benefit foreign direct investment in Poland. Furthermore, it was discovered that the balance of payments was a positive factor in the Hungarian economy. In contrast, the trade balance was shown to be a positive element in Poland and Slovenia. Both indicators have positively impacted foreign direct investment (FDI) flow.