Showing posts with label Teyacanani. Show all posts
Showing posts with label Teyacanani. Show all posts

Thursday, June 3, 2010

Alternative Adaptive Criteria - Introducing a New Feature of Teyacanani

One of the main problems Teyacanani has faced from the moment of its release is the use of a daily ATR indicator with small period values (3 to 6) which are extremely sensitive to the presence or absence of Sunday candles within the broker's feed. The fact that these periods are small makes the presence of these candles extremely influential, something that doesn't happen with the turtle system or Watukushay No.2 which use much longer ATR period lengths (14-20). In order to solve this problem we have implemented an EA that generates an offline chart without Sunday candles but this system does not work on some brokers for reasons pertinent to each brokers' particular software implementation. On today's post I want to introduce a new solution to this Teyacanani problem showing you a new type of adaptation that uses the ATR indicator but does not rely on daily indicator data, effectively eliminating the problem of Sunday candles for this EA on brokers where our non-Sunday solution does not work.

What is exactly the problem with Sunday candles ? When you calculate the value of a daily ATR indicator, the code calculates the value of the ATR assigning the same weight to the values of all daily candles. On brokers where Sunday candles exist these candles are treated - within the calculation of the ATR - as if they were regular daily candles when they usually have only 10-20% of the regular volume of a complete weekday. When you calculate the value of the daily ATR for a small number of periods you will often get a very significantly smaller value for the indicator when compared with an indicator where no Sunday candles are involved.

Many people - me included - will think here that the best and easiest solution would be simply to decrease the values of the filters on the EA to compensate for a "lower overall" ATR value. However the main issue here is that no accurate 10 year backtesting data with Sunday candles is available to test the strategy and this therefore makes any modification done impossible to evaluate with metatrader 4. Possibly diminishing the value of all filters might work, but there is also a very important possibility that this will simply not work as - when low ATR periods are used - you might get days where the ATR is calculated without the Sunday candle. For example, a 4 period daily ATR on Friday only counts Friday, Thursday, Wednesday and Tuesday, leaving outside Monday and Sunday. Introducing a modification that decreases all overall ATR related variables will probably have an adverse effect on these days.

What is the solution then ? The easiest thing to do here was to find a way of removing the Sunday candles from the chart, merging Monday and Sunday candles to get a "clean feed" that simulates that of a broker without Sunday candles. Using an EA called "without Sunday", available from the mql4 code database, we were able to eliminate the problem for most brokers. However, due to limiations inherent to some other brokers - particularly Forex.com - this solution wasn't able to work correctly in some cases.

My solution for this case was to find another adaptive criteria that could avoid the usage of the daily ATR indicator. I thought that if you could simply take a lower time frame and "extrapolate" you could maybe obtain the same results as you would with the regular daily-ATR solution. So my implementation was therefore really simple. Take a given hourly-ATR period indicator and then multiply it by X so that you reach a magnitude similar to that of the daily ATR indicator. You would still get evolving adaptability as market conditions change but of course, the speed and character of the adaptation would change.
-
-
In the end I found the results showed above for the EUR/USD and GBP/USD currency pairs using Teyacanani (Jan-2000, Jan-2010). The trading results - after following the same optimization procedure as with the original Teyacanani version - were very similar to those obtained with the daily-ATR solution, showing that a given hourly-ATR could in fact extrapolate to a daily-ATR without great changes in the effectiveness of the adaptation against volatility. However it is clearly notable here that this approach does not tend to work for all currency pairs. Some instruments like the NZD/USD and AUD/USD tend to have larger and more changing hourly volatilities that do not provide an adequate reflection when extrapolated towards daily volatility. The results obtained for these currency pairs are therefore poorer than when using the regular Teyacanani EA.

