OriginalDailyMaxLossMT4
- Indicadores
- Versão: 1.2
- Ativações: 5
==============================================================
PRODUCT NAME
==============================================================
Daily Max Floating Loss Tracker MT4
==============================================================
SHORT DESCRIPTION
==============================================================
Records the deepest floating loss of every day next to your daily closed P/L, and keeps the record after you close the chart or restart MetaTrader 4.
==============================================================
FULL DESCRIPTION
==============================================================
A green day can hide a dangerous drawdown.
Your daily closed P/L only tells you how the day ended. It does not tell you how deep your open positions went before they recovered. Daily Max Floating Loss Tracker records that number automatically: the worst floating (unrealized) loss reached each day, shown on the chart next to the daily closed P/L.
Use it to check the real risk of your manual trading or of your EAs (grid, martingale, averaging, swing), to keep a trading journal, or to show your drawdown history to investors and followers.
WHAT IS SHOWN ON THE CHART
- Max floating loss of each day: the lowest value of the open positions' P/L reached that day (swap can be included or not).
- Daily P/L: net result of all orders closed that day (profit + swap + commission), counted on the close date.
- Current line: live P/L of open positions, with an optional Long / Short breakdown and total swap.
- 2 to 9 days are listed, with the oldest day at the top and today at the bottom.
Example:
P/L:-1,245 (Long:-1,830 Short:585) Swap:-36
2026.11.12 Max floating loss:-2,640 Daily P/L:-760
2026.11.13 Max floating loss:-1,870 Daily P/L:415
BUILT SO YOUR RECORDS STAY (v1.02)
- Persistent storage: records are saved in the terminal's common data folder. They stay after you close the chart, change the timeframe or restart the terminal.
- Safe saving: data is written to a temporary file first and then swapped in, so a crash during a write does not corrupt the record.
- Multi-chart merge: several charts can share one record file. The deepest loss of each day is always kept, so one chart never overwrites another chart's record.
- Login-aware: if the terminal starts before the account is logged in, the indicator waits for the account number and then loads the correct file.
- Account switching: records are kept separately for each account.
- Daily P/L stored: daily P/L is read from the "Account History" tab. If you shorten the history period there, the saved daily P/L is still shown instead of 0.
FLEXIBLE AGGREGATION
- Current chart symbol only, or all symbols (whole account).
- Optional magic number filter, up to 4 magic numbers. You can track one EA, a group of EAs, or manual trades only (magic 0).
- Each combination of account / symbol / magic filter keeps its own record.
CSV EXPORT
Optional CSV export with date, max floating loss, daily P/L and a memo column. The file is updated automatically and can be opened in Excel or any spreadsheet for your journal.
INPUT PARAMETERS
[Display]
- Display language: English / Japanese
- Font size (recommended 8-20)
- Font color
- Display corner: any of the 4 chart corners
- Number of days to display (2-9)
- Line spacing factor
- Decimal places for amounts
- Aggregation: current chart symbol only / all symbols
- Include swap in max floating loss: true / false
[Position offset]
- X offset (horizontal)
- Y offset (vertical)
[Open positions P/L & swap]
- Show open positions P/L and swap
- Show Long / Short breakdown
- Current P/L line: X offset
- Current P/L line: Y position
[CSV export]
- Export to CSV file: true / false
- CSV file name (blank = automatic)
- Memo column text
[Magic number filter]
- Filter by magic number: ON / OFF
- Magic number 1 to 4 (if all are 0, only trades with magic 0, usually manual trades, are counted)
[Save / Restore hotkeys]
- Hotkey: save state now (default "O")
- Hotkey: restore state from file (default "I")
NOTES
- This is an indicator. It does not open, modify or close any trades.
- Works on any symbol and any timeframe.
- Daily P/L is calculated from closed orders in the "Account History" tab. For the first run, right-click the tab and choose "All History" so past days can be calculated and saved.
- Pending orders are ignored; only open market orders (Buy / Sell) are used for the floating loss.
- The max floating loss is recorded while the indicator is running, so keep it on a chart (for example on a VPS) to capture every day. Days when the terminal was not running show a max floating loss of 0.
- The daily date follows the broker's server time.
- Saved files are stored in the common "Terminal\Common\Files" folder.
- Using a fixed-width font (default Consolas for English) keeps the columns aligned.
If you have questions or suggestions, please contact me through private messages on MQL5.com.
