# Statistics

Last updated

Last updated

Statistics panel is a very useful and informative tool for traders. This panel contains a massive array of trading statistics, various P/L charts, data about trade population and drawdowns.

Statistics panel consists of 2 tabs: ‘Performance Data’ and ‘Performance Charts’.

**Performance Data**

The section above the table contains the following parameters:

Start capital – shows balance value before running the strategy.

Final capital – shows balance value after the strategy stopped working.

Gross P/L – shows Gross P/L for the period of work of the strategy.

All information in the ‘Performance Data’ tab is divided into three following sections:

Cumulative P/L

Trades population

Drawdowns

The table consists of 4 columns:

Variables – in this column, user can find the names of the parameters.

Total – in this column, user can find parameters for Short and Long trades.

Long – in this column, user can find parameters for Long trades.

Short – in this column, user can find parameters for Short trades.

Let’s consider all the tabs in details.

The first section is **Cumulative P/L**. Here users can see all the information about their trading results and capital. All operations are displayed together (‘Total’ tab), but they can also be viewed separately divided by operation type (‘Long’ and ‘Short’ tabs).

Cumulative P\L :

Profit factor – indicator of profitability showing what average profit in relation to loss is. Calculated as:

Profit factor = (avr_TP * %TP)/(avr_SL * %SL), where:

avr_TP – size of the average profitable trade (in ccy);

%TP – probability of the profitable trade receiving;

avr_SL – size of the average losing trade (in ccy); avr_SL is always taken modulo.

%SL – probability of the losing trade receiving.

Fee = (Fee/Start capital)*100%

Expected payoff – mathematical expectation of win. This parameter to be calculated statistically represents average profit/loss factor of one trade. Calculation formula:

Expected payoff = (avr_TP * %TP) – (avr_SL * %SL), where

avr_TP – size of the average profitable trade (in ccy);

%TP – probability of the profitable trade receiving;

avr_SL – size of the average losing trade (in ccy); avr_SL is always taken modulo.

%SL – probability of the losing trade receiving.

Recovery factor – is a ratio of the net profit to the maximum drawdown. Calculation formula:

Recovery factor = Net profit / Max DD, where

Max DD – module of the maximum drawdown (in ccy);

Net profit – trading result for the analyzed period.

Sharpe Ratio – is a ratio of the expected payoff to the standard deviation. Calculation formula:

Sharpe Ratio = Expected payoff/STD, where

STD – standard deviation of the trading results;

STD = SQRT(1/(n-1) * SUM(xi-avr_x)^2)

Win/Loss Ratio – is a ratio of the probability of the profitable trade receiving to the probability of the losing trade receiving. Calculation formula: Win/Loss ratio =%TP/%SL

Trades population:

Trades Loss – shows total loss by all losing trades for period.

Trades Win – shows total profit by all winning trades for period.

Average Loss – displays the average P/L value for losing trades.

Average Win – displays the average P/L value for winning trades.

Max. consecutive Loss – shows the longest series of losses in a row among the total number of trades, and their value in the money.

Max. consecutive Win – shows the longest series of wins in a row among the total number of trades, and their value in the money.

Largest Loss – displays the largest profit loss of one trade for the selected period.

Largest Win – displays the largest profit win of one trade for the selected period.

Drawdowns:

Maximal drawdown – is the highest difference between one of local upper extremums of the balance chart and the following lower extremums.

Maximal drawdown, % = (Maximal drawdown ÷ Peak Balance value) * 100%

Absolute drawdown – is the difference between the current capital and current local upper extremum.

Average drawdown – is the arithmetic average of all drawdowns over a given time period.

Average drawdown, % – is the ratio of the sum of the drawdowns expressed as a percentage to the total number of drawdowns.

Average drawdown, % = Sum (DD1,% +…+DDn,%)/N

**Performance Charts**

Performance Charts tab allows users to view changes of the balance and P/L graphically.

Chart selector allows to choose the type of data to be displayed.

Cumulative P/L

Aggregate P/L

Trades Population

Drawdowns

If you choose ‘Cumulative P/L’ or ‘Aggregate P/L’, you can select by what trades you want to see a chart:

Total – allows building a chart by short and long trades.

Long – allows building a chart by long trades.

Short – allows building a chart by short trades.

Section 'Total' is selected and displayed by default in all the tabs. Volume bars are plotted on the chart regardless of selected horizontal scale type (Operations, Hours, Days, etc.). Volume is displayed in lots.

**Aggregated P/L** charts display Gross and Net P/L for selected 'aggregation' interval.

Aggregation interval – allows aggregating P/L chart by the needed periods: by months, by days, by hours. Option 'Hours' (i.e. By hour of the day) is set by default. The charts can be also displayed by side of the trading, available side tabs are: Total, Buy, Sell.

Trades population consists of two charts:

Pie chart, which illustrates the completed trades number for each individual symbol and shows their values in % from total trades number;

Profitable chart of the selected symbol, which appears when a user clicks on the sector of a pie chart.

Profitable chart displays Cumulative P/L and volumes of trades made for the selected symbol within the period of work of the strategy.

Drawdowns chart shows the graphical distribution of drawdowns built trade by trade. Volumes of the trades are also displayed on the chart.

Cumulative P/L chart in the ‘**Operations’** mode displays how a user’s balance was changed depending on the trade operations performed within the period of work of the strategy. Operations mode is opened by default, if a user changes mode, he can return to Operations mode by clicking on thebutton.

Horizontal scale allows plotting P/L chart by operations or by hours/days/months for chosen in the main panel window period of time. If section 'hours/days/months' is selected, then all operations are aggregated by hours/days/months. Click on thebuttons to select the corresponding modes.