Tag Archives: mt4 backtesting

How MT4 Backtesting Modeling Quality Is Calculated

Hi everyone. Today’s post is sort of an educational informational tidbit for all you MT4 junkies out there. One of the somewhat obscure questions I see on various forum is by what formula is the modeling quality calculated by the MT4 backtester. I’ve got the answer, and here it is:

ModellingQuality = ((0.25*(StartGen-StartBar) + 0.5*(StartGenM1-StartGen) + 0.9*(HistoryTotal-StartGenM1)) / (HistoryTotal-StartBar))*100%;

where:

  • HistoryTotal – the total amount of bars in history;
  • StartBar – the number of bar with which the testing was started. Modeling starts at at least 101st bar or the bar corresponding with the initial date of test limits;
  • StartGen – the number of bar with which the modeling on the nearest timeframe started;
  • StartGenM1 – the number of bar with which the modeling on minutes started;

at that:

  • The distance between the beginning of modeling of databases for the nearest timeframe and the beginning of modeling on the nearest timeframe data has a weighting factor of 0.25;
  • The distance between the beginning of modeling on the nearest timeframe data and the beginning of modeling on minutes has a weighting factor of 0.5;
  • The distance between the beginning of modeling on minutes and the end of history data has a weighting factor of 0.9;

The following colors are used in the color diagram:

  • Lime – modeling on minutes
  • Deeper green colors show modeling on large timeframes
  • Pink color – pure fractal modeling of the databases of smaller timeframe
  • Gray color – modeling limitation by date

From the formula you can see, that 90% is the maximum modelling quality possible. However if you give the backtester BETTER (higher quality) data such as raw tick data you can increase the modeling quality to 99%. Essentially the MT4 backtester interpolates price data from M1 chart data. If you give it TICK DATA it naturally has MORE data to work with and hence the accuracy of your backtest will increase.

I’ve got a post that teaches you step-by-step how to get 99% modeling quality. You can check out that post over here:

http://alansforexblog.com/2010/06/14/metatrader-backtesting-how-to-get-99-modeling-quality/

This method however does have some limitations. One that comes first to mind is that due to a file size limitation with MT4’s backtester you can run a backtest only is 1 to 2 year chunks. See the comments section of the above link for details.

Ok, I’m out.

Cheers,

Alan

MetaTrader Backtesting – How to Get 99% Modeling Quality

Greetings everyone!

In today’s post I’m going to show you how you can get 99% modeling quality when backtesting using MT4’s “Strategy Tester.” If you’re a MT4 backtesting veteran you no doubt know that using regular M1 historic data the highest modeling quality you can get is 90%, but what you may or may not know is that the accuracy of your backtests can be pushed even higher, BUT you need raw tick data.

How does one obtain such tick data? Well, I asked myself that very same question, and I’ve looked everywhere for a free source of historical forex tick data and after extensive searching I found it. The only problem is that the tick data is not readily usable by MT4 and as such requires a rather elaborate process of conversion and also a few other tricks to force MT4 to use the converted tick data. That’s where this tutorial or “how-to” comes in. So pay close attention as you MUST follow each step precisely.

You may be asking yourself why would one want to achieve a higher modeling quality level. The answer has to do with scalping. When backtesting an expert advisor that does not attempt to scalp the market the default MT4 history data provides an acceptably accurate level of simulation. However when you’re trying to backtest a scalping EA even the slightest variation in the price feed can strongly affect performance.

UPDATE: previous content removed. If you want the full tutorial you can find it on the following website:

Birt’s EA Review website

Happy backtesting everyone!

Cheers,

Alan

MT4 Backtesting & Optimization

Forex Trading

MT4 Backtesting & Optimization

Here is a visual tutorial (aka HOWTO) on how to run optimizations and backtests with MetaTrader 4 (MT4). This is but one method of backtesting! There is another method that you can use but which involved downloading backtesting data NOT from your broker but from MetaQuotes (the makers of MetaTrader 4 – MT4) directly. For a guide on how to use this other method please see this post of mine instead.

I hope you find the guide useful and if you do feel free to give me a shout out by leaving a comment. Here goes the guide:







*Due to the limited screen real estate my current blog template affords I had to reduce the size of the images a bit. So if you find that you cannot clearly read a particular item in this visual guide please click on any of the images for a full screen version*

By the way in case you are wondering the EA’s backtested in this guide come from Bogie Enterprises.

That about does it for this post.

Have fun backtesting! Hey don’t forget if you find that elusive holy grail EA, send me a copy! 🙂

Cheers,
Alan

http://alansforexblog.com