Example: US$/€ FX transactions – transactions in the foreign exchange market
WaveletComp includes the data set FXtrade.transactions. It gives the worldwide number of USD/euro FX (foreign exchange) transactions recorded in time intervals of five minutes in July 2010. The data set contains four full weekly cycles, plus three days at the beginning of July 2010, where a weekly (active) cycle lasts from Sunday, 21:00, to Friday, 20:55. Each cycle has 1440 fiveminute time slots. The number of transactions between Friday, 21:00, and Sunday, 20:55, is 0 or close to 0.
The data set is displayed in the following figure.
Our goals here are:
 to understand the periodic behavior of the series,
 to estimate the intensity of transactions through an active cycle. This can be used, for example, as intensity function of a Poisson process. The intensity estimate is the result of averaging four parts of the reconstructed series.
It turns out that there is no distinct seasonality below 1/8 day = 3 hours. There is 1day periodicity, interrupted by weekends, and ridges indicating 3to4day and 7day periodicity. An idle time interval lasts exactly 2×24 hours, and the best strategy will be to exclude idle times before conducting wavelet transformation. The resulting wavelet power spectrum is shown here:
A reconstructed version of the original series, based on significant periods, is:
Transaction intensity can now be estimated by averaging, for each fiveminute time slot, the four cycles shown in the previous figure. The intensity estimate is:
