RiskRadar

RiskRadar is a free portfolio-monitoring Expert Advisor for MetaTrader 5, developed by MQLicense.com. It reads your entire account — every position, symbol, and currency — and computes seven families of risk metrics. The panel warns you the moment risk crosses your limits, before a small problem becomes a large loss.

Expert Advisor MetaTrader 5 🏷 Version 1.0 Free

Description

Exposure, Correlation & Portfolio Monitor for MetaTrader 5

Published by MQLicense.com — Free Risk Management Suite

 


1. What RiskRadar Is and Why It Exists

RiskRadar is a free portfolio-monitoring Expert Advisor for MetaTrader 5, developed by MQLicense.com. An Expert Advisor is a program that runs inside the MetaTrader 5 terminal. RiskRadar is the fourth product in the MQLicense.com Risk Management Suite.

RiskRadar answers one question continuously and clearly: "What is my actual risk exposure right now?" The tool tracks the risk that is really present, not the risk you think you have. The check spans all open positions, all currencies, and all correlations.

RiskRadar is an information-only tool. The EA never opens a trade, never modifies one, and never closes one. It reads your account, computes seven families of metrics, and displays them on a clean four-tab panel. Smart alerts fire when thresholds are crossed. That restraint is what makes RiskRadar useful for traders who want insight without interference.

RiskRadar was designed for:

  • Multi-position traders who run several trades at once and need a real-time view of aggregate risk (the combined risk of all positions).

  • Prop-firm traders who must respect a maximum total open risk at all times (prop firms trade company capital under strict risk rules).

  • Portfolio traders who use several symbols and need correlation awareness (knowing which symbols move together).

  • Any trader who wants to know, at a glance, how much is really at stake.


2. What RiskRadar Is and What It Is Not

RiskRadar is a monitoring dashboard, not a trading robot. The tool reads your account and computes seven families of metrics. Every trading decision stays with you.

The two lists below draw that line clearly. The first list shows what RiskRadar does. The second shows what it deliberately never does.

Yes: What RiskRadar is

  • A real-time exposure monitor across every open position.

  • A currency-by-currency net exposure calculator for Forex pairs.

  • A correlation matrix using Pearson log-returns (percentage price changes) on your open symbols.

  • A margin health monitor with distance-to-stop-out awareness (how close you are to the broker closing your positions).

  • A performance snapshot (realized P/L — profit and loss — today and this week, win rate, streaks).

  • A smart alert engine with cooldown (a pause between repeat alerts) and hysteresis (stable on/off switching that prevents alert flicker).

  • A lightweight CSV exporter for daily snapshots.

  • 100% free, with no DLL, no WebRequest, and no telemetry.

No: What RiskRadar is not

  • RiskRadar does not open trades.

  • RiskRadar does not close or modify positions.

  • RiskRadar does not place pending orders.

  • RiskRadar does not require the "Allow Algo Trading" button to be green.

  • RiskRadar does not guarantee profit or prevent loss.

  • RiskRadar does not replace PropGuard — the tool complements it.

RiskRadar is a dashboard. The tool tells you what is happening. You decide what to do.


3. How to Install RiskRadar in MetaTrader 5

Installing RiskRadar takes three steps: copy two files into the MQL5 folders, compile the Expert Advisor, and attach it to a chart. No DLL file is required at any step.

You need two files: a shared include library and the RiskRadar source file. The table below shows exactly where each file goes.

Step 1 — Copy the Files to the MQL5 Folders

File Where to copy
MQLicense_Common.mqh MQL5/Include/
RiskRadar.mq5 MQL5/Experts/

Note: If you already installed MQLicense_Common.mqh from another product in the suite, do not overwrite it. The same file is shared across all five products.

Step 2 — Compile in MetaEditor (F7)

  1. Open MetaEditor (F4 in MT5).

  2. Open RiskRadar.mq5 in MetaEditor.

  3. Press F7 (Compile).

  4. Wait for the result: 0 errors, 0 warnings.

Step 3 — Attach RiskRadar to a Chart

  1. Open any chart in MT5.

  2. Drag RiskRadar from Navigator → Expert Advisors onto the chart.

  3. Click OK on the Inputs dialog.

Note: RiskRadar does not require Algo Trading to be enabled. The tool never sends orders. You can run it even when Algo Trading is off.

RiskRadar is now live. The panel appears with four tabs and starts updating every 500 ms.


4. First Launch and Recommended Settings

On first launch, the Inputs dialog appears. The defaults are tuned for a retail trader who runs a few positions at once.

The table below lists the recommended first-time configuration. Every listed value is the factory default, so clicking OK is enough to start.

