Macd
class backtide.strategies.Macd(fast_period=12, slow_period=26, signal_period=9)
Moving Average Convergence Divergence crossover strategy.
Buys on a MACD golden cross (MACD line crosses above the signal line) and sells on a death cross (MACD line crosses below the signal line). Captures medium-term trend changes driven by the divergence between fast and slow exponential moving averages. Useful for trend-following in moderately trending markets.
See Also
Trend-following strategy driven by short-term price momentum.
Simple Moving Average crossover strategy using fast and slow periods.
Relative Strength Index combined with Bollinger Bands for dual confirmation.
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.
|