Strategy Reference

Overview

QuanTest includes 10 built-in strategies. The Free plan includes Moving Average Cross, Breakout, and RSI Contrarian. The remaining 7 strategies require a Pro license.

Moving Average Cross (Free)

Generates signals when two moving averages cross.

Logic: A buy signal fires when the short MA crosses above the long MA; a sell signal fires on the opposite cross.

ParameterDescriptionDefault
Short periodPeriod for the short moving average (days)5
Long periodPeriod for the long moving average (days)25

Breakout (Free)

Generates signals when price breaks out of a recent high or low.

Logic: A buy signal fires when price sets a new N-day high; a sell signal fires on a new N-day low.

ParameterDescriptionDefault
Entry periodLookback period for the high/low (days)20
Exit periodOpposing breakout period for closing positions10

RSI Contrarian (Free)

A mean-reversion strategy based on RSI overbought/oversold levels.

Logic: A buy signal fires when RSI falls below the oversold threshold; a sell signal fires when RSI rises above the overbought threshold.

ParameterDescriptionDefault
RSI periodPeriod used to calculate RSI14
OversoldRSI threshold for buy signal30
OverboughtRSI threshold for sell signal70

Bollinger Bands (Pro)

Generates signals when price deviates from or returns to the Bollinger Bands.

Logic: A buy signal fires when price breaks below the lower band; a sell signal fires when price breaks above the upper band.

ParameterDescriptionDefault
PeriodMoving average calculation period20
Std dev multiplierBand width (multiples of σ)2.0

Deviation Rate (Pro)

A mean-reversion strategy based on the percentage deviation from a moving average.

ParameterDescriptionDefault
PeriodMoving average period25
Buy threshold (%)Buy signal when deviation is below this value-5
Sell threshold (%)Sell signal when deviation is above this value+5

Buy & Hold (Pro)

Buys at the start of the period and sells at the end. Useful as a benchmark.

No parameters.


Periodic Buy (Pro)

Mechanically buys at fixed intervals — a dollar-cost averaging strategy.

ParameterDescriptionDefault
Buy interval (trading days)How often to buy20

MACD (Pro)

Generates signals from MACD line and signal line crossovers.

ParameterDescriptionDefault
Fast periodShort EMA period12
Slow periodLong EMA period26
Signal periodEMA period for the signal line9

Stochastics (Pro)

Generates signals from %K / %D crossovers and overbought/oversold levels.

ParameterDescriptionDefault
%K periodPeriod for %K calculation14
%D periodEMA period for %D (smoothed %K)3
OversoldBuy signal threshold20
OverboughtSell signal threshold80

Donchian Breakout (Pro)

Generates signals from Donchian Channel breakouts. An alternative implementation of the breakout concept.

ParameterDescriptionDefault
PeriodChannel lookback period (days)20