Setting Default Why
Symbol scope All See your whole portfolio
Include manual true Track trades you opened yourself
Include other EAs true Track trades opened by other EAs
Correlation timeframe H1 Balanced between noise and stability
Correlation lookback 100 bars Standard industry lookback
Correlation threshold 0.75 Common definition of "highly correlated"
Margin warning 200% Reasonable retail warning level
Margin critical 100% Before stop-out
Panel theme Dark Default readable option

Click OK. The panel appears on the top-left of the chart.


5. How RiskRadar Works: Fast Loop and Slow Loop

RiskRadar runs on two timescales: a fast loop and a slow loop. Each loop updates a different group of metrics.

The fast loop keeps the live numbers fresh. The slow loop handles the heavier statistical work. The separation keeps CPU usage negligible even on a busy account.

Fast Loop — Updated Every 500 ms and on Every Tick

  • Positions count and symbol list

  • Floating P/L (the unrealized profit or loss of open positions)

  • Margin level, free margin, used margin

  • Total open risk (uses OrderCalcProfit per position)

Slow Loop — Updated on Every New H1 Bar and on Trade Events

  • Correlation matrix recomputation

  • Performance snapshot from deal history

  • Optional CSV snapshot write

Data Flow Diagram

OnTick / OnTimer(1s)
   ├── Fast metrics (positions, margin, floating)
   ├── Panel refresh (KPI tiles + active tab)
   └── On new H1 bar → Heavy metrics
                        ├── Correlation matrix
                        ├── Performance snapshot
                        └── CSV (if enabled)

No Trade Actions Ever: A Design Invariant

RiskRadar contains zero calls to OrderSend, PositionClose, PositionModify, or OrderDelete. This is a design invariant, not a suggestion. RiskRadar is safe to run alongside any other EA on any account.


6. Filters: Choosing What RiskRadar Monitors

RiskRadar can monitor your whole account or only a subset of it. Three filters define that subset: symbol scope, manual trades, and other EAs.

The recommended setup for most traders is simple: include everything. The subsections below explain each filter and its input.

Symbol Scope Filter: Current Symbol, All, or a Custom List

Option Behavior
Current symbol Only positions on the chart's symbol
All Every position, regardless of symbol
Symbol list Only the listed symbols (comma-separated)

Example: To monitor only EURUSD, GBPUSD, and XAUUSD, choose Symbol list and enter EURUSD,GBPUSD,XAUUSD.

Manual Trades Filter (InpIncludeManual)

InpIncludeManual controls trades you opened by hand. If true, positions with magic 0 (manual trades) are included. If false, they are excluded.

Other EAs Filter (InpIncludeOther)

InpIncludeOther controls positions opened by other Expert Advisors. If true, positions opened by any EA (magic ≠ 0) are included. If false, only manual trades appear.

Recommended setting for most traders: keep both true to see the full picture.


7. Metric 1 — Open Risk: Total Stop-Loss Exposure

Open Risk is the first metric family in RiskRadar. It quantifies the worst-case loss across all your open positions at this exact moment.

RiskRadar checks this risk against two alert thresholds: one for the total across all positions, and one for each single position.

What Does Open Risk Measure?

The metric is the exact amount of money you would lose right now if every open position hit its stop loss simultaneously.

How RiskRadar Calculates Open Risk

For each position with a stop loss, RiskRadar computes the potential loss at the SL price:

Risk = |Loss computed via OrderCalcProfit at the SL price|

The formula runs through the broker's own calculation engine (OrderCalcProfit), so the result is exact. It works for any instrument and any account currency.

Positions Without a Stop Loss: Two Assumptions

If a position has no SL, RiskRadar uses one of two assumptions:

  • Treat as full margin (InpTreatNoSLAsFull = true): the risk is the margin used by that position — a conservative worst-case estimate.

  • Assume X% (InpTreatNoSLAsFull = false): the risk is X% of equity (default 50%). This is a rough placeholder for "unknown risk."

The dashboard flags positions without SL with a warning color. You notice them immediately.

Total Open Risk Threshold (InpMaxTotalRiskPct)

If InpMaxTotalRiskPct = 5.0 and your total open risk exceeds 5% of equity, RiskRadar fires an alert.

Single Position Risk Threshold (InpMaxSingleRiskPct)

If InpMaxSingleRiskPct = 2.0 and any single position's risk exceeds 2% of equity, RiskRadar fires an alert for that symbol.

Open Risk Example: $10,000 Account

  • Equity: $10,000

  • Total open risk threshold: 5% → $500

  • Position A risk: $300, Position B risk: $150, Position C risk: $100

  • Total: $550 → exceeds $500 → alert.


