Strategy · Pine Script v6 · On the chart

전설의 전략 실험실 #1 터틀 트레이딩

by tvextbot

This strategy implements a simplified version of classic Turtle Trading using Donchian channel breakouts and ATR-based risk management.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code58
Settings7inputs
LicenceNone stated
Last update9 days ago15 Nov 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

전설의 전략 실험실 #1 터틀 트레이딩 calculates channel boundaries for trade entry and exit along with Average True Range. When price breaks out of the entry channel, the strategy submits stop entry orders for long positions, and optionally short positions. Positions are sized so that a one-N move represents a defined percentage of equity. Exits are triggered by an opposing exit channel breakout or a stop loss based on a multiple of ATR. It plots entry and exit lines directly on the chart.

Details

Published by

tvextbot on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
진입 돌파 기간(일)int20entryLen
청산 돌파 기간(일)int10exitLen
N(ATR) 기간int20atrLen
손절 폭(N의 몇 배)float2.0stopN
1회 위험(자본의 %)float1.0riskPct
숏(하락 돌파)도 하기booltrueuseShort
백테스트 시작일timetimestamp("01 Jan 2020 00:00 +0000")startT
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

257 stars

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 2 months ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint
16 stars

This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per

Strategy v6 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Seykota Alt 4: Weekly Donchian
12 stars

Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a

Strategy v6 BreakoutSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Estrategia Donchian Breakout

Donchian Channel Breakout

by pineforge-4pass
3 stars

This strategy tracks price breakouts using Donchian Channels calculated from the highest highs and lowest lows over configurable lookback periods. It plots the upper, lower, and mid entry channels directly on the price chart. A long entry triggers when the bar

Strategy v6 TrendBreakout
Updated 4 days ago · Apache-2.0 GitHub repository of Donchian Channel Breakout

This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr

Strategy v6 BreakoutTrend
Updated 7 days ago · AGPL-3.0 GitHub repository of Forven S01509 - Simple Donchian 20/10 Breakout

More Breakout scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers