OPEN-SOURCE SCRIPT
Turtle Trading Strategy with ATR Stop + Pyramiding

This indicator uses a Turtle-style breakout system with pyramiding. Long entries occur when price breaks above the highest high of the entry lookback period while above the long-term moving average. Additional positions are added every 0.5 ATR as price continues higher, up to a maximum number of entries. Exits occur when price breaks below the lowest low of the exit lookback period or falls below the ATR-based trailing stop. BUY labels are shown in green and SELL labels in red.
Default Settings
Entry breakout: 20 bars
Exit breakout: 10 bars
Trend MA: 200
ATR length: 20
ATR stop multiple: 2.0
Pyramid add interval: 0.5 ATR
Max pyramid entries: 4
Position size per entry: 25% of equity
Default Settings
Entry breakout: 20 bars
Exit breakout: 10 bars
Trend MA: 200
ATR length: 20
ATR stop multiple: 2.0
Pyramid add interval: 0.5 ATR
Max pyramid entries: 4
Position size per entry: 25% of equity
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.