8. Metric 2 — Net and Gross Exposure per Symbol

Net Exposure per Symbol is the second metric family. It breaks your open volume down symbol by symbol.

Two values matter for each symbol: net lots (long minus short) and gross lots (long plus short). Net lots reveal directional risk. Gross lots reveal total activity, including hedged positions.

What Does Net Exposure per Symbol Measure?

For each symbol that appears in your open positions, the metric reports how much net (long minus short) and gross (long plus short) volume you are holding.

Net Exposure Example: EURUSD and GBPUSD

Symbol Positions Net lots Gross lots
EURUSD 2 long (0.5, 0.3) +0.80 0.80
GBPUSD 1 long (0.2) + 1 short (0.2) 0.00 0.40

A net exposure of zero on GBPUSD means your long and short positions perfectly offset. You are market-neutral on GBPUSD. You still pay spreads and swap.

Why Net Exposure Matters

  • High net lots in one symbol → concentrated risk in that symbol.

  • High gross lots with low net → you are paying spread and swap without directional exposure.

  • Directionally matching exposures → you might be more correlated than you think.


9. Metric 3 — Currency Exposure: Net Notional per Currency

Currency Exposure is the third metric family. It shifts the view from symbols to the currencies behind them.

For each currency that appears in your positions, RiskRadar shows the notional net exposure in account currency. Notional is the position value converted to your account currency.

What Does Currency Exposure Measure?

The metric covers every currency in your positions, whether base or quote. It reports the net notional exposure for each one.

How RiskRadar Calculates Currency Exposure

For a BUY on EURUSD:

  • EUR gains +notional exposure

  • USD gains −notional exposure

For a SELL on EURUSD:

  • EUR gains −notional

  • USD gains +notional

Notional is computed as the position value converted to your account currency.

Currency Exposure Example: EUR, GBP, USD, CHF

Positions:

  • Long EURUSD 1.0 lot

  • Long GBPUSD 1.0 lot

  • Short USDCHF 1.0 lot

Result (rough, ignoring cross-conversion details):

  • EUR: +notional (from EURUSD long)

  • GBP: +notional (from GBPUSD long)

  • USD: −notional (EURUSD) − notional (GBPUSD) + notional (USDCHF short)

  • CHF: −notional (USDCHF short)

Interpretation: you are net long EUR and GBP, and net short USD and CHF. This means you have a directional bet that the dollar weakens against European currencies.

Currency Exposure Alert Threshold (InpMaxCcyExposurePct)

If any currency's net exposure exceeds InpMaxCcyExposurePct (default 200%) of equity notional, RiskRadar fires an alert.

Non-Forex Symbols: Metals, Indices, Crypto, and Stock CFDs

For metals (XAUUSD), indices (US30), crypto (BTCUSD), and stock CFDs, the base is treated as a distinct asset class. XAU gets its own row (e.g., "XAU"). The quote currency (USD) receives the corresponding quote-side exposure.


10. Metric 4 — Correlation Matrix (Pearson Log-Returns)

The Correlation Matrix is the fourth metric family. It shows how your open symbols move together.

RiskRadar computes the Pearson correlation of log-returns for every pair of symbols in your open positions. Pearson correlation is a standard statistical measure of co-movement. Log-returns are the percentage price changes between bars.

What Does the Correlation Matrix Measure?

The metric targets every pair of symbols that appears in your open positions. Values range from −1 (opposite moves) through 0 (no link) to +1 (identical moves).

Correlation Inputs and Defaults

Input Default Meaning
InpCorrTF H1 Timeframe of the return series
InpCorrBars 100 Number of bars used
InpCorrThreshold 0.75 Threshold for "highly correlated"
InpCorrMaxSymbols 6 Maximum symbols shown in the matrix

How to Read the Correlation Matrix

The matrix follows a simple structure:

  • 1.00 on the diagonal (a symbol always correlates perfectly with itself).

  • Values between −1 and +1 everywhere else.

  • +1 = perfect positive correlation (they move together).

  • 0 = no correlation.

  • −1 = perfect negative correlation (they move in opposite directions).

Correlation Example: EURUSD, GBPUSD, USDCHF

  EURUSD GBPUSD USDCHF
EURUSD 1.00 0.82 −0.75
GBPUSD 0.82 1.00 −0.68
USDCHF −0.75 −0.68 1.00

Interpretation: EURUSD and GBPUSD are highly correlated (0.82) — being long both is close to doubling your risk. USDCHF is negatively correlated to both. Being long EURUSD and long USDCHF partially hedges.

The Risky Pairs List

