This paper presents foreign exchange (Forex) prediction engine that included framework, modelling techniques and implementations, to support the needs of financial organizations or individual investors. In the financial sector, Forex prediction is considered to be a complex field, based on the noise of exchange rates as the major challenge. However, there are some financial instruments that are available to guide the individual for future investments. We propose a promising Forex prediction engine using historical Forex data, to extract a pattern movement over a period of time series using Linear Regression Line (LRL) technique and the proposed segmentation algorithm. Subsequently, Artificial Neural Network (ANN) algorithm is applied to classify unique groups of uptrend and downtrend patterns. Dynamic Time Warping (DTW) algorithm is implemented through brute force to identify the similarity trend and the matched result that is used to predict the trend movement for next day. This research reveals the structure of Forex prediction engine by the description of an integrated framework using technical analysis method and machine learning algorithm. The experimental results of AUD -USD and EUR -USD currencies demonstrated 71% of accuracy and its predictions are reliable.