Trade History to Excel

  • Yardımcı programlar
  • Mohamed-amine Baddir
    Mohamed-amine Baddir
    MetaTrader 5 için Expert Advisor'lar geliştiriyorum ve gerçek işlemlerde kullanmadan önce bunları düzgün şekilde test ediyorum.
    Yaptığım işler:
    - Stratejinizi, TradingView scriptinizi veya yazılı işlem kurallarınızı temiz ve profesyonel bir MT5 Expert Advisor'a dönüştürmek
  • Sürüm: 1.0

Trade History to Excel turns saved Strategy Tester reports, or the trading history of your account, into a real Excel workbook (.xlsx). Every report goes into the same file: one summary row per report, every closed trade with its entry and exit price, every deal, and the results of each day and month with the balance. Dates are Excel dates, numbers are numbers, the header row is frozen and every sheet has filters, so you can sort, filter, build pivot tables and charts right away.

How To Use

  • Backtests: in the Strategy Tester, right click on the Backtest tab > Report > save it as HTML into MQL5\Files\TradeExcel (File > Open Data Folder). Save as many reports as you like.
  • Account: set "Trades to export" to the history of this account; filter by start date, magic number and symbol if needed.
  • Attach Trade History to Excel to any chart. Open MQL5\Files\TradeExcel\Backtests.xlsx (or Account_<login>.xlsx) in Excel.

The Sheets

  • Summary: one row per report: expert, symbols, period, first and last deal, deposit, net profit, gross profit and loss, profit factor, trades, win rate, average win and loss, expectancy, swap, commission, maximal balance drawdown in money and percent, deposits and withdrawals, final balance, and a check that the deals add up to the final balance.
  • Trades: every closed trade: open and close time, symbol, side, volume, entry and exit price, profit, swap, commission, net profit, hours held, balance after the trade.
  • Deals: every deal as in the report: time, ticket, symbol, type, direction, volume, price, order, commission, swap, profit, balance, comment.
  • Daily: net profit, number of deals, deposits and withdrawals, balance at the end of each day.
  • Monthly: the same by month with the balance at the start and the return of the month.

Checks

  • For five test reports, net profit, profit factor and maximal balance drawdown (money and percent) are the same as in the Strategy Tester report.
  • The workbooks open in Microsoft Excel without any repair message.
  • Trades closed in parts and reversals are matched with their entries, oldest first (reports have no position numbers). In the account history, trades are matched by position.
  • Files that are not Strategy Tester reports are listed as not read.

Inputs

  • Trades to export: saved Strategy Tester reports, or the history of this account
  • Folder in MQL5\Files with the saved reports, or the report files separated by ;
  • Folder in the common Files folder of all terminals
  • Account history: from date, magic number, symbol
  • Workbook name

Good To Know

  • Reports of any terminal language are read.
  • Up to 50 reports and 200,000 deals per report in one workbook.
  • Close the workbook in Excel before running the utility again, so the file can be replaced.
  • The demo runs in the Strategy Tester: put saved reports into the common folder Files\TradeExcel (File > Open Common Data Folder); the workbook is written when the test ends.
  • The utility reads files and history only. It does not trade and does not change any setting.
  • The screenshots show tests of example strategies. They show the workbook, not trading results to expect.
  • To see why an Expert Advisor earns a different amount live than in the backtest, trade by trade, see Backtest vs Live by the same author.
Yazarın diğer ürünleri
Account Performance Report turns the history of your account into one HTML report that you open in any browser: balance and drawdown, the result of each Expert Advisor and each symbol, a daily P&L calendar, monthly returns and the usual statistics. The main figures are also shown on the chart, and the report is kept up to date while the terminal runs. How To Use Attach Account Performance Report to any chart of the account. It does not trade, so any symbol and timeframe will do. The report is wr
FREE
Prop Risk Guard , hesabınızın risk yönetimi kurallarını otomatik olarak uygular. Tek bir grafiğe eklemeniz yeterlidir; hesabınızdaki tüm pozisyonları izler. Bir limite ulaşıldığında pozisyonları kapatır, bekleyen emirleri siler ve işlemleri kilitler. Böylece tek bir kötü işlem veya kontrolden çıkan bir EA'nın değerlendirme hesabınızın ya da fonlanmış hesabınızın kurallarını ihlal etmesini önler. Günlük zarar limiti Yüzde, sabit tutar veya her ikisi birlikte kullanılarak ayarlanabilir (daha katı
The Strategy Tester runs one Expert Advisor at a time. If you run several EAs on one account, their separate reports do not tell you the combined drawdown, the margin they need together, or whether the account can carry them at all. Portfolio Backtest Combiner answers that from the reports you already have. How It Works Backtest each Expert Advisor as usual and save the report as HTML (Strategy Tester > Backtest tab > right click > Report > save as HTML) into the MQL5\Files folder of the termina
Backtest Report Compare puts several Strategy Tester reports side by side on one HTML page: growth and drawdown curves on one chart, the main statistics in one table, the correlation of their daily results, monthly returns and results by weekday and hour. Use it to choose between Expert Advisors, between settings of one Expert Advisor, or to see which strategies lose on the same days. How To Use In the Strategy Tester, after each test: right click on the Backtest tab > Report > save it as HTML i
FREE
Trade Excursion Analyzer measures how far every closed trade went against you (maximum adverse excursion, MAE) and in your favour (maximum favorable excursion, MFE) before it closed. It reads saved Strategy Tester reports or the history of your account, measures each trade on the price history of your terminal and writes one HTML page: where your stop-loss could be, how much open profit your exits give back, and what a fixed stop-loss or take-profit would have changed. How To Use Backtests: in t
Optimization Robustness Map reads the results of a Strategy Tester optimization and shows whether the best pass sits on a plateau, where nearby inputs give similar results, or on a lone spike that a small change destroys. It draws a heat map of any two inputs, compares every pass with its neighbours, shows how each input moves the result and, when a forward period was tested, how well the back test predicted it. Everything is written to one HTML page. How To Use In the Strategy Tester, after an
FREE
Monte Carlo Risk Simulator shows how much worse a backtest could have gone with the same trades in a different order, and what more or less risk per trade does to its growth and drawdown. It reads saved Strategy Tester reports or the history of your account, runs thousands of simulations and writes one HTML page. How To Use Backtests: in the Strategy Tester, right click on the Backtest tab > Report > save it as HTML into MQL5\Files\RiskSimulator (File > Open Data Folder). Account: set "Trades to
FREE
Backtest vs Live explains why an Expert Advisor earns a different amount live than in the Strategy Tester. It matches every live trade with its twin in the backtest, then splits the whole difference of the results, to the cent, into entry prices, exit prices, swap and commission, lots and currency conversion, trades the backtest made that live trading missed, and live trades the backtest never made. It can also compare two backtests, for example the same Expert Advisor with and without execution
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt