Magic Cost Ledger
- Yardımcı programlar
-
Kim Seongyu
I approach investing by asking what drives an investment’s return, what could undermine it, and what evidence would change my view. - Sürüm: 1.1
- Güncellendi: 24 Kasım 2026
- Etkinleştirmeler: 5
Which EA contributed to the account's net trading result after costs? Inspect day, week or month totals and select individual magic numbers. Each strategy row shows posted gross P/L, commission, swap, fees and net P/L in the deposit currency. Use the account total and CSV to reconcile the period.
Try it on MT4 or MT5. Turn on Show example, then select Week and All symbols. The fictional account earned 27 USD net across its strategies for the week. Select Day and Chart only to see the 32 USD net from one strategy on that instrument for the day. Turn off the example on a regular chart to read available account history.
The visual Strategy Tester starts with the fictional account. Let the test play while using the panel buttons. You can change the period, compare strategies, filter to the chart symbol and export the selected rows to CSV.
Start with one period
- Attach the indicator. Select Day, Week or Month in broker server time. Weeks start on Monday. During a market closure, the report uses the last server quote time available to the terminal. MT5 displays that timestamp in the panel, and both editions include it in the CSV.
- Use All symbols to switch between the whole account and the current chart symbol. Browse the groups with the arrow buttons. Groups are ordered by descending net P/L.
- Select CSV to export every group, the period boundaries, scope and currency to the terminal's Files folder. No account login is included.
Read a strategy row
A fictional trade with gross P/L of 36 USD, commission of −3 USD and swap of −1 USD contributes 32 USD net. A separate posted entry charge within the period also contributes even if that position closes later on MT5. SAMPLE DATA displays a small fictional history for exploring the controls. The tester uses this history. A regular chart uses the account's available history unless the sample input is enabled.
Platform coverage
MT5. Buy and sell deals are booked on their deal timestamps. Entry costs follow their recorded magic. A partial or full exit follows the position owner at that moment. If two strategies shared a net position or its opening order is missing, the affected exit appears under Unattributed.
An opening order can fill across two reporting periods. The ledger checks when that order was placed before treating its later fill as a new position. If earlier ownership history fails to load, the panel flags the missing history and keeps the selected period's amounts. A newly placed opening order or a reversal within the period can still establish an owner for later exits.
A netting reversal closes the old side and opens the new side. When different strategies own the two sides, realized P/L and swap go to the known closing owner. The broker's single commission and fee for both sides appear under Unattributed. The reversal can therefore appear in two groups, with one exit in total. Later exits follow the new owner. Separately posted broker commission and charge records are grouped under Account charges in the all-symbol view. Deposits, credits and other non-trading entries are excluded. A broker fee posted without a symbol is outside a chart-symbol filter.
MT4. The ledger reads closed market orders loaded under Account History and books profit, commission and swap at the order's close time, using its recorded magic number. Select All History to make the period available. Charges recorded as separate balance operations are outside these totals. Floating P/L is excluded on both platforms.
| Setting | Effect |
|---|---|
| Initial period | Open on today's, this week's or this month's postings. |
| Chart symbol only | Start with the current chart instrument. |
| Refresh interval | Read the available history every 5 to 3,600 seconds. |
| Show example | Use labeled fictional USD entries on a regular chart. |
