A week ago, I’ve determined the main idea for my ATC 2011 expert advisor. Today, it’s about time to shed some light over a very important but often overlooked concept in EA optimization —
What is
How To Use
If you know
You can see your
My
In my last RTATC2011 entry, I’ve mentioned that my EA works well with 2 currency pairs — EUR/GBP and EUR/AUD. I’ve tested them both on a new period — from 2011.01.01 till 2011.07.01. EUR/AUD showed
I’ve modified the code of my expert advisor to stop sending real orders when a profitable position is closed. The EA then enters a ”virtual mode”, where position is opened and tracked only virtually (using MQL variables). When such position is closed (also virtually), its profit/loss is considered — if it’s a loss, real trading is enabled once again, if it’s profitable, operation in virtual mode should be continued. This is how it should be done for the positive
The result was above my expectations — profit went up from $20,102.47 to $67,638.23, while maximum drawdown reduced from 51.59% to 36.59%. Of course, it’s still far from the profit usually required to win in ATC (especially, considering that it’s for 6 full months rather than less than 3 months of the contest), but it’s a great improvement over initial profit.
You can download the EA used in this test:
Reports before and after optimization:
Improvement Ideas
This scheme of
When proportion of the winning and losing positions is very uneven,
In the next issue of my Road to ATC 2011 journal I will create a single EA that will be able to trade EUR/AUD and EUR/GBP at the same time.
P.S.: 2 months and 21 days left to register in ATC 2011. 778 participants registered so far.
If you have any questions regarding my use of
