Step-by-Step Guide to Running a Backtest in MetaTrader 5 (MT5):
1. Setup:
- Open MetaTrader 5 (MT5).
- Ensure the 'Toolbox' is visible by navigating to View --> Toolbox.
2. Accessing the Tester:
- In the bottom right corner of MT5, locate and click on the 'Tester' option.
3. Configuring Settings:
- Once in the 'Tester,' go to the 'Settings' tab.
- Create a chart for your custom symbol, and attach the Backtester EA to that chart.
-Make sure 'Allow DLL exports' is checked.
4. Initiating Backtest:
- Set up the desired parameters for the desired symbol you want to backtest. Make sure your chart time setting matches your data time setting (1 min). Choose the EA, the custom symbol, and the date range for the test.
- In the 'inputs' fields, enter the code you got from the data extraction. Set your server offset time, in minutes. Enter any symbol settings needed in the input fields.
5. Running the Backtest:
- Click 'Start' to begin the backtest process. This will start the test and open up the visual window. You'll see the test begin to page through all the ticks data.
6. Reviewing Results:
- Upon completion, right-click on the 'Backtest' window within MetaTrader 5.
7. Generating Report:
- Select the 'Report' option from the context menu.
8. Exporting Results:
- The backtest results will be exported as a file.
9. Viewing in Browser or Excel:
- Open the exported file in an internet browser or Microsoft Excel to analyze the backtest data.
By following these steps, you can conduct and analyze a backtest on any instrument within MetaTrader 5. This video shows a sample backtest setup from time stamp 1:09 to 12:00.