거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

Trade History Export to CSV with Summary (win rate, profit factor, drawdown) - MetaTrader 5용 스크립트

Gilberto Cardona Velez
Gilberto Cardona Velez
  • MQL4/MQL5 developer - Expert Advisors, backtests and strategy conversion 에  Laboratorio de Estrategias
  • 콜롬비아
  • 686
Laboratorio de Estrategias - MQL4/MQL5 development with tested, honest results.
SMALL JOBS FROM 30 USD (MQL5 Freelance, usually delivered in 1-3 days):
- Fixes and changes to an existing EA or indicator (source code required)
- Adapting one of my free CodeBase tools to your own rules
조회수:
37
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This script reads the account history and exports every closed position to a CSV file that opens in Excel, Google Sheets or Python. It also prints a short summary on the chart and in the Experts tab. It never opens, modifies or closes trades.


What it does

1. Builds one record per position from its deals: entry deals are merged with a volume-weighted entry price, and partial closes are added to the same position.

2. Writes the CSV: position, symbol, direction, volume, open and close time and price, duration in minutes, profit, commission, swap, net result, magic number and comment.

3. Shows a summary: number of closed positions, win rate, profit factor, net result, average win and loss, largest drawdown on closed trades and the net result per symbol.


Inputs

- Period start and end

- Only one symbol (empty = all symbols)

- Only one magic number (-1 = all, 0 = manual trades)

- CSV file name (saved in MQL5\Files) and whether to show the summary on the chart


How to use it

Drag the script onto any chart, set the period and filters, and press OK. Balance and credit operations are ignored. The image shows a Strategy Tester run with random test trades, used only to check that the export and the totals match the tester balance.


Also available for MetaTrader 4 in the CodeBase.


Not financial advice. Past results do not guarantee future results.

Market Watch Mini Scanner: RSI Overbought/Oversold Across Symbols Market Watch Mini Scanner: RSI Overbought/Oversold Across Symbols

A compact on-chart scanner that shows the RSI of the Market Watch symbols (or of a custom list) in a sorted, color-coded dashboard, marks overbought and oversold symbols, and can send alerts when a symbol enters one of these zones.

Devil Trader AI Lite -Gold M30 and H1 Exclusive Devil Trader AI Lite -Gold M30 and H1 Exclusive

Devil Trader AI Lite is an automated Smart Money & Liquidity Expert Advisor engineered exclusively for GOLD (XAUUSD) on M30 and H1 timeframes. It maps Major Demand and Supply Order Blocks, waits for confirmed rejection candles, and applies dynamic ATR Stop-Loss, auto-lot sizing, and trailing stop protection with zero Martingale.

Prop Firm Daily Loss and Drawdown Monitor Prop Firm Daily Loss and Drawdown Monitor

Free panel indicator for funded / prop-firm accounts: shows the room left before the daily loss limit and the static maximum drawdown, and alerts when you get close. Monitor only: it never opens, closes or blocks trades.

Net Currency Exposure and Hedged Margin Simulator Panel Net Currency Exposure and Hedged Margin Simulator Panel

A real-time CCanvas on-chart utility for MetaTrader 5 that calculates net lot exposure per currency across all open positions and simulates the exact margin, Margin Level (%), and Stop-Out buffer impact of a new Buy or Sell order—automatically accounting for your broker's hedged margin rules.