Blog for Building Expert Advisors for Metatrader 4
MT4 STRATEGY TESTER REPORT PERFORMANCE ANALYSIS
Evaluating an Expert Advisor by testing it on historical data is essentially the same as simulating how that system will perform when it's traded. It follows, then, that the more accurate the simulation, the better the system can be evaluated. An important aspect of trading is the number of lots to take for each trade; Including position sizing in a trading simulation makes it much easier to determine (1) the minimum account size needed to trade the system or method, (2) the initial position size for a given account size, (3) the expected return on account equity, and (4) the likely risk or Risk/Reward ratio.
While including position sizing in a trading simulation can enhance the simulation, the performance summaries available in Metatrader 4, are generally based on fixed contract trading; e.g., one lot per trade. It's usually possible to change the number of contracts for each trade (for example, using Metatrader programming);
In most position sizing methods applicable to Forex trading, the number of contracts tends to increase over time as trading profits accrue. As the number of lots increases, so does the drawdown. A drawdown of 10% is $3,000 on a $30,000 account, but if the account grows to $200,000, a 10% drawdown is $20,000. The same is true of the average trade size. It is more meaningful to know that the average trade size is 2% of equity than $200. That $200 average trade might be the average of trades with between zero and 10 contracts, for example. If you plan to start trading with a $20,000 account, what size average trade should you expect? If you knew the average trade was 2% of equity, you could simply multiply your starting equity by 0.02 to find that the average trade will be $400 initially.
By track trading results relative to account equity, regardless of whether you're looking at one-contract results or fixed ratio position sizing, the performance statistics will be meaningful and the account size and position sizing will be properly represented.
Consider, for example, the performance results shown below. Notice that, where applicable, the statistic is calculated relative to account equity in percentage terms. The same statistic quoted in dollars can also be provided for comparison. Some statistics, such as the Modified Sharpe Ratio and the Return/Drawdown Ratio, use percentages exclusively.
Some of these statistics depend on the order of the trades; for example, the number of consecutive losses and the drawdown statistics. Except when one-contract position sizing is used, many others will also depend on the order of the trades. One way to account for trade ordering effects is with Monte Carlo analysis. If the statistics are compiled for each sample of the Monte Carlo simulation, they can be stated in terms of the Monte Carlo simulation results. The effect is that a confidence level will be added to each statistic, which will make the results even more useful.
The equity curve for a series of trades can be simulated more realistically when position sizing is included in the trading simulation. Using performance statistics based on account equity and expressed in percentage terms, such as many of the statistics shown above, makes it possible to better evaluate the equity curve and the corresponding trading system or method.
For more information in Test Report Performance Analysis:
"Designing and Using Automated Trading Strategies" by Dr. John Clayburg
"My Dog Ate My Forex" by Doug Breiten
"Six Forces of Forex" by Scott Owens
If you are the copyright owner of any of these articles and don't want us to share them, please, contact us in order to remove them.