Support MAHQuant with USDT
If our tools have helped you, consider supporting further development.
Your contribution keeps this project alive and free for everyone.
————————————————————————————
Choose your network:
🔷 TRC20
Wallet Address: TJDvStMESz6QQTVMsnvCzVjD59NDbxbbF8
🔶 ERC20
Wallet Address: 0x1862775199154181D7250fb89e784aD3F6Da1992
————————————————————————————
Scan the QR code or copy the address above.
# MAHQuant Position Manager - Version 17.5
## Professional Position Management System for MetaTrader 5
---
### What's New in Version 17.5
- **Risk % & Risk $ (Bidirectional Linkage):** Fully synchronized risk management. Change either value and the other updates instantly.
- **Daily Pips by Symbol:** Shows today's net pips for each symbol below the side buttons (green for profit, red for loss).
- **Daily Loss Line (DLL):** Pink line showing the price level where Daily Loss Limit would trigger. Calculated based on Net Volume (Buy - Sell).
- **Per-Position Risk Free (Heart Button):** Individual risk-free management for each position without affecting others.
- **Portfolio List with One-Click Close:** All open positions from all charts in one place with instant X-button closing.
- **ATR Display:** Average True Range indicator displayed below the pips list.
- **Panel Position Memory:** Panel position (X, Y) is saved and restored after restart.
---
### Complete Feature List
#### 1. Installation and Initial Setup
One-click installation with automatic panel positioning. Settings are saved to Global Variables and restored after restart. No complex configuration required.
#### 2. Main Panel and Display Modes
Dual-panel architecture — vertical panel on the right side of the chart and horizontal panel at the bottom. Switch modes with the V/H button.
#### 3. Panel Scaling (4 Levels)
| Level | Ratio | Use Case |
|-------|-------|----------|
| 0: Tiny | 65% | Small displays (11-13 inch laptops) |
| 1: Small | 80% | 14-15 inch laptops |
| 2: Normal | 100% | Standard monitors |
| 3: Large | 130% | 4K monitors, poor vision |
#### 4. Position Settings (5 Features)
- **Risk % (0.1% to 10.0%):** Percentage of capital to risk per trade
- **Risk $:** Risk amount in dollars (fully linked with Risk %)
- **Stop Loss (SL):** 10 to 1000 points
- **Take Profit (TP):** 10 to 2000 points
- **Risk/Reward Ratio (R/R):** 0.1 to 5.0
#### 5. Lot Calculation (3 Features)
- **Calculated Lots (Calc Lots):** Risk-based calculation (display only)
- **Fixed Lots:** User-defined lot size
- **Lot Mode Toggle:** Switch between CALC LOT and FIXED LOT
#### 6. Order Settings (6 Features)
- Set SL (enable/disable)
- Set TP (enable/disable)
- Add Line (activate line drawing mode)
- Delete Line (remove lines from chart)
- LINE MODE (toggle between MARKET ORDER and PENDING ORDER)
- ONE CLICK TRADING (click = immediate trade)
#### 7. Trading Modes (3 Modes)
| Mode | Description |
|------|-------------|
| ONE CLICK TRADING | No lines, click = immediate trade |
| MARKET ORDER | Lines active, Entry sticks to market price |
| PENDING ORDER | Lines active, Entry at fixed position |
#### 8. Automatic Pending Order Detection (4 Types)
Automatically detects and manages:
- **BUY LIMIT:** Entry < Ask price
- **BUY STOP:** Entry > Ask price
- **SELL LIMIT:** Entry > Bid price
- **SELL STOP:** Entry < Bid price
#### 9. Position Management (5 Features)
| Button | Tooltip | Scope |
|--------|---------|-------|
| Close All | Close ALL positions from ALL charts (Portfolio) | All symbols |
| Close Buy | Close only BUY positions on THIS chart only | Current symbol |
| Close Sell | Close only SELL positions on THIS chart only | Current symbol |
| Close Profitable | Close only profitable positions on THIS chart only | Current symbol |
| Close Loss | Close only losing positions on THIS chart only | Current symbol |
#### 10. Special Tools (3 Features)
- **Risk Free:** Move SL to break-even point (covers commission + swap + spread)
- **Half Close:** Close half of each open position's volume
- **Global Stop Loss (GS):** Monitor total loss and auto-close when limit is reached
#### 11. Protection Systems (3 Features)
| Feature | Description | Range |
|---------|-------------|-------|
| Total Risk Limit (TR) | Prevent opening trades with excessive risk | 0.5% to 10.0% |
| Daily Loss Limit (DL) | Daily loss limit (resets at midnight) | Based on TR Limit |
| Global Stop Loss (GS) | Auto-close when total loss reaches percentage | 0.5% to 50.0% |
#### 12. P&L Dashboard (6 Display Features)
**OPEN P&L Section:**
- Dollar P&L (floating profit/loss)
- Percentage P&L
- Position Count (e.g., 2B / 1S)
**TODAY Section:**
- Daily Dollar P&L (closed + floating)
- Daily Percentage
- Win Rate (WR)
#### 13. Portfolio List
Displays **all open positions from all symbols and all charts** in a single list below the P&L Dashboard.
| Column | Description |
|--------|-------------|
| Symbol | Instrument name (e.g., EURUSD, XAUUSD) |
| Type | BUY (green) or SELL (red) |
| Volume | Position size in lots |
| P&L | Current profit/loss (green for profit, red for loss) |
| ♥ | Risk Free this position (turns green after success) |
| X | Close this position instantly |
#### 14. Chart Lines (6 Features)
| Line | Color | Description |
|------|-------|-------------|
| Entry Line | Blue (DodgerBlue) | Suggested entry point |
| SL Line | Red | Stop loss level |
| TP Line | Green | Take profit level |
| BE Line | Goldenrod | Break-even point for all positions |
| DLL Line | Hot Pink | Price level where Daily Loss Limit triggers |
| Line Labels | Matching colors | Price, distance in points/pips, R/R ratio |
**Smart Validation:**
- SL cannot go to the wrong side of Entry
- TP cannot go between Entry and SL
- Invalid positions automatically corrected
#### 15. Daily Pips by Symbol (NEW in v17.5)
Shows today's net pips for each symbol below the side buttons.
- **Format:** `XAUUSD: +226.0 pips` (green for profit, red for loss)
- **Auto Reset:** Resets at midnight automatically
- **Display:** Up to 15 symbols (more shows "... and X more")
#### 16. ATR Display (Average True Range)
Shows ATR value in points below the pips list.
- **Format:** `ATR(14): 413 pts`
- **Color:** Customizable via input parameter
- **Update:** Every 60 seconds (optimized for CPU)
#### 17. Buttons Outside the Panel (6 Features)
Located at the top left of the chart:
| Button | Description |
|--------|-------------|
| HIDE | Show/Hide main panel |
| GS | Enable/Disable Global Stop Loss |
| TR | Enable/Disable Total Risk Limit |
| DL | Enable/Disable Daily Loss Limit |
| DLL | Show/Hide Daily Loss Line (pink) |
| BEL | Show/Hide Break-Even Line |
#### 18. Panel Dragging
- Lock/Unlock button (colored square with `?` symbol)
- **Red color:** Panel locked (cannot move)
- **Green color:** Panel unlocked (drag to move)
- Position automatically saved to Global Variables
#### 19. Market Info (2 Features)
- **Spread:** Current spread in points
- **Time:** Time remaining until candle closes
#### 20. Color Customization (40+ Colors)
- **Background:** Panel background, border color
- **Trading Buttons:** Buy, Sell, Close All, Close Buy, Close Sell, Close Profit, Close Loss
- **Special Buttons:** Risk Free, Half Close, Global SL
- **Lines:** Entry, SL, TP, BE (DLL fixed pink)
- **Text:** Main text, section titles, spread, timer
- **Controls:** +/‑ buttons, Active/Inactive, V/H
- **Lot Mode:** FIXED LOT, CALC LOT
- **Panel Lock:** Locked/unlocked states
---
### System Requirements
| Requirement | Specification |
|-------------|---------------|
| Platform | MetaTrader 5 (MT5) |
| File Type | .ex5 (compiled) |
| Min Screen Resolution | 1366 x 768 |
| Recommended Resolution | 1920 x 1080 or higher |
---
### Version History
**v17.5 (Current):**
- Risk % & Risk $ bidirectional linkage
- Daily Pips by Symbol display
- Daily Loss Line (DLL) pink line
- Per-position Risk Free heart button
- ATR display
- Panel position memory
- All protection systems (GS, TR, DL) fully synchronized
**v16.0:**
- Portfolio List
- One-Click Close (X)
- Smart Line Validation
- Performance Optimization (OnTimer)
- Portfolio Total P&L
**v15.0:**
- Initial release with core features
---
### Final Notes
1. **Manual Tool:** No trades are opened automatically
2. **Risk Management:** Always adjust risk percentage to your strategy
3. **Test First:** Always test on a demo account before live trading
4. **Spread:** May increase during high volatility
5. **Commission:** Risk Free and BE calculations include round-trip commission
6. **Portfolio Mode:** Install EA on all charts you monitor for unified visibility
7. **Performance:** Optimized with OnTimer, minimal CPU usage
8. **DLL Line:** Hot pink color, independent from DL button, auto-hides when net volume is zero
9. **Risk % & Risk $:** Fully synchronized two-way linkage, range 0.1% to 10.0%
10. **Daily Pips by Symbol:** Resets at midnight, green for profit, red for loss
---
**MAHQuant Trading System**
*Professional Infrastructure for Systematic Trading*
[Website](https://sites.google.com/view/mahquanttradingsystem) | Telegram: @Masoudk11