visualise_single_pair_strategy_state#

visualise_single_pair_strategy_state(state, target_pair_candles, start_at=None, end_at=None, pair_id=None, height=512, technical_indicators=True, title=False)[source]#

Produces a visualisation of the strategy state for a single pair.

Parameters:
  • state (State) – The strategy state

  • target_pair_candles – The candles for the pair

  • start_at (Optional[datetime]) – Draw by a given time range

  • end_at (Optional[datetime]) – Draw by a given time range

  • height – The height of the image

  • technical_indicators – Whether to draw technical indicators or not

  • pair_id (Optional[int]) –

Returns:

The strategy state visualisation as Plotly figure

Return type:

Figure