visualise_returns_distribution#
API documentation for tradeexecutor.visual.equity_curve.visualise_returns_distribution Python function.
- 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)