How to use MT5/MT4
The entities below are duly authorised to operate under the Titan FX brand and trademarks. Titan FX Limited (reg. No. 40313) regulated by the Vanuatu Financial Services Commission with its registered office at 1st Floor Govant Building, 1276 Kumul Highway, Port Vila, Republic of Vanuatu. Goliath Trading Limited (licence no. SD138) regulated by the Financial Services Authority of Seychelles with its registered address at IMAD Complex, Office 12, 3rd Floor, Ile Du Port, Mahe, Seychelles. Titan Markets (licence no. GB20026097) regulated by the Financial Services Commission of Mauritius with its registered office at c/o Credentia International Management Ltd, The Cyberati Lounge, Ground Floor, The Catalyst, Silicon Avenue, 40 Cybercity, 72201 Ebene, Republic of Mauritius. Atlantic Markets Limited (registration no.2080481) regulated by the Financial Services Commission of the British Virgin Islands with its registered address at Trinity Chambers, PO Box 4301, Road Town, Tortola, British Virgin Islands. The Head Office of Titan FX is at Pot 564/100, Rue De Paris, Pot 5641, Centre Ville, Port Vila, Vanuatu. The Titan FX Research Hub purpose is to provide solely informational and educational content to its users, and not investment, legal, financial, tax or any type of personalised advice. Opinions, forecasts, and any other information contained in this website do not constitute recommendations or solicitation to buy or sell financial instruments. Trading leveraged products like CFDs carries high risk and may not suit all investors. Users should conduct independent research or consult qualified professionals before making any trading decisions. While efforts are made to provide accurate information, no warranty is given for the completeness or suitability of the information contained in this website. Reliance on this content is at your own risk and Titan FX accepts no liability for loss or damage. This information is for residents of jurisdictions where Titan FX transactions are permitted.
In MT4, you can perform EA backtesting.
Here, we will guide you through the basic method of backtesting.
Backtesting can simply test set parameters, or it can involve optimization testing (determining which parameter values yield the best results), which takes more time.
Prepare the EA you want to backtest in advance and install it on MT4.
MT4 backtesting is performed using a tool called the Strategy Tester.
To display the Strategy Tester, select "Strategy Tester" from the "View" menu in MT4.

In the 'Settings' tab of the Strategy Tester, configure the following items (refer to the image numbers):
①Select the Expert Advisor on the left side, and choose the Expert Advisor to test on the right side
②Select the currency pair to test
③Select the time frame to test
④Choose the model (which price to use for testing)—typically select 'Every Tick'. If you want to save time, other options are available but reduce reliability
⑤If specifying a period, check 'period' and specify it
⑥Set the expected spread
⑦Visual mode (displays the test content on a chart, which extends testing time)
⑧Choose whether to perform an optimization test (checking this will perform optimization based on the settings in the next expert settings)
⑨Set the account, parameters, and content of the optimization to be tested. Clicking the button will display a dialog.

①Set the initial margin at the start of the test. You can input 'JPY' directly next to the amount to test with a yen account.
②Select the position to test: both buy and sell (Long & Short), buy only (Long only), or sell only (Short only).
③Select which item to optimize.
④Checking the genetic algorithm can streamline the calculations during optimization.

In the 'Input Parameters' tab, set the parameters and the settings for optimization testing.
①Check the items to be optimized.
②For simple testing, set parameters in the value field.
③Specify the minimum value for optimization testing.
④Specify the interval from the start value for optimization testing. ⑤Specify the maximum value for optimization testing.

In the 'Optimization' tab, you can set the test to end when specific conditions are met. If not set, it's okay not to check anything.
Once the settings are completed, click OK and close the dialog.

Once the settings are complete, click Start to begin the test.
Depending on the length of the test period or the number of optimization test combinations, the computation can take several hours to several days. When setting up, try to configure the test period to be as short as possible.

Once the test is completed, depending on the test content, the Strategy Tester displays the following five tabs, allowing you to check the results.
Results of the optimization testing are listed. You can check the profit and loss and the extent of drawdowns for each parameter.

You can check the results of the optimization testing in a graph.

The details of test trades are displayed in a list. You can closely check at which prices the trades were made.

You can view the trends of account balance and margin in a graph. The blue line represents the account balance, and the green line represents the margin.

You can review an overview of trades over the period. Quickly check the test quality, profit and loss, profit factor, number of trades, size of drawdowns, consecutive wins, and losses, etc.

Right-click within the Report tab, select Save Report, and save it in HTML format viewable in a browser.

In MT4 backtesting, if you have insufficiently received price data, you may not be able to perform the backtest.
There are several methods to add rates, but here we introduce the simplest method of receiving MetaQuotes price data.
Please try this if your backtest is not working properly.
Select "Options" from the "Tools" menu in MT4, and in the displayed dialog, enter 999999999999 as the maximum value in both "Max bars in history" and "Max bars in chart" tabs, then click OK.

Select "History Center" from the "Tools" menu in MT4.
In the displayed dialog, select the timeframe for the symbol you want to test, and click Download to start receiving price data.
