Statistical Forex System — Example MT4 Expert Advisor

After saying so much about the statistical Forex systems, I think it’s time to give an example of one. But first, I have to warn that this exert advisor «as is» wasn’t profitable during tests — it had its losses and gains, but spread losses took over eventually, so I can’t suggest using it on your real money account. This expert advisor is good only as an example of an actual statistical Forex system. It uses Tom DeMark’s pivot points calculated over the last 5 bars, which are then normalized by subtracting the current Open price. I used it on EUR/USD H1 chart, but I believe that it can be used on any other currency pair and timeframe. It consists of two .mq4 files:
The first file is StatGathererExample.mq4 — as it appears from its name, this MetaTrader EA will only gather statistics. Run it via strategy tester on a 1–2 year history period (it doesn’t have to be a good quality history, because it has nothing to do with price ticks, and uses just your OHLC data from bars; just be sure to have enough bars in your chart). This EA gathers statistics over a period of time and stores it to MapPath file («rl.txt» by default) in your /tester/files/ directory. Copy it to /experts/files/ for further use by the actual expert advisor.
And the second file is StatRunnerExample.mq4 — this EA is used for the actual trading and on-the-fly statistics gathering. This EA uses MapPath file («rl.txt» by default) from your /tester/files/ (for strategy tester) or /experts/files/ (for actual use) to get the initial statistics. It also continues to gather its own statistics and appends it to the initial file, saving it after deinitilizing.
You can freely use these examples to construct your own statistical Forex systems. I am also currently developing a statistical expert advisor that would be profitable and I promise to share it after the testing period.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 41 = fifty one