OPEN-SOURCE SCRIPT
Turtle System 1

Turtle Trader system is a famous trend-following trading methodology created by Richard Dennis and his partner William Eckhardt in the early 1980s.
The backstory is almost as interesting as the system itself:
Dennis believed trading success was a skill that could be taught, while Eckhardt thought it was more about innate talent.
To settle the debate, they recruited a group of ordinary people — with little to no trading experience — and trained them in a simple rules-based strategy. These students became known as the "Turtles".
The system focused on trading breakouts in futures markets (commodities, currencies, bonds, stock indices) with strict risk management.
System 1 (Short-Term)
Entry: Buy when price breaks above the 20-day high. Sell short when price breaks below the 20-day low.
Exit: Opposite 10-day breakout (i.e., sell long positions if price breaks below the 10-day low).
The backstory is almost as interesting as the system itself:
Dennis believed trading success was a skill that could be taught, while Eckhardt thought it was more about innate talent.
To settle the debate, they recruited a group of ordinary people — with little to no trading experience — and trained them in a simple rules-based strategy. These students became known as the "Turtles".
The system focused on trading breakouts in futures markets (commodities, currencies, bonds, stock indices) with strict risk management.
System 1 (Short-Term)
Entry: Buy when price breaks above the 20-day high. Sell short when price breaks below the 20-day low.
Exit: Opposite 10-day breakout (i.e., sell long positions if price breaks below the 10-day low).
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.