• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /Indicators and strategies
  • /Turtlesallthewaydown

Turtlesallthewaydown

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.
Pine Script® strategy
by eugene71
Updated
4949

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Trading
  • Overview
  • Brokers
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Manifesto
  • Athletes
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security vulnerability
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First