Below the matrix, RiskRadar lists "risky pairs" — pairs whose absolute correlation exceeds the threshold. Same-direction positions in both members of a risky pair mean your real risk is higher than your individual position risks suggest.

When the Matrix Is Recalculated

The correlation matrix is recomputed on a fixed cadence:

  • On every new H1 bar.

  • Immediately after any trade event (open/close).

The cadence keeps the matrix fresh without wasting CPU.

Fallback When History Is Missing

If a symbol doesn't have enough history, the correlation for that pair is skipped and shown as zero. RiskRadar logs a single warning per symbol.


11. Metric 5 — Margin Health and Distance to Stop-Out

Margin Health is the fifth metric family. It measures the distance between your current margin level and a stop-out event.

Margin level is your equity divided by used margin, times 100. Stop-out is the level at which the broker starts closing positions automatically.

What Does Margin Health Measure?

The metric tracks your safety buffer against forced liquidation. A bigger buffer means more room for your open trades to move against you.

Margin Metrics Displayed

  • Margin Level — Equity / Margin × 100. The broker will stop you out if this drops below their stop-out level (usually 50% or 20%).

  • Used Margin — the total margin held by your open positions.

  • Free Margin — the funds available for new trades.

Margin Warning and Critical Thresholds

Level Default Meaning
Warning 200% Caution; you are using a lot of margin
Critical 100% Dangerously close to stop-out

Both levels are configurable via InpMarginWarnLevel and InpMarginCritLevel.

Margin Level Example: $10,000 Equity and $6,000 Margin

  • Equity: $10,000

  • Used Margin: $6,000

  • Margin Level = 10000 / 6000 × 100 = 166%

  • The level sits between 100% and 200% → the panel shows an orange warning.

Distance to Stop-Out Explained

At a 100% margin level (typical stop-out trigger), the equity equals the used margin. From there, any additional loss triggers liquidation. RiskRadar's warning gives you time to reduce exposure before that happens.


12. Metric 6 — Performance Snapshot: Win Rate, Streaks, and Realized P/L

The performance snapshot gives you a quick view of your recent trading results. RiskRadar builds it from the deal history stored in your terminal.

Five numbers make up the snapshot: closed deals count, win rate, consecutive losses, realized P/L today, and realized P/L this week. The sections below define each number, list the controlling inputs, and show a worked example.

What the performance snapshot measures

The snapshot answers one question: how well has this account traded lately? RiskRadar counts only closed deals with entry type OUT in the history, and it excludes entry deals.

Performance snapshot metrics displayed

The table defines each metric as it appears on the HISTORY tab.

Metric Meaning
Closed deals count Total deals with entry type OUT in history
Win rate Percent of last N closed deals that were profitable
Consecutive losses Number of most recent closed deals that lost money
Realized today Sum of P/L, swap, commission on deals closed today
Realized this week Same, for the current week

Performance snapshot inputs and defaults

Two inputs control the performance snapshot. Both defaults suit a retail account running a few positions.

Input Default Meaning
InpWinRateLookback 50 Number of deals used for the win rate
InpStreakWarn 3 Alert if consecutive losses reach this

Performance snapshot example: win rate and losing streak

The example below shows how win rate and the losing streak interact in practice.

  • Win rate lookback: 50

  • Of the last 50 closed deals, 28 were profitable → win rate = 56%

  • The 3 most recent deals all lost → consecutive losses = 3 → alert fires.

Why win rate and streaks matter

Win rate and streak are the two simplest behavioral signals. Each one points to a different kind of trouble:

  • Falling win rate → your strategy may be out of sync with the current market.

  • Long losing streak → emotional risk to you; often a good time to reduce size.

RiskRadar does not tell you what to do — it just shows the numbers.


13. Metric 7 — Concentration of Risk by Symbol and Currency

The concentration metric shows how much of your total risk sits in a single symbol or a single currency. Two accounts with the same position count can carry very different real risk.

Concentration matters because correlated positions fail together. The metric exists to expose that overlap before it hurts your equity.

What the concentration metric measures

Concentration measures how much of your total risk is concentrated in a single symbol or currency. A highly concentrated account has few independent bets.

Why concentration matters

Ten positions spread across eight symbols carry lower real risk than ten positions all in EURUSD-correlated pairs. RiskRadar's concentration view makes the difference visible at a glance.

How concentration is shown in the Exposure tab

In the Exposure tab, you see both per-symbol exposure (net and gross lots) and per-currency net exposure. A currency with high notional and only one or two contributing symbols is a sign of concentration.

Concentration rule of thumb

Three rules of thumb keep concentration under control:

  • No single symbol should carry more than 30–40% of your total open risk.

  • No single currency should dominate more than 50–60% of your equity notional.

  • Highly correlated symbols should be treated as one combined risk.


