A forex week begins when the Wellington/Sydney forex markets open (Sun 5pm EST) and closes when the New York forex market closes (Fri 5pm EST). In order to calculate daily OHCL bars, the around the clock forex week can be split in 5 days. See documentation for details.
Gemfile gem 'forex_date', '~> 1.0.4'
install gem install forex_date