: | : | :期货程序化 | :期货程序化研究 | :期货量化学习 | :期货量化 |
返回列表 发帖

A Look At The Turtle Trading System

A Look At The Turtle Trading System

Cho Sing Kum
12th Mar 2004


This article was initially written for the March 2004 issue of Chartpoint magazine which unfortunately wound down operation recently and this article was not published. It is now re-edited and produced here.


Check out our Turtle Trading Software, TurtleFarm, that is programmed to the Turtle Rules.

It All Began In 1983


The year was 1983. I had just decided that I wanted to go full-time into technical analysis. I took a sabbatical from work in October to learn on my own, not having gone any where with technical analysis since early 1982.

The Singapore representative for Compu-Trac happened to be back in Indonesia so I was helping him out here. It was from this connection that I got to know people at Drexel Burnham Lambert’s Singapore office. They were a bunch of very nice guys and the office was having problem setting up the computer to download data from Commodity Systems, Inc. in the USA.

They were asking me why I did not go to Chicago. They were telling me I should go and handed me a newspaper cutting. You see, about that time, Richard Dennis and Bill Eckhardt had put out advertisement for trainee traders for the Turtles program. I gave it some thought but because I was not in a position to relocate to Chicago, it never crossed my mind to apply. Six months into my sabbatical I was offered a job at Drexel which I took up. Since then I was always curious about the Turtle trading method.

Not A Well Kept Secret

The Turtles were sworn to secrecy. While the Turtle method appeared to be a well kept secret, it was actually not. Channel breakout was growing in popularity in the 1980s. So was volatility adjusted risks. In the late Bruce Babcock Jr’s 1989 book, The Dow Jones-Irwin Guide to Trading Systems, bits and pieces of what could be the Turtle trading methods in one form or another were scattered in the pages. All these were well known market knowledge. But while I was hearing about the successes of the Turtles, I never knew that their method was already out in the market. I was still looking out for it.

The 1923 Book

I finally went to Chicago in 1986. I went not for any Turtle program but for company orientation that took me to New York, Chicago and Tokyo a year after I joined Merrill Lynch Capital Markets. It was something I did during this trip that had a big impact on my learning. I went to the bookshops around the Chicago Board of Trade and bought all the trading books I could carry. Once back home, I ordered more books from Traders Press Inc. by mail order.


Good and often lesser known trading books were hard to come by in Singapore bookshops in the 1980s. I could not remember whether I bought this book in Chicago or from Traders Press. Wherever it was, I was very fortunate to have bought the book, Reminiscences Of A Stock Operator, first published in 1923. It was actually a biography of Jesse Livermore, one of the most respected stock and commodity market speculators of all time.


I was so fascinated by this book that I included many quotes of wisdom from it in the daily market closing commentaries I was writing. I wrote the Nikkei, Hang Seng, Chicago Treasury Bonds and Eurodollar futures closing commentaries. These daily commentaries were sent out by telex to Merrill Lynch’s Asian customers.

Now you may wonder what has this book to do with the Turtle method. In my opinion it has a lot to do although I did not know initially.

Fast forward your clock seventeen years to April 2003.

The Turtles Revealed Their Secrets

That month I was pointed to the website www.originalturtles.org. It was a new website wherein the claimed Original Turtles Trading Rules were revealed by Curtis Faith, one of the Turtles in the first class in Dec 1983. Before this I already knew about the 20-day entry and 10-day exit rules which were based on Richard Donchian’s work. I also knew about True Range and Average True Range from J. Willes Wilder Jr’s 1978 book, New Concepts in Technical Trading Systems. And not forgetting Bruce Babcock’s use of Average True Range as stops. What I did not know was how these were put together to form the Turtle Trading Rules.

My Most Important Discovery

And now the most important of my discovery - the combination of these parts resulted in what I would call the actualization of all that Jesse Livermore wrote in his 1923 book into a complete trading system! This was what the Turtle method was to me - a 1983 actualization of a 1923 book. I mean I could relate them. I certainly did not know whether Richard Dennis intended this but I could feel the resemblance, or rather Livermore’s experience, filtering into the Turtle methodology.

