The purpose of this study is to develop a comprehensive algorithm for optimizing the interaction of economic entities with counterparties, taking into account the uncertainty of market conditions and the variety of behavioral strategies of participants. The developed algorithm aims to increase the stability and efficiency of the interactions between the economic entity under study and its counterparties, minimizing risks and optimizing cooperative and competitive strategies within the framework of existing market relations. The methodology uses game theory to devise interaction strategies using mutual influence indices, non-cooperative game principles, and payment matrices. The model analyzes various interaction scenarios with counterparties by using payment matrices and considering both competitive and cooperative conditions. The research methodology is supplemented by the calculation of integral estimates based on a set of financial and economic indicators, enabling the assessment of the impact of various interaction strategies on the overall efficiency of an economic entity. After testing the developed models, a set of data was obtained, which can be used to optimize strategic planning and manage the interaction of economic entities with counterparties. The developed algorithm is an effective tool for improving the operational analysis of enterprises, primarily in industrial sectors.