Many thanks to those of you who continue to follow and contribute. I have spent the past week searching the mt4 codebase, google, assorted forums, etc., and I have been testing with what I found. I don’t know if I can comfortably say I have some conclusions, but I do have some observations to share with you. Forgive the limitations I am working with. I am unable to post indicators, pictures, or screenshots. I actually have to type my posts in Word and paste them into the forum thread. Though I can’t post the actual links, I will be able to tell you where to find the things I’m talking about. It seems I have to buy one new computer every year. PC’s, can’t live with ‘em, can’t live without ‘em.
I am currently researching this Daybreak idea on 7 platforms. I have 2 ibfx live accounts, 1 live oanda and 1 demo, 1 live tallinex and 1 demo, and 1 live forex broker, inc. I just wanted an ea to get gross performance estimates over periods of time without having to do it all by hand. I tried numerous breakout programs from the codebase and other sources with increasing frustration. Is it just me, or does it seem that most of those won’t work at all, there is little or no documentation, and more than a few eat my cpu like a hungry wolverine with a rabbit.
For the most part, this resembles what went on with my original two threads. It did seem that there were some sincere programmers trying to capture the ideas, but nothing ever came that we could place any confidence in. I am currently doing what I want with my trading, but it does take some time. I just don’t want to invest the additional time to learn mt4 code. I don’t know… Is it so complex that closing open orders and placing new ones at the beginning of a day can’t be managed? Is it hard to put in a magic number so the ea doesn’t interfere with other trading? Is it really difficult to allow some optimization on just a few variables, like entry point, sl, ts, and tp? Trading it manually is, of course, no problem. Enter a few keystrokes a day and there you have it. Like I say, just wanted to look at some broad database over time.
In any case. Having certainly irritated myself trying to use those breakout programs from the codebase, I went back to the original daybreak thread and dug up one of the first efforts to make an ea with this simple system. You can find it in the thread, look for Daybreak, the ea by Spirit,v1.3. As much as I can determine, this program sets entries correctly. It does not, however, close open trades eod, and it does leave any unfilled orders open indefinitely. Hold on to those last two thoughts because they may prove to be serendipitously beneficial.
It’s been a while, but I seem to remember that we gave up on the ea because it just wasn’t following the original daybreak rules with regard to exits. But, desperate to look at a bigger database than I can muddle through by hand, I started by running this program on ibfx daily data, gbp/jpy, two live accounts, using date range 1-2-13/2-27-14 (a little over a year of very recent data), with some reruns the past day or two to verify. I set the spread at 5. At the end of many hours and an open question of whether optimization even works on this tester, here is what presently looks most promising: trade the daily breakout with a tight sl, no ts, and a fixed tp. No kiddin’! Anyone who knows me would know that is the last thing I ever thought I would suggest, but my initial findings are hard to argue with, even for me.
Before I zeroed in on this, I noted that the average daily range for this pair during the test period was just over 150 pips. Judging visually, it seemed that a lot of that was frequently made on one side or the other of the breakout. That, of course, is the whole attraction to breakout trading. Controlling losses and preserving capital led me to tight initial stops of 20 pips and the daily range led me to a 70 pip take profit. That makes for a nice 1:3.5 risk/reward. Since the ea doesn’t delete unfilled entry stop orders, those may be hit days or weeks later and are included in the results. The interesting thing is, they seem to work. Here’s my thinking on that. What’s another name for previous day’s lows and highs? That’s right, support and resistance. When prices start moving, they often seem to blow right through those areas and frequently get to profit.
So, testing on my two ibfx live accounts, GMT 0, starting $10,000, trade 1 lot, daybreak entries, no ts, sl 20 and tp 70:
Account 1: Net profit $8,825, quality 69%, total trades 520, profitable 42%, losing 58%.
Account 2: Net profit $9,279, quality 82%, total trades 554, profitable 41%, losing 59%.
I have no idea why there is a difference. Same broker, both live accounts. I see trades made by the simulator in each account that I really don’t understand, some winners, some losers, and can’t reconcile with a 5m chart. I have gone so far as to plaster the results side-by-side in a spreadsheet and still can’t figure it out. I will say that one platform is still build 509, but I have updated the other to 600. I have wondered for years how those metaquotes folks ever got ahead of tradestation and became the broker’s platform of choice, just like I wonder how pc’s ever got ahead of apple. Sigh. I can only say that if mt4 strategy testing has any validity at all, this seems worth looking into.
Next, supposing we may have oundfay the ailgray, I wanted to see what my other favorite pair yielded. Eur/jpy, nothing changed except the pair:
Account 1, Net profit $7,204, quality 63%, total trades 532, profitable 38%, losing 62%.
Account 2, Net profit $7,179, quality 82%, total trades 545, profitable 37%, losing 63%.
At this point, if you are interested in breakout trading, I encourage you to plug up this ea. Take some runs at it to see what you get. Put it on visual and watch it trade for a while. I will also say a few words about a simulator. If you are new to this business or just haven’t found your trading groove yet, get your hands on a simulator. I like to use the one from the codebase, i.e., mt4i Trading Simulator. Free is the right price and I can fire it up, put any indicator, template, strategy, I want to, execute the trades absolutely without being able to see the next bar, and see what kind of trader I really am.
One last thought that I will discuss later. The inadvertent leaving unfilled stop orders by the Spirit ea was, in effect, trading a kind of grid. That prompted a few questions in my mind and I will go into that business on my next post. Happy trading!