RiskManagerPanel
- Utilità
- Musa Khunarikov
- Versione: 1.0
- Attivazioni: 5
Risk Manager Panel for MetaTrader 4
Risk Manager Panel is a professional trading panel for MetaTrader 4 that automatically calculates lot size based on risk and manages trades in one click.
No more manual lot calculation — the panel does it for you.
🎯 What the panel does
1. Automatic lot calculation
Set risk as % of balance (or fixed $) — panel calculates position size for specified SL. Accounts for tick value and broker lot step.
2. Editable fields
On the panel you can change:
-
Lot
-
Stop Loss (points)
-
Take Profit (points)
Changing SL auto-recalculates lot.
3. One-click trading
-
BUY / SELL with calculated lot, SL, TP
-
CLOSE ALL — close all positions by current symbol (Magic filter)
4. Info panel
-
Balance, Equity, Risk ($), Lot
5. Minimize & drag
-
"− / +" button — collapse/expand
-
Drag with mouse — from header or whole panel
-
Chart does not move during drag
✨ Key features
🧮 Accurate lot calculation
-
Risk % of balance (or fixed $)
-
SL in points
-
MODE_TICKVALUE , MODE_LOTSTEP
⚙️ Broker StopLevel handling
Auto-expands SL if broker requires min distance.
🖱️ Convenient control
-
Drag, editable fields, minimize
-
Panel position via inputs
🔔 Confirm before opening
InpConfirmOpen = true
🎨 Customizable appearance
🛠 Installation — MetaTrader 4
1. Install
-
Copy RiskManagerPanel.mq4 to MQL4/Experts/
-
Compile (F7) — 0 errors, 0 warnings
-
Restart MT4
-
Drag onto chart
2. Enable Auto Trading
-
Click "Expert Advisors" button in MT4 toolbar (must be green)
-
Expert properties: allow trading = true
3. Test
-
Panel appears top-left
-
Edit Lot , Stop Loss , Take Profit
-
Open test trade on demo account
⚙️ Parameters
| Parameter | Description | Default |
|---|---|---|
| Initial X position | X position (px) | 20 |
| Initial Y position | Y position (px) | 30 |
| Enable drag with mouse | Allow drag | true |
| Drag from whole panel | Whole panel drag | false |
| Use % of balance | Use % | true |
| Risk, % | Risk % | 1.0 |
| Risk, $ | Risk $ | 100.0 |
| Stop Loss | SL points | 200 |
| Take Profit | TP points | 400 |
| Magic number | Magic | 20250928 |
| Order comment | Comment | RMP |
| Confirm before opening | Confirm | false |
| Appearance | Colors, font | — |
📌 Use cases
1. Scalping M5–M15 — Risk 0.5%, SL 100, TP 200
2. Swing H1–H4 — Risk 1.5%, SL 400, TP 800
3. Multi-position — panel open, CLOSE ALL close
4. Demo testing — risk-first habits
📋 Implementation notes (MT4)
-
Pure MQL4 — no DLLs
-
init / deinit / start + OnChartEvent + OnTimer
-
Does not move chart while dragging panel
-
StopLevel handling
-
Build 600+
-
4- and 5-digit quotes
⚠️ Important warning
Risk Manager Panel is a helper tool. Not a trading system. All decisions are made by the trader. The author is not responsible for losses. Test on demo first.
🏆 About the developer
Musa Khunarikov — trader with 12 years of live experience (Forex, stocks, MOEX, metals). 51 certifications from "Finam".
Live trading:
👉 https://developer-mql4-mql5.netlify.app/
Services: EA development, indicators, panels, trading system audit.
📞 Support
30 days of free support. Bug fixes within 48 hours.