14. Alerts & Thresholds: Triggers, Cooldown, and Channels

RiskRadar fires alerts when account conditions cross your configured thresholds. Alerts turn the panel's numbers into timely warnings you can act on.

Every alert combines four elements. The list below defines each element before the full alert table:

  • A trigger condition (e.g., total risk > 5%).

  • A cooldown (default 300 s) so the same alert does not repeat too often.

  • A channel selection (popup, sound, push, email).

  • Hysteresis — the alert does not re-arm until the condition clears.

Alert list with default thresholds

Nine alerts ship with RiskRadar. The table lists every trigger condition and its default threshold.

Alert Trigger Default threshold
Total open risk exceeded Total risk / equity × 100 > threshold 5%
Single position risk exceeded Position risk / equity × 100 > threshold 2%
Position without SL Any open position has no SL Informational
Margin warning Margin level < warning 200%
Margin critical Margin level < critical 100%
Floating loss large Floating loss / equity × 100 > threshold 5%
Too many positions Count > limit 10
Consecutive losses Streak ≥ threshold 3
High correlation pair |corr| ≥ threshold 0.75

Alert channel selection inputs

Three channel inputs decide how an alert reaches you. Email is not available in this product.

Input Behavior
InpAlertPopup Show a dialog box
InpAlertSound Play a sound
InpAlertPush Send a mobile push
(Email not available in this product) —

Alert cooldown: InpAlertCooldownSec (default 300 seconds)

The InpAlertCooldownSec input (default 300 s) prevents the same alert from firing repeatedly. If an alert fires and the condition persists, the next alert fires after the cooldown.

Alert hysteresis: no re-arming until the condition clears

Once an alert fires, it does not re-arm until the condition clears. This prevents "flicker" — for example, if margin level bounces around 200%, you won't get an alert every 300 seconds.


15. The RiskRadar Panel: KPI Tiles, Tabs, and Controls

The panel is the visual core of RiskRadar. It sits on your chart, keeps four KPI tiles always visible, and organizes every metric into four tabs.

Panel data refreshes on the fast loop — every 500 ms and on every tick — so the displayed numbers stay current while you trade.

Panel layout

The diagram below shows the full panel layout with sample values.

┌────────────────────────────────────────────────────────┐
│ RiskRadar | MQLicense.com                          [_] │
├────────────────────────────────────────────────────────┤
│ Risk: 3.2%   Margin: 480%   Float: +125.30   Pos: 4    │
│                                                        │
│ [OVERVIEW] [EXPOSURE] [CORRELATION] [HISTORY]          │
│                                                        │
│ Equity: 10,125.30                                      │
│ Balance: 10,000.00                                     │
│ Floating P/L: +125.30                                  │
│ Total open risk: 324.00 (3.20% of eq)                  │
│ Largest single risk: 185.00                            │
│ Positions: 4 | No-SL: 1                                │
│ Margin level: 480.20%                                  │
│ Free margin: 8,900.00                                  │
│ Used margin: 1,225.30                                  │
│ Today P/L: +125.30                                     │
│ Week P/L: +340.10                                      │
│ Win rate: 56.0% | Streak -: 0                          │
│                                                        │
│ MQLicense.com                                          │
└────────────────────────────────────────────────────────┘

KPI tiles in the header row

Four tiles stay visible in the header row at all times. Each tile follows a color rule, so account health is readable at a glance.

Tile Content Color rule
Risk Total open risk as % of equity Green below limit, red above
Margin Current margin level Green above warning, red below
Float Floating P/L Green if positive, red if negative
Pos Number of open positions Neutral

The four panel tabs

Four tabs are selectable by clicking the corresponding button:

  1. OVERVIEW — the account snapshot (equity, balance, risk, margin, performance, streak).

  2. EXPOSURE — per-symbol net/gross lots and per-currency net exposure.

  3. CORRELATION — the correlation matrix and risky pairs list.

  4. HISTORY — performance snapshot details (deals, win rate, streaks, realized P/L).

Only the active tab's content is displayed. Clicking a tab switches instantly.

Panel footer

The footer shows MQLicense.com in small text.

Minimize button

Click the _ button to minimize. A one-line chart comment appears with the three key metrics (Risk, Margin, Float). Click again to restore.


16. Optional CSV Export: Daily Portfolio Snapshots

CSV export is an optional feature that writes a daily snapshot of your portfolio metrics to a file. Export is disabled by default, so no file is written until you enable it.

Each snapshot line records seven fields: timestamp, equity, balance, total risk, total risk percent, open positions, and the no-SL count. A new line is written on every snapshot.

