Hermit Lamp Trade Panel
- Utilità
- Versione: 1.0
- Attivazioni: 5
A trade panel for manual traders who want two things: the right lot every time, and a plan that keeps running after the entry, without watching the screen.
Try it first in the Strategy Tester: each day the panel opens a sample market trade and places a sample pending order through its own BUY / SELL code, so you can watch the rules move the stop. Turn on Visual mode to click the buttons yourself.
1. OPEN A TRADE WITH THE RIGHT LOT
- Type your risk (% of balance, % of equity or a fixed amount), stop loss and target on the panel and press Enter; the lot, the money at risk, the stop / target distance, the spread and the margin are shown before you click
- Stop loss by ATR multiple (default), points or a price you type: click the STOP caption to switch. Take profit by reward : risk, points, or none
- Market or Pending: in Pending mode type the entry price; the panel picks buy / sell limit or stop from where the price is, sizes the lot from that price to the stop, and sends the stop and target inside the order. Your waiting orders are listed on the panel with a Cancel button each, and once filled the trade is managed like any other
- Optional keys: Shift+B / Shift+S work like the buttons (second press confirms), Esc cancels
- The lot is rounded DOWN to the broker's step, so the loss at the stop price is not more than you set (slippage, price gaps and commission you did not enter can still add to it). If even the minimum lot risks more, the panel does not open the trade and says what the minimum would risk
- Stop loss and take profit are sent inside the order: the trade is never open without its stop. If the broker refuses the stop, the panel shows it in red until you set one
- Checks before sending: AutoTrading, market open, stop distance, free margin, maximum lot, and not in the last minutes before the weekend close when the Time exit rule is on
- SELL on the left, BUY on the right (like MT5 One Click Trading), each needs a second click (can be turned off)
- If the server answers late, the panel looks for the new trade before it tells you anything, so a second click does not open a second trade
2. MANAGE OPEN TRADES BY PLAN
- Breakeven at a chosen R, plus a buffer to cover costs (a share of R by default, so it fits gold and EURUSD alike, or points)
- Partial close: one or two steps (for example 50% at 1R). If the step would be below the minimum lot, it is skipped and the trade row says so
- Trailing stop: by ATR, points, or the low / high of the last bars, from a chosen R. The stop only moves in your favour, in steps of at least 10% of the trailing distance (no stop changes on every tick)
- Time exit: close before the weekend close and / or after a number of hours
- One click on a rule switches it on or off for every managed trade, open and new
- Trades already open when you attach the panel start PAUSED: click a trade to let the rules manage it. Trades you open after that are managed at once
- Close button on each trade row closes that one trade
- Manages manual trades on this symbol by default (or all symbols, or one magic number), plus every trade the panel opens itself. It does not touch other EAs' trades unless you choose so
- Remembers per trade what it already did, per account, after a restart or a power cut (it never closes the same half twice), and two panels never work on the same trade at once
- Every stop is a real stop at the broker (no hidden stops)
3. SEE YOUR RISK
- Lot, money at risk and target before you click
- Each managed trade: profit in money and in R, and which rules have run
- "If all stops hit": the money you would lose (or keep) if every managed stop is hit; trades without a stop are named in red
- Alerts (pop-up, sound and / or push to your phone) when breakeven, a partial close, trailing or time exit acts, when a trade closes at its stop or target, and when a pending order fills or is cancelled
4. YOUR WAY
- Panel size 80 to 150%, any corner of the chart, dark or light chart colours
- Optional keys Shift+B / Shift+S
R = the distance from the open price to the stop loss when the panel first saw the trade. If the stop was already at or past the open price at that moment, the R rules (breakeven, partial, trailing from R) are off for that trade and the panel says so.
LIMITS
- Prices are typed on the panel: no lines or boxes to drag on the chart.
- Rules based on R need a stop loss on the trade.
- Netting accounts: a new order adds to (or reduces) the position you already hold; the panel warns you when this applies.
- No group close buttons. To close many trades at once use Hermit Lamp Close Panel (free); to plan an entry with a box on the chart use Hermit Lamp Position Size Box (free). Both work next to this panel.
- AutoTrading must be on.
QUESTIONS AND BUGS
Write in the Comments tab or send me a message on MQL5. I read every comment and fix reported bugs.

