Skip to content
Python backtesting
Sponsored by
Pineify
AI Trading Toolkit
↗
Initializing search
OpenBacktesting
lucidcog/openbacktesting
Start here
Start here
Your first backtest
Examples
Scope and limitations
Studio
Studio
Install and launch
Choose your workspace
Run your first strategy
Read charts and results
Edit code and parameters
Inspect logs
Compare parameters
Save, share, and reopen
Troubleshooting
Guides
Guides
Writing strategies
Market data
Trading rules
Indicators
Strategy inputs
Running strategies
Reading results
Parameter experiments
Plotting data
API reference
API reference
Backtest
Strategy
Data and instruments
Orders, positions, and trades
Accounts and events
Indicator API
Inputs
Runtime
Helpers
Portfolio
Optimizer
Plotting
Colors
Indicators
Indicators
Candles and patterns
Candles and patterns
cdl_doji
cdl_engulfing
cdl_eveningstar
cdl_hammer
cdl_harami
cdl_inside
cdl_marubozu
cdl_morningstar
cdl_shootingstar
cdl_z
ha
Cycles
Cycles
dsp
ebsw
ht_dcperiod
ht_dcphase
ht_phasor
ht_sine
ht_trendmode
msw
Momentum
Momentum
ac
ao
apo
bias
bop
brar
cci
cfo
cg
cmo
coppock
crsi
cti
dm
er
eri
fisher
fosc
gator
ibs
inertia
kdj
kst
lrsi
macd
macdext
macdfix
mom
pgo
pmo
po
ppo
psl
pvo
qqe
rci
rmi
roc
rocp
rocr
rocr100
rsi
rsx
rvgi
slope
smc_sweep
smi
smi_stochastic
squeeze
squeeze_pro
stc
stoch
stochf
stochrsi
td_seq
trix
trixh
tsi
uo
vwmacd
wavetrend
willr
Moving averages and prices
Moving averages and prices
alligator
alma
anchored_vwap
anchored_vwap_bands
avgprice
dema
ema
frama
fwma
hilo
hl2
hlc3
hma
ht_trendline
hwma
ichimoku
jma
kama
linreg
linregangle
linregintercept
linregslope
ma
ma_envelopes
mama
mavp
mcgd
medprice
midpoint
midprice
mmar
ohlc4
pwma
rainbow
rma
sinwma
sma
ssf
supertrend
swma
t3
tema
trima
tsf
typprice
vidya
vwap
vwma
wcp
wma
zlma
Returns and drawdowns
Returns and drawdowns
drawdown
log_return
percent_return
Series utilities
Series utilities
barssince
change
cross
crossover
crossunder
cum
falling
highest
highestbars
lowest
lowestbars
percentile_linear_interpolation
percentile_nearest_rank
percentrank
range
rising
rolling_count
rolling_sum
running_max
running_min
shift
valuewhen
Statistics
Statistics
beta
correl
entropy
kurtosis
mad
md
median
mode
quantile
skew
stderr
stdev
variance
zscore
Trend
Trend