So it was that twenty years later, I finally got to learn the Turtle method after all. But Livermore’s experience was already available for eighty years, so what was twenty years. It’s always better to be late then never. Naturally, I gave the Turtle Trading Rules a thorough check out.

The Turtle Trading System

“The Turtle Trading System was a Complete Trading System. Its rules covered every aspect of trading, and left no decisions to the subjective whims of the trader. It had every component of a Complete Trading System.”


This quote is taken from the published “The Original Turtles Trading Rules” at the OriginalTurtles.org website. I agree with this. It is further stated that it covers each of the following decisions required for successful trading:


1) Markets – What to buy or sell

2) Position Sizing – How much to buy or sell
3) Entries – When to buy or sell
4) Stops – When to get out of a losing position
5) Exits – When to get out of a winning position
6) Tactics – How to buy or sell

For this article I will skip components one and six. I will cover the other four. Not that I don’t find them important but choosing the markets to trade is important especially that the Turtle Trading System is a trend-following system and not a for-all-market-types system! Tactics, well you will learn this through experience.

I will also not explain the details of the rules and the mathematics behind the calculation. You can find these in the published rules and are strongly encouraged to download the rules from the website mentioned above.

[Edited: The rules in pdf format used to be available for free download but not anymore. The website is also no longer hosted on its own and is now part of a commercial website. A compulsory donation is now required to support that commercial website infrastructure. I feel this goes against the intended objective of the Free Rules Project which has the support of Richard Dennis. Here is quoted from an earlier download of the rules:
The Original of the Free Rules Project. This project had its seed in various discussions among a few of the original Turtles, Richard Dennis, and others regarding the sale of the Turtle Trading System rules by a former turtle, and subsequently, on a website by a non-trader. It culminated in this document, which discloses the Original Turtle Trading Rules in their entirety, free of charge.]

The Turtle Rules In TradeStation 2000i

There are two Turtle trading systems which are called System 1 and System 2. I have coded both systems into TradeStation indicators and signals/system. In the examples that follow I will be using these for illustration. There are two features that I have not programmed. They are:


1) Pyramid of the 4th unit

2) Alternate Whipsaw Stop Strategy

EasyLanguage does not have a feature to retrieve the entry prices of all respective pyramid positions. It only allow for the first entry price of any pyramid entry strategy using the EntryPrice command and the average entry price of all pyramid entries using the AvgEntryPrice command. As such, I have to do backward calculation to derive the subsequent pyramid entry prices.


There are certain entry situations where it is not possible to calculate the entry price of the 3rd unit, for example, when the 2nd and 3rd units were entered on the same day (when using daily historical data for testing). While the entry prices can be assumed using the ½ N pyramid rules, this is never a good practice. Without any reliable method of calculating the entry price of the 3rd unit it is not possible to enter the 4th unit. So I only program the codes to pyramid up to a maximum of 3 units only.

The ½ N Alternate Whipsaw Stop is too small for proper testing on historical daily data.

These aside, the other challenging part is coding the Last Losing Trade Filter. So in the process I programmed four indicators to show the properties of all theoretical trades to guide me. See Fig 1. The four indicators are:

1) The first shows the 20-day channels as blue dots. The 2N-stop and 10-day channel exit are red dots. These dots are superimposed on the price chart to give visual representation of all theoretical trades (no pyramid).
2) The second shows the unrealized and realized position profit/loss of all theoretical trades based on 1 contract position size.
3) The third shows the market position of all theoretical trades.
4) The fourth shows the N values from which the N on the day before a position entry is captured and used for the entire duration of the position for calculation of the 2N-stop and ½ N profit.


Fig1.png
2018-10-23 16:47

Fig 1. Turtle’s Indicators

Position Sizing – How much to buy or sell

The position size or unit rather, is based on a concept called N. N is the price distance of one Average True Range of the last 20 days. The Turtle’s calculation differ from the normal method of averaging where you add up the last 20-day and divide this total by 20 to get the average number. Instead the Turtle’s method uses what is commonly called the Wilder’s smoothing method.

