The following function is designed to resample currency data through 6 timeframes 1min, 5min, 15min, 30min, 1H, 4H.
The first use of the function is when the application