Backtesting - MT4 strategy tester
Trading using a trading strategy
is critical for success in trading. However, it's not enough. In order to consistently make money in the market, you need your strategy to fit your personality. There's a million ways to make money in the markets and what works for one trader, the exactly same approach will never work for the other. To find and develop a trading strategy, learning how to backtest is a must.
With backtesting, they can test out the effectiveness of their strategies by applying them to the historical market data. Basically, if the backtesting works and the simulation results in a payout, the chances of the strategy doing the same in the live environment increases. The key here is to take the historic data from a time period that is relevant today. Too old data can be useless for most currencies as market conditions often change.
Prerequisites of backtesting on MetaTrader 4
When it comes to automatically backtesting your trading strategies on MT4, there are a few things you need to do first. Initially, you need to enable this feature in the terminal. You can do that by going to the View menu in the top-right corner of the screen and selecting the Strategy Tester feature.
After that, the respective window will appear at the lower part of the window. That’s where the whole process of MT4 backtesting takes place. As for the actual testing elements, you can use Expert Advisors and indicators for the automatic backtesting.
However, those aren’t the only testable elements in MT4. Traders with a bit more experience with MetaTrader 4 can also backtest their own strategies manually, although it is more complicated than automatic backtesting. For the sake of simplicity, we’ll focus on backtesting Expert Advisors on MT4.
Another initial step traders need to take is to download the appropriate historical data for the specific instrument. More often than not, MT4 doesn’t offer the price historical data to the full extent, which can cause inefficiencies in the backtesting.
You can download the data by heading over to the Tools menu and selecting History Center. There, you need to select the appropriate symbol and double press it. It will bring out various timeframes that you’ll be able to import to your system. At the end of it, MT4 will have enough data to conduct backtesting on your instrument.
How to backtest on MetaTrader 4?
Now, let’s talk about how you can actually start backtesting your automatic trading strategies on MT4. When the Strategy Tester window appears, it will show various buttons and drop-down menus for different elements.
First things first, you need to choose Expert Advisor
as a testable element and select a specific EA program. Of course, you can also select MT4 backtesting indicators on that same menu, but as noted earlier, we’ll focus on EA backtesting. You can create your own Expert Advisor, as well as download the already-created one from the internet.
After that, you have to select your preferred trading symbol which, usually, will be a Forex pair because MT4 is quite limited in its trading instruments. The number of available instruments in the collapsing menu depends on your symbols selected in the Market Watch window.
The next step is to select the appropriate time frame, as well as the Model of backtesting. There will typically be 7 different timeframes and three models: Every tick, Control points, or Open prices only. MT4 itself suggests that the Every tick option is the most accurate method based on all available timeframes, therefore, we’ll also choose this option.
When it comes to the Spreads menu, you can either select the current option or six different points (2, 5, 10, 30, 50, or 100 pips). Again, for the highest accuracy, it is generally a good idea to pick the current option.
The Expert properties button will take you to the window where you can decide the initial deposit, the currency of your deposit, the type of position (long/short/both), etc. This is the area where you can provide more specific details about your preferred position.
Getting the results
After that, the only remaining step you need to take is to press the Start button and initiate the MetaTrader 4 backtesting. The results will be displayed in the Results tab of the Tester window in a few seconds or minutes, depending on the timeframe you selected, as well as the computing power of your desktop device.
Those results will include simplistic data about the total net payout, as well as loss, the number of positions with positive/negative outcomes, and many more. In short, traders can get pretty comprehensive information about whether their strategy would actually work in the past. This, in turn, would help them decide whether to use that strategy in real life or not.
Manual MetaTrader backtesting
Backtesting manually takes more time as you need to backtest strategies at human speed. However, manual backtesting gives traders the ability to backtest strategies that are not testable automatically. For instance, you can manually backtest in MT4 chart patterns and trading setups. Strategy tester tool is a great way to test simple trading rules that are based on pure data and not on complex analysis. In case you are using a complex trading system that involves visually locating price patterns, trendlines, etc. than you need to test your strategies manually. How to backtest on MT4 exactly? It's very simple, you can find a download a manual backtesting algorithm from MetaTrader marketplace. There are paid and free types of manual backtesting tools. These algorithms than can be run as Expert Advisors. Once you install the backtesting EAs, you can select the asset to backtest, account currency, balance and time period.
Keep in mind that when backtesting either manually or automatically, selecting the proper period is critical. Market conditions often change. When selecting the time period, it's important to make sure that you avoid using historic price data that has nothing to do the way the markets are moving today. Ideally, you want your backtesting time period to be as recent as possible to produce reliable results.