Financial markets today are monitored and controlled by machine learning algorithms. The primary objective of this project is to further develop the algorithm for financial market analysis and prediction that the partner possesses at the moment. The algorithm currently demonstrates high accuracy, subject to certain constraints, among which: a small time interval between a prediction and the actual event and not highly efficient computation of indicators. In addition, the current algorithm is missing any form of analysis of the dynamics of distances to training clusters.