BackTest (fynance.backtest)ΒΆ

Vectorized backtesting engine and result. Plotting/reporting lives in fynance.plot (tearsheet).

backtest(data, positions[, cost, capital, ...])

Run a vectorized backtest.

BacktestResult(equity, returns, ...[, index])

Output of backtest.

ProportionalCost([fee, slippage])

Proportional transaction cost: (fee + slippage) * turnover.

set_text_stats(underly[, period, accur, ...])

Set a table as string with different indicators (accuracy, perf, vol and sharpe) for underlying and several strategies.

BacktestNeuralNet([figsize, loss_xlim, ...])