benchmark#

API documentation for tradeexecutor.visual.benchmark Python module in Trading Strategy.

Module description#

Compare portfolio performance against other strategies.

Functions#

create_benchmark_equity_curves(...[, ...])

Create data series of different buy-and-hold benchmarks.

get_plot_from_series(name, colour, series)

Draw portfolio performance.

visualise_all_cash(start_at, end_at, all_cash)

Draw portfolio performance.

visualise_benchmark(*args, **kwargs)

visualise_equity_curve_benchmark([name, ...])

Visualise strategy performance against benchmarks.

visualise_equity_curve_comparison(...[, colour])

Draw portfolio performance.

visualise_long_short_benchmark(state[, ...])

Visualise separate benchmarks for both longing and shorting

visualise_portfolio_equity_curve(name, ...)

Draw portfolio performance.