Skip to main content

Module prebuilt

Module prebuilt 

Source
Expand description

Pre-built trading strategies.

Ready-to-use strategy implementations that can be used directly with the backtest engine. Each strategy implements the Strategy trait and can be customized via builder methods.

§Available Strategies

StrategyDescription
SmaCrossoverDual SMA crossover (trend following)
RsiReversalRSI mean reversion
MacdSignalMACD line crossover
BollingerMeanReversionBollinger Bands mean reversion
SuperTrendFollowSuperTrend trend following
DonchianBreakoutDonchian channel breakout

§Example

use finance_query::backtesting::{SmaCrossover, BacktestConfig};

// Use a pre-built strategy directly
let strategy = SmaCrossover::new(10, 20).with_short(true);

Structs§

BollingerMeanReversion
Bollinger Bands Mean Reversion Strategy
DonchianBreakout
Donchian Channel Breakout Strategy
MacdSignal
MACD Signal Strategy
RsiReversal
RSI Reversal Strategy
SmaCrossover
SMA Crossover Strategy
SuperTrendFollow
SuperTrend Following Strategy