Loading…

Account Info Panel

Checking account state usually means opening the terminal's own Trade tab and reading several fields at once. This panel puts the numbers that matter most - balance, equity, floating profit or loss, margin used, free margin, margin level and open trade count - directly on the chart in one compact block, colour-coded so a glance is enough: floating P/L and a stressed margin level both switch to a warning colour automatically. The one detail worth knowing: account values can change without a new price tick arriving on the chart's own symbol - a trade closes on a different pair, a pending order fills, swap rolls over at end of day. An indicator that only refreshed on OnCalculate would sit stale through those moments. This panel runs a 1-second timer alongside the normal tick handler, so it is never more than a second behind the account regardless of how quiet the attached symbol is. Margin level is coloured as a warning below 200%, a conservative line well above most brokers' actual stop-out level, chosen so the warning gives real notice rather than firing only at the last moment. Notes and limitations - Reports the whole trading account, not the symbol or timeframe of the chart it is attached to - one instance covers the whole terminal. - The margin level row shows "n/a (flat)" rather than a division result when no margin is currently used, since margin level is undefined with zero positions open. - Refreshes on every tick and additionally on a 1-second timer, so it stays current even when the attached symbol is quiet. - Purely informational: it does not place, modify or close any trade.

Indicator · MT5 · v1.0 · Free

About Account Info Panel

Account Info Panel is an indicator for MetaTrader 5. It has 7 settings, such as Corner, X offset and Y offset. MQL source code included.

Files in the download: AccountPanel.ex5, AccountPanel.mq5, AccountPanel.txt.

Settings

SettingDefaultWhat it does
CornerCORNER_LEFT_UPPERPanel corner
X offset10Horizontal offset from the corner, in pixels
Y offset20Vertical offset from the corner, in pixels
Font size9Panel font size
Text colorclrWhiteNeutral text colour
Profit colorclrLimeGreenColour used when floating P/L is positive
Loss colorclrTomatoColour used when floating P/L is negative

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria