Skip to content
All library documents

Measuring Profit Concentration and Outlier Dependence in Trading Results

Article MQL5 code base

Summary

The analyzer evaluates closed-trade results from a CSV containing a date and profit for each trade. It reports how much gross profit came from the largest winners at several cutoffs, and calculates the share of net profit attributable to the top N trades. A Gini coefficient summarizes inequality among winning trades, helping distinguish broadly distributed gains from results dominated by a few outliers.

It also tests robustness by removing a configurable fraction of the best winners and recalculating net profit and profit factor. For consistency, it groups results by day and compares the most profitable day with a user-set limit. These measures feed a composite letter grade with recommendations. The document describes a diagnostic tool, not a trading strategy or proof of future performance. Its output depends on the supplied trade history, CSV quality, and chosen thresholds and weights; concentration or survival metrics alone cannot establish whether an edge will persist.

Key ideas

  • The analyzer measures how gross profit is distributed across winning trades.
  • A top-N share and Gini coefficient summarize dependence on a small number of large winners.
  • The survival test recalculates performance after removing a configurable fraction of top winners.
  • Daily aggregation checks whether the most profitable day exceeds a chosen consistency limit.
  • The composite grade depends on user-defined thresholds and weights and is descriptive of past trades.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.