visualise_weekly_time_heatmap#
API documentation for tradeexecutor.analysis.timemap.visualise_weekly_time_heatmap Python function.
- visualise_weekly_time_heatmap(positions, method='success_rate', color_continuous_scale=None, height=600)[source]#
Create a heatmap of which hours/days are best for trading.
Figyre out best trading hours
Mostly useful for strategies that trade 1h or more frequently
- Parameters:
positions (Iterable[TradingPosition]) –
Any trading positions to consider.
We will filter based on method.
method (ScoringMethod) – Which kind of heatmap to draw.
color_continuous_scale (str | None) – The color scheme of the heatmap.
- Returns:
Plotly heatmap figure
- Return type:
Figure