Skip to content

TurtleTrading


class backtide.strategies.TurtleTrading(entry_period=20, exit_period=10, atr_period=20)

Classic channel-breakout trend-following system with ATR-based position sizing.

A classic trend-following system inspired by the Turtle Traders. Buys on a breakout above the highest high of the last N bars and sells on a breakdown below the lowest low of the last M bars. Uses ATR-based position sizing to normalise risk across instruments. Useful for systematic trend-following with built-in risk management.

Parameters

entry_period : int, default=20

Number of bars for the entry breakout (highest high).

exit_period : int, default=10
Number of bars for the exit breakdown (lowest low).

atr_period : int, default=20
ATR period for position sizing.

Attributes

name : str

Human-readable strategy name.

is_multi_asset : bool
Whether this is a multi-asset strategy.


See Also

BuyAndHold

Passive baseline that buys once and holds indefinitely.

Momentum

Trend-following strategy driven by short-term price momentum.

RiskAverse

Low-volatility breakout strategy for risk-conscious investors.


Methods

description Short explanation of what the strategy does.
required_indicators Indicators that must be computed up-front for this


method backtide.strategiesdescription()

Short explanation of what the strategy does.

Returns

str

The description.



method backtide.strategiesrequired_indicators()

Indicators that must be computed up-front for this

strategy.

Returns a list of indicator instances, already parameterised with this strategy's current settings, that the engine will auto-include before the simulation starts.

Returns

list

The required indicator instances.