Join our fan page
Report by Magic and currency MT5 script for account PNL, trading statistics filtered optionally by date range and exported to CSV - script for MetaTrader 5
- Views:
- 1792
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The report groups by magic number and currency, specially useful when testing or analizyng several EAs or strategies in a single account.
- Total P&L - Including profit, swap, and commission
- Win Rate % - Percentage of winning trades
Gain%(TWR) - Time-Weighted Return, percentage gain/loss calculated from starting balance plus total P&L - PeakDD$ PeakDD% - The highest drawdown both in cash and percentage from historical reconstruction based on 1H OHLC to get a close accuracy to a live drawdown tracker.
- Net Position Size - Current net position from history
- Current Exposure - Open position exposure
- Gross Profit/Loss - Separate win/loss totals
- Profit Factor - Risk/reward metric
- Total Volume - Cumulative lot size
- Automatically includes ALL magic numbers (including 0)
- Aggregates all symbols per magic number
- Shows combined symbol list in the Symbol column for each magic
- Exports everything to a single TradingStats.csv file
Just drag and drop on any chart - optionally you can input dates range but by default it reports from all available history, the CSV will be saved to MQL5/Files/folder
Additional metrics:
MAE (Maximum Adverse Excursion) measures the worst unrealized loss a trade experienced while it was open, before it closed.
Avg MAE: Average of the worst floating loss across all trades. Shows typical risk exposure during trades.
Max MAE: The single largest unrealized loss ever reached across all trades. Represents your worst drawdown moment within any individual position.
MAE 95%: 95th percentile of MAE values. Means 95% of your trades had a worst floating loss at or below this level. Useful for risk assessment.
MAE 99%: 99th percentile of MAE values. Only 1% of trades experienced a worse floating loss than this. Helps identify tail risk events.
=== STATISTICS BY MAGIC NUMBER === Magic Number | Symbol(s) | Total P&L | Total Trades | Win Rate % | ... 0 (Manual) | EURUSD+GBPUSD | 1234.56 | 45 | 60.00 | ... 12345 | USDJPY | 567.89 | 30 | 55.00 | ... === STATISTICS BY CURRENCY === Currency | Total P&L | Total Trades | Win Rate % | ... EUR | 2345.67 | 89 | 58.43 | ... GBP | 1234.56 | 56 | 62.50 | ...
Candlestick Analysis Report
This script helps traders understand the distribution and breadth of candlesticks over a specific period, which can be useful in making trading decisions such as which Take Profit or Stop Loss to use based on historical values.
Clean Market Watch - Removes All Symbols In the Market Watch Windows In One Go
The Clean Market Watch script is a simple utility tool designed to quickly remove all symbols from your MetaTrader 5 Market Watch window with a single click. This is particularly useful when you want to start fresh with a clean workspace or when your Market Watch has become cluttered with too many symbols. Purpose Over time, traders often accumulate numerous symbols in their Market Watch window, making it difficult to focus on the instruments they actively trade. Manually removing symbols one by one can be tedious and time-consuming. This script automates the entire process, clearing all symbols in seconds.
Daily Lot Statistics
Modern indicator that displays your daily trading statistics directly on your MT5 chart. Track your trading performance with a beautiful flat design panel showing lots traded, number of orders, and profit/loss for each day.
KSU_martin
Closing martingale trades