Wilder explained in his 1978 New Concepts book that this method of “averaging” saves the amount of work required for manual calculation. Now remember in 1978, personal computers were not common yet. His method of averaging when applied to the Turtle’s N is to multiply the previous day’s N by 19, add to this value today’s True Range and then divide the total by 20.

This method has the advantage that it is somewhat weighted, that is, it changes faster to more recent price behavior yet doesn’t swing as wildly as the normal method of averaging. See Fig 2.



Fig2.png
2018-10-23 16:47

Fig 2. Turtle’s N and ATR

Since the dollar value of N represent 1% of account equity therefore this concept normalized volatility across different market. A market with higher volatility will have a bigger N and dollar value hence smaller position size while low volatility produce a smaller N and dollar value hence a bigger position size. Please refer to the published Turtles rules for detailed explanation if you don’t understand this.

Entries – When to buy or sell

There are two systems. Both are channel breakout systems. System 1 is shorter-term based on a 20-day breakout while System 2 is longer-term based on a 55-day breakout. Very briefly, System 1 would go long on a break above the 20-day high or go short on a break below the 20-day low. System 2 would go long or short on a break of the 55-day high or 55-day low respectively.


In System 1, there is a filter rule which is not applicable in System 2. System 1 will only initiate a position provided the last theoretical trade is a loss. If the last theoretical trade is a winner, then System 1 will only enter when price breaks out of the FailSafe breakout point of 55-day high (for long) or 55-day low (for short) to avoid missing major moves. Let’s take a look at this visually on the March 2004 Soybean Oil chart in Fig 3.



Fig3.png
2018-10-23 16:47

Fig 3. FailSafe Breakout

At point A, System 1 went short on a breakout of the 20-day low. This position was liquated at point B when price breaks above the 10-day high. A few days later at point C, price breaks above the 20-day high. This would have been a long entry but because the last trade was profitable, this trade was therefore not taken. About a month later at point D, price has traded higher to break above the 55-day high. System 1 then went long so as not to miss the bigger move that followed.

Fig 3 shows the system without pyramid so as not to clutter the chart for clarity. The same system is shown again in Fig 4 with the Turtles’ method of pyramiding. The Turtles pyramid to maximum of 4 units at every ½ N profit. Now because of a limitation of TradeStation EasyLanguage where I cannot reliably get the 3rd unit entry price (to allow a 4th unit to be added) so I programmed the trading system to pyramid to a maximum of 3 units.

The Turtles’ method of adding additional units with the stops tightened is very logical. It lowers overall position risks and yet enjoys maximum benefits when it catches good trend moves. However there will be times when this may pose a problem.


Fig4.png
2018-10-23 16:47

Fig 4. Pyramid entries


If you study Fig 3 and Fig 4 carefully, you will notice that there was an extra exit in Nov marked by the label “lxN”. This was followed by a long re-entry in early Dec. Explanation of the Turtles’ stops and exits will make this clearer.

Stops and Exits – When to get out

Like with any well planned trading system, the Turtles’ too have money management stops and normal trade exits.

The money management stops are placed at 2N away from the entry price of the last unit entered. The position risk for a 1 unit position is 2N. Since the 2nd unit pyramid is added when price has moved ½ N in favour, the position risk for a 2 unit position is 3½ N (2N + 1½ N). Similarly, the total position risk for a 3 unit position is 4½ N (2N + 1½ N + 1N). The total risk for a full 4 unit position will then be 5N (2N + 1½ N + 1N + ½ N). Basically the stops for earlier positions are tightened up on pyramiding. Since 1 N represents 1 percent of account equity, therefore the respective risks are 2, 3½ , 4½ and 5 percent.

Now some will have problem with these risk numbers. If you recall in the last year’s July issue of Chartpoint, I wrote that my answer of 5 percent as the risk I would take in a position has caused my chance of a job opportunity with Commodities Corporation. So bear in mind that 5 percent is a very high number. But this is the way the Turtles trade and their high risk appetite may be the reason behind their tremendous record in such short period of time in the 1980s.

