Donchian Channel Breakout (Turtle) - Statistics [Dots3Red]

378
📏 DONCHIAN CHANNEL BREAKOUT (TURTLE) - STATISTICS [Dots3Red]
This indicator plots short and long Donchian Channels, the highest high and lowest low of the last N bars, and measures how often a close beyond each channel was followed by a real move in the breakout direction on the current chart.

✨ WHY THIS MATTERS
The Donchian breakout is the basis of the famous Turtle Trading system: buy a new 20-bar high, or a new 55-bar high, and sell the mirror image. It is simple, and it is a core idea in trend following. Its known problem is that most breakouts fail, and the few that work pay for the rest. This script counts how often breakouts of each length actually followed through on your instrument, so you can see whether the longer channel is worth its slower signal.

⚙️ HOW IT WORKS
📏 Channels — a short channel (default 20 bars), a long channel (default 55 bars) and an optional exit channel (default 10 bars).
💥 Four breakout types
• Short channel high breakout and low breakdown
• Long channel high breakout and low breakdown
A breakout is a close beyond the prior channel high or low, counted only on the first bar of a new breakout, not on every bar of a continuing run.
🎯 Grading — each breakout is graded from its close against two levels fixed at that moment:
• Worked — price moves a set ATR distance in the breakout direction
• Failed — price moves a set ATR distance against it first, or the window runs out
If both happen on the same bar, it counts as failed. Only one breakout of each type is graded at a time. When both channels break on the same bar, both are counted and the label shows the long channel.
📊 Dashboard — number of breakouts graded and the share that worked, for each type, plus the current position inside the short channel and its width in ATR.
🏷️ On the chart — channel lines with an optional fill, the long channel, an optional exit channel, and breakout labels showing the measured rate.
🔒 Non-repainting — breakouts, labels and grading use confirmed bars only.

🧭 HOW TO USE
1️⃣ Compare the short and long channels. If the long channel is clearly better, patience pays here. If not, the faster signal costs nothing.
2️⃣ Compare highs and lows. Many instruments have a clear long or short bias.
3️⃣ Watch channel width. A very narrow channel means volatility is compressed, and breakouts from it behave differently from breakouts of a wide channel.
4️⃣ Tune the lengths. The classic 20 and 55 are not special; the dashboard shows what fits your chart.
5️⃣ Use it as context, not a trigger. The rates describe how breakouts have behaved on this chart. They do not predict the next one.

⏱️ WHICH TIMEFRAMES WORK BEST
1-hour through daily. The original Turtle rules were designed for daily bars; lower timeframes build a sample faster but contain more false breakouts.
🛠️ SETTINGS
📏 Donchian Channels — short channel length, long channel length, exit channel length
🎯 Breakout Grading — ATR length, target (× ATR), stop (× ATR), max bars to resolve, minimum samples to show a rate
🎨 Visuals — upper and lower colors, line thickness, channel fill, long channel, exit channel, breakout labels, minimum bars between labels, label text size
🖥️ Dashboard — show/hide, position, text size
🔔 Alerts — short channel breakout and breakdown, long channel breakout and breakdown

📝 NOTES
This script measures breakouts with a fixed ATR target and stop, not the full Turtle exit rule. All rates are specific to this chart, timeframe and settings, and do not transfer to other instruments or configurations.

⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical statistics do not guarantee future performance.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.