Moving averages are calculated by taking the average of a currency pair's closing prices over a specified period.