Trade exits are 10-days against for System 1 and 20-days against for System 2. This means that for System 1 when price violates the 10-day low, longs are exited, vice versa for shorts. For System 2, use the 20-day against. Therefore in short, System 1 is 20 in, 10 out while System 2 is 55 in, 20 out.

Okay now let’s see what exactly happened in Fig 3 and 4 that resulted in the additional exit and long re-entry.
The charts are reproduced in Fig 5.



Fig5.png
2018-10-23 16:47

Fig 5. Tightening of stops when adding units can result in whipsaw.


In the first situation shown on the top chart in Fig 5, the system was run without pyramiding, meaning only 1 unit was entered long on the Friday before 17 Nov. Immediately, the money stop was placed 2N below the entry price. This stop, represented by the red dots, was never hit and was eventually replaced by the 10-day low exit. This 10-day low exit condition was met on 22 Dec and the position exited as shown.


In the second situation shown on the lower chart in Fig 5, the system was run with pyramiding up to 3 units. The first unit was entered as above on Friday 14 Nov. The market then rose in favour of the position and when it hit the ½ N and 1N profits, the 2nd and 3rd units respectively were added according to the Turtles’ pyramid rules. The money stop was tightened (raised) so that it is 2N below the entry price of the 3rd unit. See Fig 5. Unfortunately, the market retraced enough to trigger this 2N stop from the 3rd unit entry price. The entire position of 3 units was stopped out as a result. The long position was re-entered when price broke out of the 20-day high again in Dec and exited as in the first example on 22 Dec.

This is one situation you have to live with when pyramiding. It doesn’t happen all the time but it does happen. Notice that in the example, the market did not retrace to the original 2N-stop calculated from the 1st unit entry price.

How Do You Add Units Or New Positions?

While there are rules on maximum position limits for single market (4 units), closely correlated market (6 units), loosely correlated markets (10 units) and total limits (12 + 12 units), what I feel that is not properly explained in the published Turtle rules but which is very important is whether there are rules pertaining to adding units or new positions when trading a portfolio.

Adding units at every ½ N profits is fine when trading only a single instrument or even 2 instruments. Although the rules did stipulate a maximum of 12 units long and 12 units short for a total of 24 units (obviously this has to be a portfolio), this could translate into a total portfolio risk of 30 percent, assuming 3 long positions of 4 units each and 3 short positions of 4 units each. (Earlier, you have seen how a 4-unit position represents 5 percent risk.) In the event that all this positions turned out wrong, the portfolio will be down by 30 percent!

Is this acceptable? What if this is a new portfolio without any profit cushion? I think you have to use your own techniques since this part of the Turtles’ training was not revealed in the published rules.

Indeed A Complete Trading System, And A Very Good One

The Turtle trading system is indeed a very good complete trading system. But if you want to get some testing done with the presently available technical analysis software, you will be disappointed. All available software can’t test trading system against a stable of instrument but only with single instrument. Nevertheless, the logic is very sound, risk is systematically managed, and the result can be proven.

The Japanese Yen was one of my anchor trading instruments for many years so naturally I was interested in what type of result the Turtle System 1 would produce. The following are two sets of results – Fig 6 is without pyramiding while Fig 7 is with pyramiding. These are hypothetical runs on historical data for the purpose of system testing and evaluation. These are purely computer runs where no actual trades were done.

The tests was based on spot US Dollar/Japan Yen data and did not take into consideration FX swaps which would need to be done to carry spot FX positions overnight and would have effect on the profit and loss performance.

Both hypothetical accounts started with USD 100,000 converted to Yen on the first bar of data. All figures are in Yen.

I am very impressed.



Fig6.png
2018-10-23 16:47

Fig 6. Turtle System 1 without pyramiding.



Fig7.png
2018-10-23 16:47

Fig 7. Turtle System 1 with pyramiding.



Important Disclaimer:
Currencies, Stocks, Futures and Options trading have large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the currencies, stocks, futures and options markets. Don't trade with money you can't afford to lose. This is neither a solicitation nor an offer to buy/sell currencies, stock, futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this web site. The past performance of any trading system or methodology is not necessarily indicative of future results.

CFTC RULE 4.41
HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

返回列表