In the end, what this exercise has taught me - and I hope I have transmitted to you within this article - is that volatility adaptation can be carried out successfuly through many levels and that alternatives to daily-ATR based adaptation are clearly possible but may prove to be different for instruments with different characteristics. Right now this new version of Teyancanani - now available within Asirikuy - provides users of brokers that could not implement the WithoutSunday solution with a version of Teyacanani that can run on the EUR/USD and GBP/USD with similar profit and draw down targets. Volatility adaptation has always been one of my great areas of interest in automated trading and hopefully within the next few months and years I will be able to develop some robust and creative adaptive criteria :o).

If you would like to learn more about automated trading system development and how you too can develop systems that adapt to changes in market conditions please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

Tuesday, March 23, 2010

Introducing Teyacanani, My Best Trading System so Far :o)

Today is a special day :o). After a few months of very strong development efforts I am finally close to finishing my last trading system, system No.4 on the Watukushay Series, called Teyacanani. I have to say that this trading system's simulation results have been the best I have had so far for a system on the Watukushay series. The expert advisor was coded with backtesting reliability in mind and shows 10 year profitable backtests (as all the other systems within the Watukushay Project). On today's post I want to talk to you a little bit about this expert advisor, its story and what I wanted to achieve with its development. I will show you some sample trades and backtesting graphs to help you see the large versatility and power of the extremely simple tactic used by this trading system.

The story of this trading system begins with the development of Watukushay No.2. This expert advisor which took a long time to develop was my first attempt at making a trading system based solely on candlestick patterns. Watukushay No.2 surprised me with its initial backtesting results and continued to surprise me and all Asirikuy members with its very impressive live testing results managing to profit greatly from the difficult market conditions we saw on this year's second month. However I still felt that I could do better and this is when Teyacanani came into play.

I decided that I wanted to develop a trading system which was more profitable and versatile than Watukushay No.2. I wanted to develop an expert advisor we could use to trade many more instruments besides the EUR/USD and GBP/USD which are the instruments traded by Watukushay No.2. With Teyacanani I wanted to achieve portfolio trading in a much more profitable fashion than what was achieved with Kutichiy which - although profitable for several instruments - failed to achieve very good profitability figures on instruments outside the EUR/USD (in simulations).

After doing tons of analysis on several currency pairs and testing several ideas I finally came up with an extremely simple idea which was based on candlestick patterns on the one hour charts and which was able to give profitable results on several currency pairs, reaching similar profit/risk targets on most instruments tested. Teyacanani is very good at following trends and it has an internal closing mechanism which avoids hitting the stop loss on almost every trade. Of course, not all trades are like the one shown below but this trade shows you the actual potential of Teyacanani at capturing long market movements.
-
-
Surprisingly, although the logic of Teyacanani is a ton simpler than the logic of Watukushay No.2, it is able to achieve higher profits and lower risk targets. This expert advisor has shown very profitable ten year backtests on the EUR/USD, GBP/USD and USD/CHF. You can see on the image below the equity curves achieved from ten year backtests (Jan-01-2000, Jan-01-2010, 100K initial balance) of the EUR/USD and GBP/USD (these backtests were run with minimal risk, higher yearly compound profits are achievable by increasing risk).
-
-
I strongly believe than Teycanani hits the nail in the head with its approach and I am hoping to find 10 year backtesting profitable results for at least 6-10 different currency pairs. This system will be released to all Asirikuy members in April and if everything goes well I will launch this system coupled with two live accounts to start testing the strategy on two different currency pairs simultaneously. I am very excited about Teyacanani since it is the first trading system I have coded which has gone beyond what Watukushay No.2 was able to do :o) This trading system will be a very important part of our trading arsenal and if back/live testing consistent it may become Asirikuy's most profitable trading system !

And for those of you who are curious... Teyacanani is a word in Nahuatl, the ancient language of the Aztecs in Mexico which means "leader". :o)

If you would like to learn more about the Watukushay Project or the systems I have coded and tested and how you too can learn how to approach automated trading in a sound way aimed at long term profitability please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

Daniel Fernandez's Expert Author Email Alerts
Sign up to receive email alerts of Daniel Fernandez’s latest articles from EzineArticles.com!

Email Address: