An algorithm for automated trading based on the MACD (Moving Average Convergence Divergence) indicator has been developed. This trading bot analyzes market data and finds signals for opening and closing positions based on MACD line crossovers with the signal line. The algorithm is able to accurately identify moments to buy or sell an asset, minimizing possible risks and increasing trading efficiency.