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

Magic Number Scorecard - win rate, profit factor and drawdown per EA - script per MetaTrader 5

Muhammad Muqeem Korejo
Muhammad Muqeem Korejo
Hi, I'm Muhammad Muqeem Korejo, an MQL4/MQL5 developer from Pakistan with 1.5 years of trading experience.
I build and fix trading tools for MetaTrader 4 and MetaTrader 5:
• Expert Advisors (EAs) built from your strategy rules
• Custom indicators, alerts and on-chart panels
Visualizzazioni:
142
Valutazioni:
(1)
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Every Expert Advisor marks its trades with a magic number. Magic Number Scorecard groups the closed trades of the account by magic number, so you get one score line per EA (magic 0 = manual trades). It is a quick way to see which EA really earns, and which one only looks busy.

Magic Scorecard on a Strategy Tester history with four magic numbers

For each magic number

  • trades, wins, losses and win rate
  • gross profit, gross loss and profit factor
  • net profit and average trade
  • best and worst trade
  • maximum drawdown of its closed-trade equity curve
  • symbols traded

The table is printed in the Experts journal, shown on the chart, and written to a CSV file in MQL5\Files that opens in Excel. The rows are sorted by net profit.

How the trades are counted

  • A trade is a closed position. All of its deals are added up: profit, swap, commission (entry and exit) and fee. A position closed in parts counts as one trade.
  • The owner of a position is the magic number of its opening deal, so an EA trade that you close by hand still counts for that EA.
  • Positions that are still open, fully or partly, are left out.

Inputs

Input Default Meaning
From / To 2000.01.01 / 0 history range, To = 0 means now
Only this symbol empty empty = all symbols
Write CSV file / CSV file name true / MagicScorecard.csv saved in MQL5\Files
Show the table on the chart true false clears the chart comment

Run the script on any chart. It only reads the account history and never trades.

Calendar News Filter - pause any EA around high-impact news Calendar News Filter - pause any EA around high-impact news

A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL.

Compression Breakout Channels with Buy and Sell Volume Compression Breakout Channels with Buy and Sell Volume

Finds volatility compressions as they form, boxes each one as a channel with ATR edge bands and marks the bar that breaks out of it. Inside the live channels: buy and sell volume split from M1 bars, drawn as candles and text, plus a gauge of the current volume delta. Breakout arrows in buffers for EAs.

MTF Trend Context - Vian MTF Trend Context - Vian

A compact MetaTrader 5 indicator that classifies five selected timeframes as Bullish, Bearish, Neutral, or N/A using price and EMA alignment, then summarizes whether the timeframes are aligned or mixed. This is a market-context indicator, not a standalone trading signal

Weekend Gap Check - prop firm gap risk before the Friday close Weekend Gap Check - prop firm gap risk before the Friday close

Before the Friday close: estimates how much your open positions could lose if the market reopens with a gap, and compares it with the room left under the daily loss limit of the next trading day. For prop firm and funded accounts. It only reads the account.