YazanPro Trade Manager
- Utilities
-
Yazan Adnan Ramadan Ibrahim
Algorithmic trader and MQL5 developer based in Jordan. I build Expert Advisors for MetaTrader 5 focused on gold (XAUUSD) and major FX pairs: multi-module confluence systems, short-hold scalping tools and manual trade panels. Each product is tested in the Strategy Tester on real ticks with - Version: 1.3
- Updated: 2 November 2026
- Activations: 10
YazanPro Trade Manager is an on-chart trade panel for MetaTrader 5: you set the risk, it calculates the lot, draws the stop loss and take profit with the money at risk, sends the order when you press BUY or SELL, and then manages the position.
It works on any symbol (forex, metals, indices, stocks, crypto) and any timeframe from M1 to MN1. It does not open trades by itself on a live or demo account. Every order comes from a button you press.
What you see on the chart (the numbers match the badges on the screenshots)
- Risk tile: the money lost if the stop loss of the next order is hit, its % of the balance and the lot (amber when the minimum lot risks more than your setting).
- Open P/L tile: the floating profit or loss of the managed positions, their number, lots and R.
- SELL / BUY buttons with the lot and the price. In pending mode a second row shows the order the entry line gives: BUY LIMIT or BUY STOP, SELL LIMIT or SELL STOP.
- Order tab settings: lot size, stop loss and take profit mode (click the button to switch, type the value in the box), order type (market or pending at the line) and preview side.
- NEXT ORDER: entry, stop loss and take profit with points, money and R, the lot, and TP1 when partial close is on.
- Preview lines on the chart: entry, stop loss, take profit and TP1 with the money and the R.
- Entry line (pending mode): drag it to the price of your limit or stop order.
- Manage tab: break-even, trailing, partial close and time exit switches, each with its rule in points of this chart.
- Close buttons: close all, buys, sells, profitable, losing, delete pending orders.
- Positions tab: the open positions with lots, profit and R, the pending orders, and the protection status (daily loss limit, max spread).
- Status line: ATR(14) in points, today's change of the equity, the daily limit, and a red or amber line when something blocks new trades (algo trading not allowed, market closed, trading disabled for the symbol, spread too high, daily limit reached).
- Header: language button (12 languages), timeframe buttons, spread and the fold button.
How to read it
- Read the risk tile first: this amount is lost if the stop loss is hit (it can be more in a fast market or a price gap, see below).
- Check the stop loss and take profit lines on the chart. If the stop is in the wrong place, change the stop mode or its value: the lot follows.
- Read the status line: a red line means no new trade will be sent, and it says why.
- Press BUY or SELL, or the pending button. By default a box asks you to confirm.
- Then the Manage tab rules move the stop, close part of the position or close it after N bars; the Open P/L tile and the Positions tab show the result in money and R.
Lot size
- Risk % of balance or Risk % of equity: the lot is calculated so that the stop loss costs this % of the account. The panel shows the money at risk in large type before you send.
- Fixed lot.
- The lot is rounded to the symbol's volume step and kept inside its minimum and maximum. If the free margin is not enough, the lot is reduced and the panel says so. If the minimum lot risks more than your setting, the panel shows that in amber.
Stop loss
- ATR multiple (default 1.5 x ATR 14 of the chart's timeframe).
- Points.
- Last swing: the last confirmed fractal low (for a buy) or high (for a sell), plus a buffer in ATR. If no swing is found, the ATR stop is used and the panel tells you.
Take profit
- R multiple of the stop distance (default 1.3 R), points, or none.
Orders
- BUY / SELL at market: two large buttons show the lot and the current price.
- Limit and stop orders: switch the order type to "Pending at the line" and drag the gold entry line on the chart. The buttons show which order it will be (BUY LIMIT or BUY STOP, SELL LIMIT or SELL STOP), depending on where the line is.
- Preview lines: entry, stop loss, take profit and TP1 are drawn on the chart with the money at risk, the reward and the R. You can show the buy side, the sell side or switch them off.
- Confirmation: by default every order and every close button asks before it acts (input).
All these settings can be changed on the panel itself (mode buttons and value boxes). The panel keeps your choices for the chart.
Position management
It manages the trades of this panel (its magic number) or, if you choose, every position of the chart's symbol, including trades opened by hand or by another EA.
- Break-even: when the profit reaches 0.25 x ATR, the stop moves to entry + 0.125 x ATR.
- ATR trailing stop: 2.0 x ATR behind the price, only forward. Can be switched off.
- Partial close at TP1: closes a % of the volume when the profit reaches a set R (once per position).
- Time exit: closes a position after N bars of the chart's timeframe (default 24, 0 = off).
- Close buttons: close all, close buys, close sells, close profitable, close losing, delete pending orders.
Protection
- Daily loss limit: when equity falls by a set % from the start of the server day, new trades are blocked. Optionally, all managed positions are closed too.
- Max spread: no new trade while the spread is above your limit.
Positions summary
The Positions tab lists the open positions with lots, profit and R, and the tile at the top shows the total floating profit and loss and its R.
Safety checks before every action
Before every order, modify and close the panel checks the symbol's trade mode and trading session, the allowed order types, the volume limits, the free margin, the broker's stop level and freeze level, the tick size and the filling mode. A stop that would not change is not sent again, and the stop is not moved while the price is right next to the take profit.
Panel
- 12 languages: English, Arabic, Russian, Chinese, Spanish, Portuguese, Japanese, German, Korean, French, Italian, Turkish. Switch with the button at the top.
- Timeframe buttons to switch the chart.
- Three tabs: Order, Manage, Positions. The panel can be folded.
Strategy Tester
Nobody can press buttons in the Strategy Tester. So when it runs there, and the input "Tester only: open a demo trade every N bars" is on (default), the EA opens one trade every N bars, alternating buy and sell, so you can watch the stop loss, take profit, break-even, trailing, partial close and time exit work. These demo trades are not a trading strategy and their result means nothing for live trading. On a live or demo account this input does nothing.
What it does not do
- It gives no buy or sell signals and makes no forecast. You decide when to trade and in which direction.
- It does not open trades by itself on a live or demo account.
- It cannot guarantee the stop loss price: in a fast market or over a price gap the broker can close the trade at a worse price, so the loss can be larger than the money at risk shown.
- It uses no DLLs, no web requests and no external files.
Inputs
Lot size
- Lot size: Risk % of balance (Risk % of balance / Risk % of equity / Fixed lot)
- Risk per trade, % (risk modes): 1.0
- Fixed lot (fixed mode): 0.10
Stop loss
- Stop loss: ATR multiple (ATR multiple / Points / Last swing (fractal) + buffer)
- ATR period: 14
- ATR mode: stop = this x ATR (also the swing fallback): 1.5
- Points mode: stop distance, points: 300
- Swing mode: buffer beyond the swing, x ATR: 0.2
- Swing mode: bars searched for the last fractal: 50
Take profit
- Take profit: R multiple of the stop distance (R multiple / Points / No take profit)
- R mode: target = this x the stop distance: 1.3
- Points mode: target distance, points: 400
Position management
- Manage: Only trades with this magic number (or: All positions and orders of the chart symbol)
- Break-even: true
- Break-even trigger: profit >= this x ATR: 0.25
- Break-even lock: stop to entry + this x ATR: 0.125
- ATR trailing stop: true
- Trailing distance, x ATR: 2.0
- Partial close at TP1: false
- TP1 at this x R: 1.0
- Close this % of the volume at TP1: 50
- Close a position after N bars (0 = off): 24
Protection
- Daily loss limit, % of the day's start equity (0 = off): 3.0
- At the limit also close all managed positions: false
- Max spread for new trades, points (0 = off): 0
Orders
- Magic number: 20261101
- Order comment: YP Trade Manager
- Max price deviation, points: 10
- Ask before sending an order or closing positions: true
Panel
- Tab shown first: Order
- Order type shown first: pending at the line (true) or market (false): false
- Panel language: English
- Panel X / Y, pixels from the top-left corner: 10 / 30
- Preview lines (entry / SL / TP) on the chart: true
Strategy Tester
- Tester only: open a demo trade every N bars (alternating): true
- Tester only: N bars: 12
Quick start and FAQ
Quick start
- Attach the EA to a chart and allow Algo Trading (the Common tab and the Algo Trading button of the terminal).
- Pick your language with the button at the top right.
- On the Order tab choose the lot mode, the stop loss and the take profit. Check the risk in the large tile and the lines on the chart.
- Press BUY or SELL. For a limit or stop order, set the order type to "Pending at the line", drag the gold line and press the pending button.
- On the Manage tab switch break-even, trailing, partial close and time exit on or off.
FAQ
Does it trade by itself?
No, not on a live or demo account. It only manages the positions you open. The only automatic trades are the demo trades in the Strategy Tester (see above).
Can it manage trades I opened by hand?
Yes. Set "Manage" to "All positions and orders of the chart symbol".
Why is the lot different from my risk %?
The lot is rounded down to the volume step. If the minimum lot is larger than the calculated lot, the minimum is used and the panel shows the real risk in amber. If the free margin is too small, the lot is reduced.
What is R?
R is the distance (or money) of the first stop loss. 1.3 R means a target 1.3 times as far as the stop. The panel remembers each position's first stop, so R stays correct after break-even.
Does it work on a netting account?
It is written for both: partial close and the close buttons send a deal for the position's ticket. Version 1.00 was tested on a hedging account; test it on your netting demo first.
Risk warning
Trading carries a high risk of loss. This panel calculates lots and manages stops; it does not predict prices and does not guarantee any result. Test it on a demo account first.
