Technical analysis of the foreign exchange market