Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Portfolio Scorer — Multi-EA Correlation and Coverage Analyzer - script per MetaTrader 5

Visualizzazioni:
268
Valutazioni:
(1)
Pubblicato:
Aggiornato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Portfolio Scorer evaluates multi-EA portfolios by measuring three dimensions: inter-strategy correlation, temporal coverage, and asset class diversity. It produces a composite grade from A+ to F.

The script reads daily P&L data from CSV files located in the MQL5\Files\ folder. If no files are found, it automatically generates sample data for five EAs (forex, index, metal, energy, and forex-JPY) so the user can see the full output immediately.

Input parameters:

InpFileList — comma-separated list of CSV filenames to analyze. Default: EA_EUR.csv, EA_NDX.csv, EA_XAU.csv, EA_OIL.csv, EA_JPY.csv.

InpSeparator — delimiter character used to split the file list. Default: comma.

InpMinDays — minimum number of trading days required per EA to be included in the analysis. Default: 60.

InpCorrThresh — absolute correlation threshold above which a pair is flagged as dangerously correlated. Default: 0.35.

InpWeightCorr — weight assigned to the correlation dimension in the composite score. Default: 0.50.

InpWeightCov — weight assigned to the coverage dimension. Default: 0.25.

InpWeightDiv — weight assigned to the diversity dimension. Default: 0.25.

Output (Experts tab):

Full NxN Pearson correlation matrix with threshold flags. Hour-by-hour coverage map (0-23 UTC) showing active EAs per hour. Weekday coverage breakdown (Mon-Fri). Composite score report with individual dimension scores and letter grade. Actionable recommendations based on detected weaknesses.

CSV format expected: Each file must have a header row followed by one row per trading day with four columns: Date, DailyPnL, TradeHour, TradeWeekday. A companion function (ExportDailyPnL) for generating these files from EA backtests is described in the accompanying article.

Attach the script to any chart and run. No specific symbol or timeframe is required — the script operates on CSV data, not on chart prices.


PorfolioScore Result


Candle Body Ratio Candle Body Ratio

An original indicator designed to analyze price action and provide buy/sell signals.

ASQ Divergence Detector ASQ Divergence Detector

ASQ Divergence Detector scans your chart for regular and hidden RSI divergences and marks them with color-coded, non-repaint arrows.

ASQ Spread Logger ASQ Spread Logger

Real-time spread monitor with statistics panel, CSV logging & alerts

ASQ Trading Journal Export ASQ Trading Journal Export

One-click CSV export of trade history with P&L, duration & stats