Forex Trading Algorithms: Mathematical Approaches for Market Analysis