An algorithm for optimizing Relative Strength Index technical indicator used in the analysis of financial markets.