visualise_returns_over_time#

API documentation for tradeexecutor.visual.equity_curve.visualise_returns_over_time Python function.

visualise_returns_over_time(returns)[source]#

Draw a grid of returns over time.

Example:

from tradeexecutor.visual.equity_curve import calculate_equity_curve, calculate_returns
from tradeexecutor.visual.equity_curve import visualise_returns_over_time

curve = calculate_equity_curve(state)
returns = calculate_returns(curve)
fig = visualise_equity_performance(returns)
display(fig)
Returns:

Matplotlit figure

Parameters:

returns (Series) –

Return type:

Figure