On MetaTrader 4 (MT4), you can import historical data from "Tools" > "History Center" on the menu bar.
On MetaTrader 5 (MT5), you cannot delete or overwrite existing historical data, so you need to create a new custom symbol in the symbol window and import the historical data.
For more details of how to import, please refer to the following page.