The Strategy Tester is multi-threaded, thus allowing to use all available computer resources. Select the type of the program "Indicators", then select the indicator and click "Start". With stress testing, the stratdgy of trading robots can be even more realistic. If you get more or less an as good performance, your are good to go. Forex Trading for Beginners
There are a lot of options why it does not work. Have you tried to find an answer in the official mql4 metatradeg Subscribe to our newsletter Error: Please enter a valid email address Error: Please confirm meb faber forex trading password Error: Password and password confirmation do not match. What is the MT4 Strategy Tester? The MT4 Strategy Tester is a useful tools directly included in Metatrader 4 to test your Expert Advisor with historical data.
Before you can backtest you EA, you have to download the latest history dates from your Broker. Restart your terminal and press F2 on your Keyboard. Go to the currency Pair you want to download data from. Make a double click on all timeframes until they are all colored like on the picture below. This will take a while. Fill in all of the necessary information.
Choose one of the Symbol you downloaded before. Choose the timeframe you want to test your Strahegy Advisor on. Choose the model you want to test your Expert Advisor on. Every Tick the most precise method based on all available least timeframes to generate each tick. Control points a very crude method based on the nearest less timeframe, the results must not be considered. Open prices only fastest method to analyse the bar just completed, only for EA that explicitly control bar opening. Choose a Virtual Spread for you backtesting.
A reasonable value is 2 pips. Fill in from when to when etster want to make the backtest. If you choose this option, the chart will pop-up and you can easily and visually see how you robot is trading. With the little bar you can adjust the speed of the calculation. Here you can change the properties of your robot. Go to the Inputs tab to change the Value of your robots Variables. Shows you some useful information about the current Symbol.
If your backtest is finished you can take a look at all trades on the chart. If you have the source code of your Expert Advisor you can change it by clicking here. If the backtest is finished you find below the Result tab and 3 new tabs. The Graph, Report and Journal tabs. In the result tab you find the whole trades your EA has made during the test. You can see the Order number, his open price, Stop Loss and Take Profit if availablethe trades profit and the current account balance.
In the graph tab is not much to say. On the right is the account metatraeer and below the number of trades. This is an important tab. All the detailed information are here. I only explain those who are not self-explanatory and important for me. Total profit, the sum of all profitable positive trades. Total loss, the sum of all negative trades.
Profit factor is equal to the gross profit divided by the gross loss. Higher is better, anything above 1. Is the total net profit divided by the number of trades. The absolute drawdown shows the difference between the initial deposit tsster the smallest value of the equity. The difference between one of the local maximums and the subsequent minimum of the equity. The largest value is taken. Equity drawdown in monetary terms that was recorded at the moment of the maximum equity drawdown in percent.
Metatrader strategy tester report 06044 journal tab of the MT4 Strategy Tester is not important to most of you. It is only interesting for Expert Advisor developer to find some errors in the code. The possibility to optimize your Expert Advisor in a strxtegy run is the most impressive about Metatrader Strategy Tester. If you use this possibility correctly it will help you a lot to find the perfect settings for your EA.
But you can also set other criteria. For this demonstration I will test forex trader pro demo minecraft different Take Profit levels in combination with some different Stop Loss levels and the Inverse Strategy function. Press OK and Start your Optimized backtest. The Take Profit and the Stop Lose have 6 setting 20, 35, 50, 65, 80 ,95 and the Inverse Strategy has 2 false and true.
This makes a total of 72 passes 6x6x2. There are the results of all Passes. On the Optimization Result on the picture sorted by the most Profit factor you will see all 72 passes with their Profit, Total trades, Profit factor and so on. You can see that the pass 69 made the best Profit Factor. This is not overwhelming good but we optimized only 3 functions. If you now go to the input parameters you see that these settings are now saved.
You see that the Take Profit is still 50, the Stop Loss has changed to 95 metatrader strategy tester report 06044 the Inverse Strategy in no on true. Make a normal single backtest with these settings to metatrsder all transactions or to visualize the trades in a chart window. You can now also save the settings to access them later. If you now take a look at the EA you see that his performance has increased significantly.
Forward testing vs Historical backtesting. After you optimized your Expert Advisor you want to test it now in a forward test. Forward test means to test your EA in a demo or real account with real market conditions. Try it first on a demo account for sometime and then you can start on a real account. When you first test your optimized EA in a forward test you will probably quickly see that you are loosing money in the forward test although the backtest where incredibly good.
Let me give you some reasons why metatrade is so and how testdr can prevent this. If you optimized an EA you do not only want to have the settings with the most profit but the settings with a profit and a good profit factor the profit of all winning trades divided by the loss of all loosing trading. Before you optimize an EA you have to make sure what Model you have to use.
Or you optimize it first once with the Control points and check the metatrader strategy tester report 06044 with the Every Tick model. The first thing is that you tend to over-optimize your EAs. Let me quickly explain what over-optimization tedter fitting [wikipedia] is:. You have to know that with the mt4 strategy tester you can easily get a really good backtest curve by backtest all input parameters of an EA with a lot of steps. You want to be metateader in forward testing so you have choose less steps.
For example if you want to optimize the StopLoss 40 to and the TakeProfit from 20 to 80, do not optimize every single step. Choose a step of 10 for the StopLoss and a step of 5 for the TakeProfit. This way the backtest will be less profitable metatrader strategy tester report 06044 less over-optimized. Another advantage, if you take less steps, is that the optimization process is much faster. So how to make sure your backtest is not metatrader strategy tester report 06044 You can do this with a simple trick.
If you test 1 year back you want to split off the last third or fourth of the year and optimize only the rest. If you optimized your EA test it on the piece that you just split off. If you get more or less an as good performance, your are good to go. If your EA repport over-optimized you will see the curve sloping down and you have to re-optimize the Expert Advisor again.
Do not backtest your Expert Advisor too far in the past. It is no useful if you optimize your EA back to the Rester The markets have changed a lot. You want to optimize you EA based on the latest History Years. But for what time period should you test your EA? In my experiences the backtest time is not essential. You want to have about trades in a backtest to make it meaningful regardless what timeperiod you backtest.
Diversity in forward testing. Do not only take one setting for your forward testing. You can make the optimization process for multiple Timeframes and Currency pairs. You can easily forward test many settings on your VPS Virtual Private Server. Take multiple settings for every Currency Pair and Timeframe. You only have not to forget to set a different MagicNumber on every chart!
Also use myfxbook or fxblue to track your account. If you have an EA that places small StopLoss and TakeProfit its hard to get it good optimized. In the Backtest you do not have Slippage, order open delay and changing Spread. So this 3 thing will have sstrategy more effect on EA with small StopLoss and TakeProfit. You will barely notice this on an EA with StopLoss and TakeProfit above pips. The only thing you can do here is to set a fixed Spread about 2 pips for your backtest and make stdategy forward test.
Not only on a demo but also an a Live atrategy with the minimum of lot. If forward test your Expert Advisor you want to metatrader strategy tester report 06044 sure that you use a spread filter. Sometimes the spread of a broker can rise quickly and if you open a trade with a spread of 10pips you already lost about 8pips. So in general we can bunch it together like this:. Use few optimization steps. Look for about trades.
Test the EA forward in Demo or Live with small lots. Use a spread filter. You know now how to optimize an Expert Advisor in the Metatrader jetatrader strategy tester. If you liked this tutorial feel free to share this page. Feel free to leave a comment or open a discussion in the forum. Michael John Cruz says:. Leave a Reply Cancel reply. Your email address will not be published. Subscribe to our newsletter. Error: Please enter a valid email address Error: Invalid email Error: Please enter your first name Error: Please enter your last name Error: Please enter a username Error: Please enter a password Error: Please confirm your password Error: Password and password confirmation do not match Just download, without entering details.
Addressing Strategy Tester Problems in Metatrader
Learn how to read the strategy tester report in MT4. I will show you how to read the MetaTrader 4 strategy tester report top to bottom. MT4 Strategy Tester. award winner! No download needed - play for free. Advanced Guide To MetaTrader 4 - Strategy Testing And Optimization. By > View > Strategy Tester tab in the Tester window contains a final report of each pass.