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

Trade Cost Report: Commission, Swap and Fees per Symbol - MetaTrader 5용 스크립트

The Dam Phan
The Dam Phan
I build and test MetaTrader 5 Expert Advisors, with one focus: finding out whether a strategy still works after real trading costs, before you risk money on it.
What I do
• Custom MT5 EAs and indicators from your rules or specification (MQL5, clean commented source code).
조회수:
65
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

When a strategy is close to break-even, costs decide whether it makes or loses money. This script reads the deal history of the account and separates the gross trading result from the costs charged by the broker: commission, swap and fees.

How it works

  • Selects the account history for the chosen number of days (or all history).
  • Optionally filters by magic number (0 = manual trades).
  • Per symbol: closed trades, lots opened, gross profit, commission, swap, fees, net result, and the share of the gross result taken by costs.
  • Adds a TOTAL row, prints the table to the Experts log, shows it on the chart and saves a CSV file.
  • Works on hedging and netting accounts (reversal deals are counted).

Inputs

  • InpDays - days of history, 0 = all history (default 90).
  • InpMagic - only this magic number, -1 = all trades, 0 = manual trades (default -1).
  • InpSaveCsv - save the results to MQL5\Files\TradeCostReport.csv (default true).

Notes

The spread is already inside the trade prices, so it is part of the gross figure. Use the report together with a spread measurement (for example by hour of day) to see the full cost picture. The image shows the output on a demo account with a few test trades.

TradeCostReport output on a demo account

Risk Calculator - lot size by risk percent and ATR stop Risk Calculator - lot size by risk percent and ATR stop

On-chart panel that sizes your trade: lot size from your risk % and a stop in points or ATR, with spread, broker-minimum, minimum-lot and margin checks. Calculation only - it never trades.

Symbol and Trading Conditions Inspector Symbol and Trading Conditions Inspector

Displays live symbol specifications, broker trading conditions, account information, spread, trading permissions, session status and margin properties directly on the MT5 chart.

Prop Firm Risk Headroom Monitor Prop Firm Risk Headroom Monitor

Account-wide MT5 prop firm risk monitor that tracks daily and maximum loss headroom, current stop-loss exposure, projected equity and remaining risk capacity.

Asia Session Range and Liquidity Sweep Zones (BSL/SSL) with Live HUD Asia Session Range and Liquidity Sweep Zones (BSL/SSL) with Live HUD

Plots daily Asia Session High/Low range boxes, extends session liquidity levels through London and New York sessions, and marks non-repainting closed-bar liquidity sweeps (BSL/SSL) with a live HUD.