Java code to analyze the history of prices (data) of the different currency pairs (i.e. UDS/JPY) and stock quotes to predict future prices and anticipate gain (profit or loss).