Trade Panel Manager MT4
- Utilità
- Marlon Ahrens
- Versione: 1.1
- Aggiornato: 26 gennaio 2026
- Attivazioni: 10
**Revolutionize Your MT4 Trading with the Ultimate Trade Manager EA!**
Tired of manual trade management and scattered positions? Meet the Trade Panel Manager MT4 expert advisor – the all-in-one solution that transforms MT4 into a powerhouse of precision trading and basket management!
**Key Features That Set It Apart:**
- **Smart Risk Management**: Automatic lot sizing based on account percentage or fixed dollar risk, with real-time RR ratio display
- **Interactive Trade Setup**: Drag-and-drop lines for instant BUY/SELL entries, SL/TP with linked or independent modes
- **Basket Mastery**: Visualize and manage complex position baskets with weighted average BE, SL, and TP lines – perfect for hedging and multi-position strategies
- **Universal Position Control**: "Disable Magic" feature lets you manage ALL open positions, including those from mobile apps or manual trades
- **Historical Insights**: Toggle historical trade lines for instant journaling and performance review
- **Dynamic Visualizations**: Real-time updating lines and labels that follow your chart movements
**Why Traders Love It:**
- Save hours on manual calculations and position tracking
- Handle sophisticated basket trades with ease
- Maintain strict risk control across all positions
- Seamless integration with any trading style or strategy
- Clean, professional interface that doesn't clutter your charts
Turn your MT4 terminal into a professional trading command center. Whether you're a scalper, swing trader, or basket manager, this EA gives you the edge you need to trade smarter, not harder!
*Available now – elevate your trading game today!*
**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
- Visualizing historical trades on the chart with trend lines
- 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 30.0)
- BasketTPDollarAmount: Dollar amount for basket TP calculation (default 30.0)
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 History (default), 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 History" button dynamically shows/hides historical trade lines on the chart (starts with history hidden)
- "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) 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
**12) 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
**13) 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
**15) 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
**16) Disable Magic Feature**
- The "Disable Magic" button allows the EA to include all open positions and historical trades 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 Historical trade visualization
- 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
**16) 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
