Forecasting changes in foreign exchange rates is a well-explored and widely recognized area within finance. Numerous research endeavors have delved into the utilization of methods in machine learning to analyze and predict movements in the foreign exchange market. This work employed several machine learning techniques such as adaboost, logistic regression, gradient boosting, random forest classifier, bagging, Gaussian naïve Bayes, extreme gradient boosting classifier, decision tree classifier, and our approach. Our objective is to predict the most advantageous times for purchasing and selling the euro about the dollar. We integrated a range of technical indicators into the training dataset to enhance the precision of our techniques and strategy. The outcomes of our experiment demonstrate that our approach outperforms alternative methods, achieving superior prediction performance. Our methodology yielded an accuracy of 0.948.