visualise_returns_distribution#

visualise_returns_distribution(returns)[source]#

Breakdown the best day/month/yearly returns

Example:

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

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

Matplotlit figure

Parameters:

returns (Series) –

Return type:

Figure