Trade Panel Manager MT4
- Yardımcı programlar
- Marlon Ahrens
- Sürüm: 1.6
- Güncellendi: 12 Mart 2026
- Etkinleştirmeler: 10
Transform Your MT4 Trading: From Chaos to Command Center in One Click!
Struggling with manual position sizing? Losing track of multiple entries? Watching your basket trades spiral out of control? Stop the madness.
The Trade Panel Manager MT4 is the professional-grade EA that elite traders use to dominate the markets. This isn't just another trade manager – it's your complete trading command center that handles everything from lightning-fast single trades to sophisticated multi-position basket strategies.
Perfect For Traders Who:
✅ Want instant, accurate position sizing without calculators or spreadsheets
✅ Scale into positions and need unified basket management
✅ Trade from multiple devices (mobile, desktop, web) and need centralized control
✅ Demand precise dollar-based risk management across all positions
✅ Value their time and refuse to babysit trades manually
What Makes This Different:
Unlike basic trade managers that only handle single positions, this EA treats your entire basket as ONE intelligent trade. Scale in at 100, 110, 120? No problem. The EA automatically synchronizes all stop losses to maintain your exact dollar risk – no manual adjustments, no spreadsheets, no stress.
**1) General Functionality**
The EA is a comprehensive trade manager for MT4 responsible for:
- Opening new trades as pending orders
- Setting Stop Loss (SL) and Take Profit (TP) levels
- Determining lot size based on a percentage of account balance or fixed dollar amount at risk
- Displaying risk-to-reward ratio, spread, SL pips, and dollar values in the control panel
- Managing breakeven for open positions
- Providing interactive line-based trade setup with linked or independent dragging options
- Visualizing breakeven levels for open positions at weighted average entry prices
- Visualizing basket stop loss levels based on dollar amount risk for position baskets
- Visualizing basket take profit levels based on dollar amount target for position baskets
- Labels anchored to the right screen edge, following horizontal lines dynamically
**2) Inputs**
- RiskPercent: The percentage of account balance to risk per trade (default 1.0%)
- UseFixedRisk: Choose between percentage-based or fixed dollar risk (default false)
- FixedRiskAmount: Fixed dollar amount to risk if UseFixedRisk is true (default 100.0)
- RR: Risk-to-Reward ratio for TP calculation (default 3.0)
- MagicNumber: Unique identifier for the EA's trades (default 12345)
- EnableBE: Enable/disable breakeven feature (default false)
- BEPercent: Percentage of SL distance for BE activation (default 100.0%)
- BEOffsetPercent: Breakeven offset as percentage of SL distance (default 5.0%)
- LinkedLines: Enable linked line dragging mode (default true)
- BuyBEColor: Color for BUY breakeven lines (default clrPurple)
- SellBEColor: Color for SELL breakeven lines (default clrBlack)
- BasketSLDollarAmount: Dollar amount for basket SL calculation (default 50.0)
- BasketTPDollarAmount: Dollar amount for basket TP calculation (default 300.0)
- EnableBasketSL: Enable/disable automatic basket SL adjustment (default false)
The Magic Number identifies and manages the EA's orders and positions.
**3) Lot Size Calculation**
Lot size is calculated based on the selected risk method:
If UseFixedRisk = false:
Lot = (RiskPercent * AccountBalance) / (Distance in points * MODE_TICKVALUE)
If UseFixedRisk = true:
Lot = FixedRiskAmount / (Distance in points * MODE_TICKVALUE)
Where:
- Distance in points = |Entry - SL| / Point
- MODE_TICKVALUE is the tick value for 1 lot in account currency
- Lot is normalized to broker's step size and constrained by min/max lot limits
**4) Symbol-Specific Settings**
- For gold pairs (XAU/USD, etc.): Default SL = 200 pips, pip value = 0.1
- For BTC pairs: Default SL = 40000 pips, pip value = 0.01, spread pip value = 0.1
- For other pairs: Default SL = 20 pips, pip value based on digits (0.01 for JPY, 0.0001 for others)
**5) Control Panel**
- Displays RR ratio, spread in pips, SL distance in pips
- Buttons: Line BUY (green), Line SELL (red), Place Trade (light blue), Cancel (light gray), Hide Panel (pale goldenrod), Toggle BE (default), Toggle Basket SL (default), Toggle Basket TP (default), Disable Magic (default)
- "Hide Panel" button hides the entire control panel and shows a "Show Panel" button in top-left corner
- Clicking "Show Panel" restores the full control panel
- "Toggle BE" button dynamically shows/hides breakeven lines on the chart (starts with BE hidden)
- "Toggle Basket SL" button dynamically shows/hides basket SL lines on the chart (starts with basket SL hidden)
- Allows users to clear the chart for analysis while retaining easy panel access
- Panel updates in real-time as lines are adjusted
**6) Line BUY Feature**
When "Line BUY" is clicked:
- Creates three draggable horizontal lines:
- Entry Line (blue): Shows lot size
- SL Line (red): Shows dollar risk
- TP Line (green): Shows dollar profit
- Initial: Entry at Ask, SL below by default pips, TP above by RR * default pips
- Labels positioned at the right edge of the screen, anchored to the lines
- In Linked Mode: Dragging entry moves SL/TP with default distances
- In Independent Mode: Lines dragged separately
- Dragging SL adjusts TP to maintain RR
- Dragging TP adjusts SL to maintain RR
- "Place Trade" creates BUY STOP/LIMIT order with calculated parameters
**7) Line SELL Feature**
Similar to Line BUY but for sell trades:
- Entry at Bid, SL above, TP below
- Labels positioned at the right edge of the screen, anchored to the lines
- Dragging behavior mirrors BUY
- Creates SELL STOP/LIMIT orders
**8) Line Dragging Options**
- LinkedLines = true: Entry drag moves SL/TP together; SL/TP drags adjust the other to maintain RR
- LinkedLines = false: All lines dragged independently
**9) Trade Placement**
- "Place Trade" button places pending order based on line positions
- BUY: STOP if entry > Ask, LIMIT if entry < Ask
- SELL: STOP if entry < Bid, LIMIT if entry > Bid
- Order includes calculated lot, SL, TP, magic number
**10) Breakeven Management**
If EnableBE enabled:
- Monitors open positions with EA's magic number
- When price reaches BEPercent of SL distance in profit, moves SL to breakeven + BEOffsetPercent
- Only triggers once per position
**11) Basket SL Visualization**
- Basket SL lines are hidden by default for clean chart analysis
- Calculates weighted average entry price for all BUY and SELL positions with the EA's magic number (or all positions if Disable Magic is enabled)
- Draws horizontal lines representing the basket stop loss levels based on BasketSLDollarAmount
- For BUY basket: SL = weighted average entry - (BasketSLDollarAmount / (total BUY lots * tick value)) * Point
- For SELL basket: SL = weighted average entry + (BasketSLDollarAmount / (total SELL lots * tick value)) * Point
- Black lines with labels "Basket SL BUY" and "Basket SL SELL" anchored to the right edge
- Can be toggled on/off dynamically via the "Toggle Basket SL" button
- Lines are updated in real-time as positions change
**12) Basket TP Visualization**
- Basket TP lines are hidden by default for clean chart analysis
- Calculates weighted average entry price for all BUY and SELL positions with the EA's magic number (or all positions if Disable Magic is enabled)
- Draws horizontal lines representing the basket take profit levels based on BasketTPDollarAmount
- For BUY basket: TP = weighted average entry + (BasketTPDollarAmount / (total BUY lots * tick value)) * Point
- For SELL basket: TP = weighted average entry - (BasketTPDollarAmount / (total SELL lots * tick value)) * Point
- Green lines with labels "Basket TP BUY" and "Basket TP SELL" anchored to the right edge
- Can be toggled on/off dynamically via the "Toggle Basket TP" button
- Lines are updated in real-time as positions change
**13) Breakeven Visualization**
- Breakeven lines are hidden by default for clean chart analysis
- Calculates weighted average entry price for all BUY and SELL positions with the EA's magic number (or all positions if Disable Magic is enabled)
- Draws horizontal lines at the weighted average entry prices for BUY and SELL baskets
- Purple line for BUY breakeven, black line for SELL breakeven (customizable colors)
- Labels "BUY breakeven price" and "SELL breakeven price" anchored to the right edge
- Can be toggled on/off dynamically via the "Toggle BE" button
- Lines are updated in real-time as positions change
**14) Historical Trade Visualization**
- Historical trades are hidden by default for clean chart analysis
- On EA startup, any existing historical trade lines from previous EA versions are removed
- On EA startup and after each trade closure, draws trend lines for all historical trades with the EA's magic number (or all trades if Disable Magic is enabled) when enabled
- Blue lines for BUY trades, red for SELL
- Lines from open time/price to close time/price
- Can be toggled on/off dynamically via the "Toggle History" button for journaling or review
- All historical lines are removed when the EA is detached from the chart, keeping the chart clean
- Handles broker history reduction gracefully
**15) Automatic Basket SL Management** 🔥 NEW FEATURE!
If EnableBasketSL enabled:
- **Revolutionary Automation**: Automatically synchronizes all position stop losses to a single calculated basket SL level on every tick
- **Perfect for Scaling**: Ideal for traders who scale into positions at different price levels – the EA manages the basket as a unified trade
- **Dollar-Based Risk**: Your basket risk is always exactly what you specify in BasketSLDollarAmount, regardless of how many positions or at what levels you entered
- **Smart Calculation**:
- For BUY positions: Basket SL = weighted average entry - (BasketSLDollarAmount / (total BUY lots × tick value)) × Point
- For SELL positions: Basket SL = weighted average entry + (BasketSLDollarAmount / (total SELL lots × tick value)) × Point
- **Unified Management**: All positions in your basket share the same stop loss level, treating multiple entries as a single trade
- **Intelligent Updates**: Only modifies positions when needed (with tolerance to avoid unnecessary broker requests)
- **Preserves TPs**: Your existing take profit levels remain untouched when SLs are adjusted
- **Works with Disable Magic**: Can manage positions with EA's magic number only, or ALL positions including manual trades
- **Independent Operation**: Works with or without the visual basket SL lines – pure automation if you prefer
**Real-World Example:**
You scale into BUY positions at 100, 110, and 120 (equal lots). The EA calculates:
- Weighted average (breakeven) = 110
- Basket SL = 110 - (your dollar risk / total position size)
- ALL three positions get this same SL, even though it may be above the entry of your first position at 100
- This is correct – you're managing the basket as a whole, not individual positions!
**Why Traders Love This:**
- Eliminates manual SL adjustments when scaling
- Maintains precise dollar risk across your entire basket
- Perfect for grid trading, averaging, and scaling strategies
- Set it and forget it – the EA handles everything automatically
**16) Disable Magic Feature**
- The "Disable Magic" button allows the EA to include all open positions in its calculations, not just those with the EA's magic number
- When enabled (button shows "Enable Magic"), the EA considers positions from all sources, including manual trades or trades from mobile apps
- This affects: Breakeven visualization, Basket SL visualization, Basket TP visualization, and Automatic Basket SL management
- The breakeven management (automatic BE) still only applies to positions with the EA's magic number
- Button toggles between "Disable Magic" (default, uses magic) and "Enable Magic" (includes all positions)
- Useful for managing basket positions opened from external sources while using the EA for visualization and potential basket management
**17) Real-Time Updates**
- RR ratio updates as lines dragged
- Lot size, SL pips, dollar values update dynamically
- Spread updates every tick
- Labels repositioned with line drags and chart zoom/scroll changes
**18) Safety Features**
- Lot size validation against broker limits
- Order modification error checking
- Proper object management and cleanup
- Compatible with various symbol types and digit counts
