Risk R Manager
- Utilità
-
Bui Tuan Dung
Independent MQL5 and Pine Script developer from Vietnam. I build indicators, trade panels and Expert Advisors for MetaTrader 5, plus TradingView scripts, with a focus on clean charts, closed-bar logic (no repainting) and clear instructions. - Versione: 1.1
- Aggiornato: 1 dicembre 2026
Risk R Manager is a free trade panel for traders who think in risk units (R).
- Type your stop loss price in the panel (or click AUTO STOP for a volatility-based suggestion).
- Optional: type an entry price to place a limit or stop order; leave it empty for a market order.
- Adjust risk % and take profit (R) if needed, then click BUY or SELL.
The stop and entry are also shown as lines on the chart; drag a line and the box updates.
The panel then:
- Calculates the lot size so the stop loses exactly your chosen % of equity (uses the symbol's tick value, rounds down to the lot step, checks free margin).
- Sets take profit at your chosen R multiple (for example 3R).
- Shows the lot and money at risk live while you type or drag.
- Manages open trades: at your chosen R (for example 1R) it closes part of the position and moves the stop to entry (optional offset).
- Can also manage trades you opened manually on the same symbol.
- Respects the broker's minimum stop distance and volume limits.
Works on forex, gold, indices and crypto CFDs, hedging and netting accounts. The panel places orders only when you click; it does not trade on its own. In the Strategy Tester it opens sample trades to demonstrate the management logic.
Quick start
- Press Ctrl+N (Navigator), go to Expert Advisors > Market > Risk R Manager and drag it onto the chart of the symbol you want to trade.
- In the window that opens, Common tab: tick "Allow Algo Trading", then click OK.
- Make sure the Algo Trading button on the MT5 toolbar is green. If it is off, the panel shows an orange warning and no order is sent.
- Type a stop loss price (or click AUTO STOP), check the lot and money at risk shown at the bottom of the panel, then click BUY or SELL.
- Try it on a demo account first.
Safety checks (built in, adjustable): risk per trade above 5% is refused; a stop closer than 3x the current spread is refused (protects against a mistyped stop that would create a huge lot); optional maximum lot per trade. The reason is shown in orange on the panel.
Inputs
- Default risk per trade (%) 0.5 and Default take profit (R) 3, both editable on the panel at any time.
- Safety: max risk %, max lot (0 = no limit), min stop distance in spreads.
- Partial close at (R) 1.0 (0 = off), Partial close size (%) 50, Move stop to entry after partial, Break-even offset (R).
- Also manage manual trades on this symbol: off by default.
- Magic number, Max slippage, panel position and colors.
FAQ
- I click BUY and nothing happens. Read the line at the bottom of the panel and the Experts tab: usually Algo Trading is off, the stop is on the wrong side, or free margin is too low.
- Lot is 0 / "risk too small for minimum lot". Your risk % in money is smaller than the loss of the minimum lot at that stop distance: raise risk % or use a closer stop.
