Sunday, September 2, 2012

First bands EA version

I wrote the channel based expert advisor using the Bolinger bands indicator as the channel. The first results were good in one week and still the same problem. It's not robust.
The idea works in one week, and in the next it fails.
I changed my trading idea and played with it using the Bolinger bands as the channel itself.
I performed a back test of 25 days and it looks good.

Strategy Tester Report
Bands_v2
OANDA-MT4 Practice (Build 432)


SymbolAUDUSD (Australian Dollar vs US Dollar)
Period15 Minutes (M15) 2012.08.01 00:00 - 2012.08.24 16:45 (2012.08.01 - 2012.08.25)
ModelEvery tick (the most precise method based on all available least timeframes)
Bars in test2710Ticks modelled221514Modelling quality90.00%
Mismatched charts errors0
Initial deposit10000.00
Total net profit1417.80Gross profit1950.00Gross loss-532.20
Profit factor3.66Expected payoff27.80
Absolute drawdown176.60Maximal drawdown437.90 (4.27%)Relative drawdown4.27% (437.90)
Total trades51Short positions (won %)48 (77.08%)Long positions (won %)3 (66.67%)
Profit trades (% of total)39 (76.47%)Loss trades (% of total)12 (23.53%)
Largestprofit trade50.00loss trade-67.10
Averageprofit trade50.00loss trade-44.35
Maximumconsecutive wins (profit in money)18 (900.00)consecutive losses (loss in money)5 (-242.30)
Maximalconsecutive profit (count of wins)900.00 (18)consecutive loss (count of losses)-242.30 (5)
Averageconsecutive wins8consecutive losses2


Pros:

  • High profit factor - 3.66
Cons:
  • Low volume - around 3 days per day
TODO:
  • Add money management (right now it trades with a fixed amount of lots per trade)
  • Think of a smarter target picking (right now it's fixed take profit)
  • Test it with other periods - robustness check
  • Try lower time frames
  • Optimizations

Saturday, September 1, 2012

Exploring the channel

After I developed an indicator that detects the support and resistance lines of the last X bars I tied it into an expert advisor. If those lines are has a similar slope then it is a channel.
I ran a few back tests and the channel detection functionality looked fine. Then I wrote the expert advisor and tweaked it according to a few visual back tests.
Then I had a problem: I am expecting that a really good EA should keep the results statistics. It should not keep the profit factor the same but if the idea is logically right then a profitable EA should stay profitable along the time line. This one had really good results in one week and in the following week the results were the opposite.
I tested it on time frame of 15 minutes. It created around 20-30 trades per week. It means that the strategy won't be profitable every week. The market will trade in linear channels in one week and then it would break them out on the next week.

Conclusion: I developed a great indicator that may be embedded in another trading strategy or as manual trading tool but it can't hold the strategy I've been looking for.

I didn't give up on channel trading yet. My next shot will be designing a trading strategy based on Bolinger band based channels.