What CSV export does

The exporter writes a daily snapshot of your portfolio metrics to a CSV file, for offline analysis.

CSV export inputs

Two inputs control the exporter. Both default to false.

Input Default Behavior
InpCSVOn false Enable CSV export
InpCSVCommon false Save to MQL5/Files/Common/ instead of MQL5/Files/

CSV file format

Each line contains the fields below:

Timestamp, Equity, Balance, TotalRisk, TotalRiskPct, Positions, NoSL

Example: a snapshot line looks like this:

2025.10.09 14:00, 10125.30, 10000.00, 324.00, 3.20, 4, 1

When RiskRadar writes a CSV snapshot

The write schedule and the target folder depend on your input settings:

  • On every new H1 bar, if InpCSVOn = true.

  • To MQL5/Files/RiskRadar_<login>.csv by default.

  • To MQL5/Files/Common/RiskRadar_<login>.csv if InpCSVCommon = true.

How to view the CSV file

In MetaEditor, use File → Open Data Folder or Open Common Data Folder, then navigate to MQL5/Files/. Or in MT5, use File → Open Data Folder.


17. Common Scenarios: Five Ways Traders Use RiskRadar

Five worked scenarios show how the inputs combine in real trading situations. Each scenario lists a configuration and the result you should expect on the panel.

The set covers multi-position risk checks, prop-firm margin health, gold and EURUSD correlation, performance consistency, and index portfolios.

Scenario 1 — Multi-position trader, checking real risk

Configuration:

  • All defaults.

  • Open 5 trades on different pairs.

Result: The panel shows total open risk, per-symbol exposure, and the correlation matrix. You immediately see if two of your trades are actually one big correlated bet.

Scenario 2 — Prop-firm trader checking margin health

Configuration:

  • InpMaxTotalRiskPct = 4.0

  • InpMarginWarnLevel = 300.0

  • InpMarginCritLevel = 150.0

  • Alerts: popup + push

Result: You get an early warning long before margin level drops toward stop-out.

Scenario 3 — Gold + EURUSD correlation check

Configuration:

  • InpCorrTF = H1

  • InpCorrBars = 200

  • InpCorrThreshold = 0.7

Result: If XAUUSD and EURUSD are 0.7+ correlated over the last 200 hours, RiskRadar flags the pair as risky. You can size down accordingly.

Scenario 4 — Tracking consistency of performance

Configuration:

  • InpWinRateLookback = 100

  • InpStreakWarn = 4

  • CSV enabled

Result: You get alerted after 4 consecutive losses, and the CSV captures a daily snapshot you can review weekly.

Scenario 5 — Monitoring a portfolio of indices

Configuration:

  • InpSymbolMode = RR_LIST

  • InpSymbolList = US30,NAS100,GER40,UK100

  • InpCorrTF = H1

Result: The correlation matrix shows how tightly your index positions move together, and the currency exposure shows your true sector bet.


18. Troubleshooting: Fixes for Common RiskRadar Problems

Most RiskRadar problems have a one-line fix. Find your symptom below and apply the suggested checks.

Every fix names the exact input or setting to verify, so you can change one value and re-test immediately.

The panel is empty or shows "--"

  • Verify that positions exist on the account and are matched by the filters.

  • If you set InpSymbolMode = RR_CURRENT and no positions exist on the chart symbol, the panel shows empty values. Switch to All.

Currency exposure shows odd values

  • Some brokers return different currency codes for the same instrument. Check SYMBOL_CURRENCY_BASE and SYMBOL_CURRENCY_PROFIT.

  • If notional conversion fails, that position contributes 0. RiskRadar logs a single warning.

Correlation matrix shows zeros

  • The symbols may not have enough H1 history loaded. Switch the chart to the symbol once to force history load, or use a larger InpCorrBars value.

  • Check that the correlation timeframe (InpCorrTF) has data for all symbols.

Alerts fire too often

  • Increase InpAlertCooldownSec to a larger value (e.g., 900 for 15 minutes).

  • Review your thresholds — some may be too tight for your style.

CSV file is not created

  • Verify InpCSVOn = true.

  • Check MQL5/Files/ or MQL5/Files/Common/ depending on InpCSVCommon.

  • Make sure MetaTrader has write permission to the folder.

"No Algo Trading" — does RiskRadar still work?

Yes. RiskRadar contains no trade operations. It works with or without Algo Trading enabled. This is intentional and part of its design.

Positions opened by another EA are not shown

  • Verify InpIncludeOther = true.

  • Some EAs use magic numbers; RiskRadar treats any non-zero magic as "another EA."

