visualise_equity_curve#
API documentation for tradeexecutor.visual.equity_curve.visualise_equity_curve Python function.
- visualise_equity_curve(returns, title='Equity curve', line_width=1.5)[source]#
Draw equity curve, drawdown and daily returns using Quantstats.
See Quantstats README for more details.
See also
tradeexecutor.visual.benchmark.visualise_equity_curve_benchmark()
tradeexecutor.visual.grid_search.visualise_single_grid_search_result_benchmark()
Example:
from tradeexecutor.visual.equity_curve import calculate_equity_curve, calculate_returns from tradeexecutor.visual.equity_curve import visualise_equity_curve curve = calculate_equity_curve(state) returns = calculate_returns(curve) fig = visualise_equity_curve(returns) display(fig)
- Returns:
Matplotlit figure
- Parameters:
returns (Series) –
- Return type: