Skip to content

BuyAndHold


class backtide.strategies.BuyAndHold(symbol=None)

Passive baseline that buys once and holds indefinitely.

The simplest possible strategy: buy on the very first bar and hold the position until the end of the simulation. Serves as the baseline benchmark against which all other strategies are compared. Equivalent to a passive index investment over the backtest window.

Attributes

name : str

Human-readable strategy name.

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


See Also

Momentum

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

SmaNaive

Naive single Simple Moving Average trend-following strategy.

TurtleTrading

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


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.