Performance metrics look wrong

  • RiskRadar reads from the terminal's deal history. If history was cleared or the account is new, metrics will be limited.

  • Ensure that the deals are DEAL_ENTRY_OUT — RiskRadar excludes entry deals.


19. Best Practices for Running RiskRadar

Eight practices get the most value out of RiskRadar. Each one uses inputs and panel features you already have.

The themes are simple: one instance per account, a busy chart, sensible correlation timeframes, meaningful alert thresholds, and a daily look at exposure.

1. Run one instance per account

One instance of RiskRadar can monitor the entire account. There is no need to attach it to multiple charts.

2. Attach RiskRadar to a busy symbol

Attach RiskRadar to a chart of a frequently ticking symbol (e.g., EURUSD M1) so that the panel updates frequently.

3. Enable correlation only on a higher timeframe

H1 or H4 is the sweet spot. M1 correlation is dominated by noise; D1 correlation is too slow to react.

4. Use the alerts for action, not noise

Set thresholds that matter to you. Default values are a reasonable starting point, but adjust them to your account size and strategy.

5. Check the Exposure tab daily

The currency exposure view often reveals unintentional bets (e.g., you are 3 times short USD without realizing it).

6. Use CSV for weekly reviews

Even if you never open the CSV manually, having it available lets you review your risk profile at the end of each week.

7. Combine RiskRadar with PropGuard

PropGuard enforces limits. RiskRadar shows you why. The two together give you both protection and visibility.

8. Treat highly correlated positions as one

If EURUSD and GBPUSD are at 0.85 correlation and you are long both, your real risk is closer to one big position than two separate ones. Size accordingly.


20. Limitations of RiskRadar

RiskRadar has known limitations in this version. Knowing them helps you read the panel correctly and avoid surprises.

Most limitations concern conversion accuracy, matrix size, and the data available in your terminal. Two of them are planned to improve in a future version.

Currency conversion uses margin as proxy

In this version, notional exposure per currency is approximated using margin. For exotic crosses where margin is unrepresentative, exposure may be less accurate. A future version will implement full cross-pair conversion.

Correlation matrix is limited to 6 symbols

Larger accounts may have more symbols. The matrix deliberately shows up to InpCorrMaxSymbols to keep the panel readable. Increase the input up to 12 if your panel width permits.

Direction-adjustment in correlation is |corr| only

Currently the risky-pair detection uses |corr| >= threshold. It does not multiply by position direction (long vs. short). A future version will refine this to only flag same-direction correlated pairs.

Performance stats rely on local history

If your terminal's deal history has been cleared or the account is new, performance metrics will be incomplete.

No auto-add to Market Watch

If a symbol needed for a conversion is not in Market Watch, conversion will fail gracefully (contribute 0). Add the symbol manually or restart MT5.

Strategy Tester limitations

  • In Strategy Tester, correlation for symbols other than the tested symbol may not have history loaded.

  • CSV snapshots still work but write to the tester's sandboxed files folder.

No notification on new correlations

RiskRadar alerts when thresholds are crossed, but does not push a notification when a new symbol enters the matrix. This is by design — too many notifications can be counterproductive.

No deposit/withdrawal awareness

Deposits and withdrawals affect P/L calculations. If you make one, restart RiskRadar or refresh the chart to force a recalc.


21. Input Reference — Complete Table of All 32 Inputs and Defaults

The table lists every RiskRadar input: 32 in total, each with its type, default value, and description.

Groups cover filters, risk thresholds, exposure, correlation, margin health, floating loss, performance, alerts, CSV export, panel and theme, and the license key.

