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.

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:

Figure