To view historical prices in MT5, you can disable the autoscroll feature, which keeps the latest price displayed on the chart.
To enable scrolling through historical data, follow these steps:
• Right-click on the chart.
• Select 'Properties' from the dropdown menu.
• Click on the 'Common' tab.
• Uncheck the box labeled 'Chart Autoscroll'.
• Click 'OK' to apply the changes.
To re-enable autoscroll and restore the default function, simply repeat the above steps, check the box labeled 'Chart Autoscroll' in the Properties window, and click 'OK' to save the settings.
For better visualization, please refer to the following GIF: