Trade Manager Pad MT5
- Утилиты
- Rajadurai Thiyagarajan
- Версия: 1.0
- Активации: 5
Trade Manager — Risk-Based Trade Panel
Trade Manager is a MetaTrader 5 Expert Advisor that provides an on-chart panel for planning and executing trades with precise risk control. It is designed for traders who want to define their risk in advance and have their lot size calculated automatically before each trade.
Core Functionality
The panel sits on your chart and lets you set a risk amount either as a percentage of your account balance or as a fixed dollar amount. Both fields stay in sync — changing one updates the other automatically. When you place your stop loss, the EA calculates the exact lot size required to keep your risk within the defined limit.
Risk and Lot Size Calculation
Before any trade is placed, the EA computes the lot size based on the distance between your entry and stop loss, your account balance, and your chosen risk setting. Optional commission per lot can be factored into the risk calculation, so the size you get already accounts for trading costs. A hard cap of 50% risk per trade is enforced. The maximum lot size can also be restricted via an input parameter.
Trade Entry Modes
The panel supports three order types. Market orders are executed immediately at the current ask or bid. Limit orders and stop orders are placed as pending orders at a price level you define by dragging a line on the chart. The order type button toggles between Market and Pending. In pending mode, the EA automatically determines whether the pending order should be a limit or a stop based on where your entry line is positioned relative to the current price, and it updates the button label accordingly.
Visual Trade Lines
When you click Show Lines, draggable horizontal lines appear on the chart. In market mode, a stop loss line appears and you drag it to your desired level. In pending mode, both an entry line and a stop loss line appear. Dragging either line recalculates the lot size and risk in real time and displays the result directly on the line label. The stop loss line also shows the estimated dollar risk at the current lot size.
Breakeven
The breakeven button moves the stop loss of the selected open position to the trade's open price. If the commission input is configured, the breakeven level is shifted slightly beyond the open price so that the commission cost is recovered if the position is closed at that level.
Partial Close
A percentage field on the panel lets you specify what portion of an open position to close. Entering a value between 1 and 99 and clicking Close % will close that proportion of the current position volume.
Trade Selector
Open positions and pending orders on the current symbol are listed using the navigation arrows on the panel. The label between the arrows shows the trade type, volume, and current profit for positions, or the order type and pending price for pending orders. The close, partial close, and breakeven buttons act on whichever trade is currently selected.
Candle Countdown Timer
A countdown timer appears on the chart showing the time remaining in the current candle. It updates every tick and positions itself near the most recent bar.
Panel Controls
The panel includes a minimize button that collapses it to a small title bar, keeping your chart clean when the panel is not needed. A maximize button restores the full panel. A close button removes the EA from the chart entirely.
Input Parameters
-
Risk Reward Ratio: When set above zero, a take profit is placed automatically at the specified multiple of the stop loss distance.
-
Commission Per Lot: The round-turn commission your broker charges per lot.
-
Include Commission in Risk: When enabled, the commission cost is added to the risk calculation so that the final lot size accounts for it.
-
Breakeven Cover Commission: When enabled, the breakeven level is adjusted to recover the commission paid on the trade.
-
Max Lot Size: Sets an upper limit on the lot size the EA will use. Set to zero to use the broker maximum.
-
Magic Number: Identifies trades placed by this EA.
