single_pair#

tradeexecutor.visual.single_pair Python module in Trading Strategy framework.

Module description#

Tools to visualise live trading/backtest outcome for strategies trading only one pair.

Functions#

get_position_hover_text(p)

Get position hover text for Plotly.

visualise_positions_with_duration_and_slippage(...)

Visualise trades as coloured area over time.

visualise_single_pair(state, candle_universe)

Visualise single-pair trade execution.

visualise_single_pair_positions_with_duration_and_slippage(...)

Visualise performance of a live trading strategy.