# Input Type Default Description
Filters        
1 InpSymbolMode enum RR_ALL Symbol scope: current / all / list
2 InpSymbolList string "" Comma-separated symbols (used when scope = list)
3 InpIncludeManual bool true Include manual trades (magic 0)
4 InpIncludeOther bool true Include trades from other EAs
Risk Thresholds        
5 InpMaxTotalRiskPct double 5.0 Max total open risk (% of equity)
6 InpMaxSingleRiskPct double 2.0 Max risk per single position (% of equity)
7 InpTreatNoSLAsFull bool false Treat no-SL positions as full margin risk
8 InpNoSLAssumedPct double 50.0 Assumed risk for no-SL positions (% of equity)
Exposure        
9 InpMaxCcyExposurePct double 200.0 Max currency exposure (% of equity notional)
10 InpMaxPositions int 10 Max open positions before warning
11 InpMaxSameDirection int 5 Max positions in the same direction
Correlation        
12 InpCorrTF enum PERIOD_H1 Correlation timeframe
13 InpCorrBars int 100 Correlation lookback (bars)
14 InpCorrThreshold double 0.75 Threshold for "highly correlated"
15 InpCorrMaxSymbols int 6 Max symbols in the matrix
Margin Health        
16 InpMarginWarnLevel double 200.0 Margin level warning threshold (%)
17 InpMarginCritLevel double 100.0 Margin level critical threshold (%)
Floating        
18 InpFloatingLossPct double 5.0 Floating loss warning (% of equity)
Performance        
19 InpWinRateLookback int 50 Number of closed deals for win rate
20 InpStreakWarn int 3 Alert threshold for consecutive losses
Alerts        
21 InpAlertsOn bool true Enable alerts
22 InpAlertPopup bool false Popup alerts
23 InpAlertSound bool true Sound alerts
24 InpAlertPush bool false Push notifications
25 InpAlertCooldownSec int 300 Seconds between repeated alerts
CSV        
26 InpCSVOn bool false Enable CSV snapshot export
27 InpCSVCommon bool false Save to FILE_COMMON folder
Panel & Theme        
28 InpShowPanel bool true Show the panel
29 InpTheme enum MQL_THEME_DARK Light or dark theme
30 InpPanelX int 20 Panel X position
31 InpPanelY int 30 Panel Y position
License        
32 InpLicenseKey string placeholder License key issued by MQLicense.com

22. Disclaimer and Safe-Use Checklist

Read this disclaimer before relying on RiskRadar. It defines what the tool does and what it does not guarantee.

Trading involves substantial risk. This tool is provided free of charge, as-is, without any warranty. Test on a demo account first. MQLicense.com is not responsible for any losses.

RiskRadar is an information tool. It does not generate trading signals, does not predict market direction, and does not guarantee that your portfolio is safe.

Metrics come from the data RiskRadar can read from your terminal and your account. If the terminal's history is incomplete or a symbol is not in Market Watch, some metrics may be missing or approximated.

Before relying on RiskRadar:

  • Test on a demo account for at least a few days.

  • Verify that currency exposure values match your own understanding of your positions.

  • Confirm that your correlation thresholds make sense for your strategy.

  • Do not treat RiskRadar as a substitute for your own judgment.


End of Guide — RiskRadar | MQLicense.com

For updates, additional products, and the rest of the risk-management suite, visit MQLicense.com.

 


Frequently Asked Questions

Is RiskRadar free to use? +
Yes. RiskRadar is a free portfolio-monitoring Expert Advisor for MetaTrader 5, published by MQLicense.com as the fourth product in the Risk Management Suite. It is 100% free with no DLL, no WebRequest, and no telemetry. The tool is provided as-is and without warranty, so testing on a demo account first is recommended.
Does RiskRadar open, modify, or close trades? +
No. RiskRadar is an information-only tool that never opens, modifies, or closes a trade and never places pending orders. The code contains zero calls to OrderSend, PositionClose, PositionModify, or OrderDelete — a design invariant, not a suggestion. Because it sends no orders, it works with or without Algo Trading enabled.
Which platform and account types does RiskRadar support? +
RiskRadar runs on MetaTrader 5 and monitors the whole account from a single chart. It tracks manual trades (magic 0) and positions opened by other Expert Advisors. Symbol coverage includes Forex pairs, metals such as XAUUSD, indices such as US30, crypto such as BTCUSD, and stock CFDs. Symbol scope is configurable: current chart symbol, all symbols, or a custom list.
What metrics does RiskRadar track? +
RiskRadar computes seven families of metrics. The panel shows total open risk (the money lost if every position hit its stop loss), net and gross lots per symbol, and notional currency exposure. A Pearson correlation matrix of log-returns covers your open symbols. Margin health tracks the distance to stop-out. The performance snapshot adds win rate, consecutive losses, and realized P/L today and this week. Alerts and optional CSV export sit on top.
Can RiskRadar run alongside other Expert Advisors? +
Yes. RiskRadar contains no trade operations, so it is safe to run alongside any other EA on any account. It never sends orders and does not require the Allow Algo Trading button to be enabled. The positions filter is inclusive by default: InpIncludeOther = true adds trades from other EAs, and InpIncludeManual = true adds your manual trades.
How do RiskRadar alerts work? +
Each alert fires when a trigger condition is met — for example, total risk above 5% of equity. Every alert has a cooldown (default 300 seconds) so it does not repeat too often, a channel selection (popup, sound, or mobile push), and hysteresis: the alert does not re-arm until its condition clears. Nine alert types are built in, from margin warning and critical levels to consecutive losses.

Reviews 0

No reviews yet.
Be the first to share your experience!

Write a Review