Google SheetExporter

Google SheetExporter — MT5 ↔ Google Sheets

Google SheetExporter automatically exports your full MetaTrader 5 deal history to Google Sheets and keeps it synchronized. Every few minutes, your complete trading history appears in your own spreadsheet: every deal, every position matched from entry to exit, every EA identified by name.

WHAT IT DOES

• Exports the complete deal history (default: 10 years back) — not just open positions

• Re-syncs automatically on a timer (default every 5 minutes), starting immediately on attach

• Matches deals into complete trades: open time, close time, volume, net profit (profit + commission + swap), open/closed status

• Identifies which EA made each trade — even when brokers overwrite comments with [tp], [sl] or "from #…" on closing deals • Keeps a local CSV backup in MQL5\Files as a safety copy


SETUP — ABOUT 5 MINUTES

  1. Create an empty Google Sheet
  2. Extensions → Apps Script → paste the code from https://jpst.it/5d79A → deploy
  3. Deploy → New deployment → Web app → Execute as: Me → Access: Anyone → copy the web app URL
  4. On MT5, Attach Google SheetExporter to any chart and paste the web app URL into the WebAppURL input
  5. In MT5: Tools → Options → Expert Advisors → tick "Allow WebRequest" and add these two URLs: https://script.google.com and https://script.googleusercontent.com
  6. Done — the first full sync runs immediately

YOUR SPREADSHEET — 3 AUTOMATIC TABS

  1. Raw Deals — one row per deal: Ticket, PositionID, Entry, Time, Type, Symbol, Volume, Price, Profit, Commission, Swap, NetProfit, Magic, Comment, EA_Name, Series
  2. Matched Trades — one row per trade (deals grouped by position): OpenTime, Symbol, Volume, OpenPrice, CloseTime, NetProfit, Status, EA_Name, Series
  3. EA Mapping — the self-maintaining brain: magic number → EA name. Auto-filled rows need no action. Yellow rows ("NEEDS NAME") = type the EA name once. Orange rows ("CONFLICT") = the same magic carries different names; type the correct one. Highlights clear and all history relabels automatically on the next sync. Your edits are never overwritten.

SMART EA IDENTIFICATION — 6 LAYERS, NOTHING MISSED

  1. Comment match — EA names matched inside deal comments (case/spacing tolerant, broker junk stripped)
  2. Position inheritance — a deal with an overwritten comment inherits the EA of its sibling deals
  3. EA Mapping sheet — magic numbers you named (highest priority, your edits always win)
  4. Auto-learned magic map — magic numbers learned from confirmed deals
  5. Auto-detection — EA names detected from repeated comment patterns, fully automatic
  6. Manual trades — correctly labeled "Manual"; deposits/withdrawals labeled "Account Operation" Anything left over shows exactly which magic number to name — one entry in the EA Mapping tab fixes the entire history, past and future.


    FAQ

    Q: Do I need the spreadsheet ID or any IDs at all? A: No. The receiver script is bound to the sheet — paste it, deploy, done.

    Q: Can I run it on several accounts? A: Yes — use one spreadsheet per account (each sync rebuilds the tabs).

    Q: How much history can it hold? A: Google Sheets allows ~10 million cells per spreadsheet — decades of intraday history. Large exports are written in chunks.

    Q: Does it trade or interfere with my EAs? A: No. It is a pure reporting utility; it only reads history.

    Q: The log shows status -1 after an edit? A: After changing the Apps Script code you must redeploy a new version (Deploy → Manage deployments → Edit → New version). Also verify both whitelist URLs are present.

    IMPORTANT NOTES

    • This is a utility product — it does not open, close or modify trades.

    • Sync happens from the terminal: if the terminal is closed, syncing pauses and resumes with full history on the next start.

    • Never share your web app URL publicly — anyone with it could write to your sheet.


    Protip: In Google Sheets, go to matched trades sheet, then click on create a canvas, now in Gemini ask to build an interactive dashboard for analyzing EA performance based on the matched trades. Simply describe what you want, and Gemini will generate it.

    Другие продукты этого автора
    MAGIC PROTECTOR — Advanced Equity Protection EA Magic Protector   is a utility built for traders who want better control over daily, weekly, or monthly risk exposure. The EA continuously monitors trading performance based on your selected protection period and helps prevent further losses or overtrading once your defined limits are reached. It can work with either the entire account or only trades belonging to a specific Magic Number, making it suitable for traders running multiple Expert Ad
    FREE
    Manual Trade Helper - Telegram Controlled Trading Assistant Trade From Anywhere Using Telegram Manual Trade Helper   is a powerful trading assistant that lets you control your trades directly from your Telegram app. No need to be at your computer - open, close, and manage trades from your phone, tablet, or any device with Telegram. Open, close, and manage positions from your phone. Features partial close, auto trailing, flip mode, and daily summaries. Simple commands: B=Buy, S=Sell, C=Close.
    FREE
    GoldGHOST EA - Trend & Smart Recovery System GoldGHOST is a fully automated, highly resilient trading system designed to capitalize on market trends while providing an ironclad recovery mechanism during unexpected trend reversals. Originally optimized for Gold (XAUUSD), this EA uses a combination of Moving Averages and RSI to pinpoint high-probability entries. When the market moves in your favor, the EA takes a quick, clean profit. However, when the market reverses, GoldGHOST truly shines. It s
    Фильтр:
    Нет отзывов
    Ответ на отзыв