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_signals

Plot trading signals on a price chart. This function overlays trading signals (long/short entries and exits) on a price chart for a given asset symbol. It uses the provided data and signals to generate the plot. Parameters: Returns: Examples:

plot_signal_vlines

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

plot_dashboard

Generate a dashboard visualization for a pair of assets. Parameters: Returns:

plot_pie_chart

Plot a pie chart. This function creates a pie chart using the Pie class from systematica.utils.custom_plots. Parameters: Returns:

plot_allocations

Plot portfolio allocations over time. This function visualizes portfolio allocations as an area plot. It supports grouping by categories and marking rebalancing dates. 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_performance_reset

Plot performance reset by month or year. This function calculates and plots the percentage change in performance reset at the start of each month or year. Parameters: Returns:

plot_performance_rebase

Plot rebased performance. This function rebases the performance data to a starting value of 1 and plots it. Parameters: Returns:

plot_cash

Plot cash-related metrics for a portfolio. This function creates subplots for cash, cash flow, gross exposure, and net exposure. Parameters: Returns:

plot_excursions

Plot trade excursions for a portfolio. This function visualizes Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) for each trade in the portfolio. Parameters: Returns:

plot_all_trades

Create a plot of all trades in the portfolio. The function generates subplots for all trades within the specified portfolio. Parameters: Returns: Examples:

plot_drawdown

Create a drawdown plot for the portfolio. This function visualizes the drawdowns and underwater metrics of the portfolio. Parameters: Returns: Examples:

plot_trades

Plot trades and asset flow for a specific symbol. This function creates subplots for trades, asset flow, and asset holdings. Parameters: Returns:

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:

plot_frontier

Plot Frontier. Parameters: Returns:

plot_scatter_matrix

Plot trial. Parameters: Returns:

plot_histogram_matrix

Plot trial. Parameters: Returns:

plot_density_heatmap

Plot density heatmap. Parameters: Returns:

plot_density_contour

Plot density contour. Parameters: Returns:

plot_range_breakout_signals

Plot range breakout. Parameters: Returns:

plot_range_breakout_model_output

Plot range breakout indicator. Parameters: Returns: