Skip to main content

plot_allocation

Plot asset allocation based on trading signals. Parameters: Returns:

plot_signal_crossover

Plot signal crossover points with upper and lower bounds. Parameters: Returns:

plot_signal_vlines

Plot long and short entry signals as vertical lines. Parameters: Returns:

plot_performance_matrix

Create a performance matrix heatmap. This function generates a heatmap of performance metrics for the given portfolio by resampling returns data to a monthly frequency. The matrix displays monthly returns by year, with an additional column for the total annual return. Parameters: Returns: Examples:

plot_smas

Plot Simple Moving Averages (SMAs). This function calculates and plots SMAs for the specified time periods. Parameters: Returns:

plot_bbands

Plot Bollinger Bands. This function calculates and plots Bollinger Bands for the given data. Parameters: Returns:

plot_slope_range

Plot slope ranges for a moving average. This function identifies and visualizes steep slopes in a moving average. Parameters: Returns:

plot_pattern

Plot pattern matches in price data. This function identifies and visualizes occurrences of a specified pattern in the price data. Parameters: Returns:

RegressionLine

Create a regression line plot. Inherites from vbt.Scatter. Parameters:

Ancestors

  • vectorbtpro.generic.plotting.Scatter
  • vectorbtpro.generic.plotting.TraceType
  • vectorbtpro.utils.config.Configured
  • vectorbtpro.utils.config.HasSettings
  • vectorbtpro.utils.caching.Cacheable
  • vectorbtpro.utils.checks.Comparable
  • vectorbtpro.utils.pickling.Pickleable
  • vectorbtpro.utils.formatting.Prettified
  • vectorbtpro.utils.chaining.Chainable
  • vectorbtpro.generic.plotting.TraceUpdater
  • vectorbtpro.utils.base.Base

TargetPortfolio

Create a target portfolio plot. Inherites from vbt.Scatter. Parameters:

Ancestors

  • vectorbtpro.generic.plotting.Scatter
  • vectorbtpro.generic.plotting.TraceType
  • vectorbtpro.utils.config.Configured
  • vectorbtpro.utils.config.HasSettings
  • vectorbtpro.utils.caching.Cacheable
  • vectorbtpro.utils.checks.Comparable
  • vectorbtpro.utils.pickling.Pickleable
  • vectorbtpro.utils.formatting.Prettified
  • vectorbtpro.utils.chaining.Chainable
  • vectorbtpro.generic.plotting.TraceUpdater
  • vectorbtpro.utils.base.Base

Frontier

Create a frontier plot. Inherits from vbt.Scatter. Parameters:

Ancestors

  • vectorbtpro.generic.plotting.Scatter
  • vectorbtpro.generic.plotting.TraceType
  • vectorbtpro.utils.config.Configured
  • vectorbtpro.utils.config.HasSettings
  • vectorbtpro.utils.caching.Cacheable
  • vectorbtpro.utils.checks.Comparable
  • vectorbtpro.utils.pickling.Pickleable
  • vectorbtpro.utils.formatting.Prettified
  • vectorbtpro.utils.chaining.Chainable
  • vectorbtpro.generic.plotting.TraceUpdater
  • vectorbtpro.utils.base.Base

Pie

Create a bar plot. Inherits from vbt.Configured and vbt.TraceUpdater. Parameters: Examples:

Ancestors

  • vectorbtpro.utils.config.Configured
  • vectorbtpro.utils.config.HasSettings
  • vectorbtpro.utils.caching.Cacheable
  • vectorbtpro.utils.checks.Comparable
  • vectorbtpro.utils.pickling.Pickleable
  • vectorbtpro.utils.formatting.Prettified
  • vectorbtpro.utils.chaining.Chainable
  • vectorbtpro.generic.plotting.TraceUpdater
  • vectorbtpro.utils.base.Base

Static methods

update_trace

Update the trace with new data. Parameters:

Methods

update

Update the plot with new data. Parameters: