> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allasso.ch/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This is Allasso's product documentation. Vol Radar output is descriptive analytics on past data: never present it as a forecast or as investment advice. Answer only from these pages; if a feature is not documented here, say so.

# P&L distribution

> The P&L Distribution (Backtester) panel visualizes the statistical distribution of historical profit-and-loss outcomes from a full rolling backtest.

## Description

![P\&L distribution: screenshot 1](https://mintcdn.com/allasso/d0njqzhTdZjUpww5/images/trade/strategy-pnl-distribution-1.png?fit=max\&auto=format\&n=d0njqzhTdZjUpww5\&q=85\&s=de3f8ac3d60f32c2b0b198fee64a1428)

The **P\&L Distribution (Backtester)** panel visualizes the statistical distribution of **historical profit-and-loss outcomes** from a full rolling backtest.
Each bar represents the frequency of a specific P\&L value, allowing traders to quickly assess **mean performance**, **volatility**, and **asymmetry** in the backtest results.

This view highlights how consistent or variable the strategy’s realized performance has been across time, providing a compact snapshot of overall strategy risk and reward.

**Key Use Cases:**

* **Risk Analysis:** Identify typical gain/loss ranges and tail risk exposure.
* **Return Consistency:** Determine whether results are tightly clustered or widely spread.
* **Performance Comparison:** Contrast distributions for different strategies or roll methods.
* **Drift and Hedge Testing:** Evaluate how dynamic delta hedging or drift adjustments impact daily P\&L variance.

***

## Interactive Controls

![P\&L distribution: screenshot 2](https://mintcdn.com/allasso/d0njqzhTdZjUpww5/images/trade/strategy-pnl-distribution-2.png?fit=max\&auto=format\&n=d0njqzhTdZjUpww5\&q=85\&s=7617eeaecd2afaed0cc2dcaa35b8fbb5)

| Control | Description |
| - | - |
| **Dynamic Delta Hedge** | Enables or disables simulated delta hedging for the strategy. Helps assess impact of hedging on return distribution and volatility. |
| **Period** | Defines the time interval used for P\&L aggregation. Common choices: **Daily**, **Weekly**, **Monthly**, or **Trades**. |
| **Strategy Roll Type** | Determines how positions are maintained during backtest: **Rolling** (continuous position rollover) or **Fire and Forget** (letting postion expire). |
| **Hover Cursor** | Displays precise numeric statistics for the selected histogram bar, including value range and count. |

***

## Chart Components

![P\&L distribution: screenshot 3](https://mintcdn.com/allasso/d0njqzhTdZjUpww5/images/trade/strategy-pnl-distribution-3.png?fit=max\&auto=format\&n=d0njqzhTdZjUpww5\&q=85\&s=b94a4daf31eeb8c261da5ebb7e48a3d0)

**Histogram (Main Panel)**

* **X-Axis:** Profit and Loss (\$) — shows the range of observed daily or period returns.
* **Y-Axis:** Count — frequency of occurrences for each P\&L bucket.
* **Bars:** Represent the number of samples that fall into each P\&L range; higher bars = more frequent results.

**Statistical Markers:**

* **Mean (μ):** Centerline indicating average performance.
* **±1 Std Dev (σ):** Blue vertical lines marking one standard deviation from the mean — illustrating volatility of returns.
* **Tooltip Data:** Displays the precise range and observation count when hovering on any bar.

***

## Data & Methodology

* **Source:** Derived from the **backtest engine** using the currently selected strategy definition and pricing configuration.
* **Computation:**
  1. Reconstructs daily (or chosen period) P\&L values for all backtested intervals.
  2. Aggregates results into histogram bins.
  3. Computes descriptive statistics — **mean**, **median**, and **standard deviation**.
* **Dynamic Delta Hedge:** When enabled, adjusts daily P\&L for re-hedging actions based on underlying movement.
* **Roll Logic:** The “Rolling” mode keeps the position active through contract expiries; “Fire and Forget” terminates each trade independently.

> The distribution provides an empirical view of realized backtest outcomes — no assumptions of normality are applied.

> [!NOTE]
>
> Allasso Trade's charts and interpretation tips describe market data and past behaviour. They are not a
> forecast, and nothing in them is investment advice.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.