Turtle Money ManagementThe Turtle Trading approach* is a trend following system that uses volatility for position size. *(Richard Dennis & William Eckhardt )
Turtle traders use the N unit system for risk management, which has its own advantages. This indicator offers beginners a simple interface that uses the same logic. Using ATR (Average True Range) to measure volatility.
The indicator shows the suggested position size and stop-loss price. You need to activate position line to see how it behaved in the past. Information about the Turtle system shows that it works in a daily candle. Intraday candles can be misleading (for ATR) because of this indicator use daily ATR by default. I leave the choice to you.
Limits recommended by Turtle Traders
-
Single Trade % 2 Maximum risk
Single Market % 4 Maximum risk
Closely Correlated Markets % 6 Maximum risk
Loosely Correlated Markets % 10 Maximum risk
Single Direction – Long or Short % 12 Maximum risk
Turtletrader
Donchian Channels Strategy by KrisWatersDoncian Channels is a trend tracking indicator developed by Richard Doncian. The upper line of the channel is determined by the highest value seen by the price in the defined period, the lower line of the channel is determined by the lowest value seen by the price in the defined period. The middle line takes the average value of the lower and upper channels.
Strategy Settings:
- Can apply only LONG positions.
- Can apply only SHORT positions.
- Use LONG/SHORT both.
- You can use ATR as a second exit condition. If ATR stop disabled, Donchian upper or lower channel value is use for the exit rule to long and short positions.
Strategy can be able to optimize by changing channel lengths and timeframe.
Turtle Trend Trading System [racer8]This is the Turtle traders' actual system which uses a 55 period channel for entries & a 20 period channel for exits. Enjoy ;)
Turtle N NormalizedSimple script that calculates the normalized value of N. Rules taken from an online PDF containing the original Turtle system:
"The Turtles used a volatility-based constant percentage risk position sizing algorithm. The Turtles used a concept that Richard Dennis and Bill Eckhardt called N to represent the underlying volatility of a particular market.
N is simply the 20-day exponential moving average of the True Range, which is now more commonly known as the ATR. Conceptually, N represents the average range in price movement that a particular market makes in a single day, accounting for opening gaps. N was measured in the same points as the underlying contract.
The Turtles built positions in pieces which we called Units. Units were sized so that 1 N represented 1% of the account equity. Thus, a unit for a given market or commodity can be calculated using the following formula:
Unit = 1% of Account/(N x Dollars per Point)"
To normalize the Unit formula, this script instead takes the value of (close/N). Dollars per point = 1 for stocks and crypto, but will change depending on the contract specifications for individual futures.
"Since the Turtles used the Unit as the base measure for position size, and since those units were volatility risk adjusted, the Unit was a measure of both the risk of a position, and of the entire portfolio of positions."
When the value of N is high, volatility is low and you should be more risk-on.
When the value of N is low, volatility is high and you should be more risk-off.
Weeknights Donchian CloudDonchian Channel Trading system visualised as a cloud.
Regular/Quick inputs;
Length: 20
Entry Length: 20
Stop Length: 10
Alternate/Slower Inputs;
Length: 55
Entry Length: 55
Stop Length: 20
For a more in-depth review, look up "Turtle Trading" rules
The simplest way to use the cloud;
-When the cloud flips from above to below (support), close any shorts and open a long
-When the cloud flips from below to above (resistance), close any longs and open a short
-Cloud is flipped based on a breakout on the high / low
-Most effectively used on the daily, but can be used on any time frame
-For traditional markets, an input of 20 is most commonly used
-For 24/7 markets, an input of 28 is most commonly used
-Find an input that makes the most sense to you!
I appreciate any feedback, feel free to message me on twitter / comment!
Twitter ; @ImWeeknight
Credit to user KivancOzbilgic for helping with the script
Turtle trading strategy (Donchian/ATR)Strategy based on Turtle Trading Strategy from William Eckhardt and Richard Dennis
- Considers entering trades on breakout of Donchian channels (upper for long, lower for short) (Default length = 20 for daily)
- Considers exiting trades on breakout of Donchian channels (lower for long, upper for short) with lower length (10 for daily)
- Uses 2N ATR (default) as stop loss
Turtle Strategy Short Sell VersionThis is a short-sell version of the strategy based on the famous turtle system.
www.tradingblox.com
In a nutshell, it a trend trading system where you are shorting on strength (in the downtrend), selling on
weakness (that it might be reversing).
positions should be entered when the price crosses under the 20-day low (S1 low) or 55-day low (S2 low).
positions should be exited when the prices crosses over the 10-day high (S1 high) or 20-day high (S2 high)
you can add positions at every unit (measured by multiple of n, where n=1 ATR)
stops should be placed at 2*n above every position entered, when the stop is hit exit your entire position.
positions should be entered everytime price crosses under S1 or S2, with one exception:
if the last trade was an S1 trade and it was a winning trade, skip the next trade unless the price crosses
under S2, if that is the case, you should take it.
S1 and S2 levels are also configurable for high and lows.
N multiple for stops and pyramid are also configurable
To change this from a strateg to a study:
1) uncomment the next line and comment out the strategy line.
2) at the end of the file comment out the last 2 lines
study(title="Turtle Study Short", overlay=true)
Real TurtleThere are a few different attempts at the turtle strategy on here, but none that I have seen thus far correctly follow the strategy as I know it. This version uses a stop order to trail out of the position by moving the stop order to match the exit channel or stoploss as the N*2( ema of True Range * 2). This version of turtle strategy also uses stop orders for entry on either side in order to enter at optimal time. The ability to specify a backtest period was borrowed from another script, I grabbed it so long ago I no longer remember from whom i borrowed it, if it was yours I will credit you if you PM me.
This version unlike others also allows you to specify a risk % so you only risk that percentage of your equity in a trade, as calculated from your stoploss.
Disclaimer: I have published several scripts in the past when i was first learning pinescript and they are all horrible please ignore those. I would delete them, but TV doesn't allow you to delete.
Turtle SystemFirst pinescript strategy I've ever written so still learning what is possible.
This strategy is based on the famous turtle system and tried to stay true
to the rules within the confines of what pinescript will allow me to do.
Features:
Green lines represents the 20/55 day highs (configurable)
Red lines represent the 10/20 day lows (configurable)
Purple line represents stop (defaults to 2N away configurable)
Pyramids up to 5 long positions (each 1N away configurable).
Arrows:
Up Arrow Green - 20 day long position entered
Up Arrow Purple - 55 day long position entered
Down Arrow Green - Winning trade exited out.
Down Arrow Red - Losing Trade either stopped out or exited out.
Code tracks successful wins as it is only allowed to enter positions if the last trade was not a wining trade.
One limitation, only supports Long trades although wouldn't be a lot of work to also make it support Short. NASDAQ:AAPL
Love to hear feedback on improvements, particularly to make it more robust.
Consecutive Highs/LowsTrack consecutive new highs/lows outside the Donchian range. Fans of the oldschool Turtle Strategy should enjoy the visualization.
Same logic as my "Walking the Bands" script, just with Donchian breaks instead of Bollinger tags.
B3 Donchian CloudsThis is the Donchian Channel expressed with a percentage cloud. Default 12.5% of the range will be filled at each edge, this helps to show reversal possibilities as price returns to the area between the clouds. This offers a usage to essentially fade the turtle trader system. That system is loosely based on the playing of the breakouts of the the channel... as you can see the that last turtle trade long in YM1! was and is off the charts awesome. I will look for the fall out of the cloud to short the market.