Visualizer

class crypto_env.visualizer.Visualizer(env, time_feature_name='time')[source]

Bases: object

A handy collection of result visualization schema.

__init__(env, time_feature_name='time')[source]
Parameters
  • env (CryptoEnv) – The main environment

  • time_feature_name (str, optional) – (deprecated) Name of the time feature. Defaults to ‘time’.

draw_portfolio()[source]

Plot the portfolio

Returns

Plotly figure object

draw_return()[source]

Plot the investment return history

Returns

Plotly figure object

draw_signal()[source]

Plot the buy and sell signal generated by the agent

Returns

Plotly figure object