Forecasting and trading strategy for the foreign exchange market