Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Risk Lot Panel - position size by risk and stop distance - indicator for MetaTrader 5

Jefry Francisco Rodriguez Campos
Jefry Francisco Rodriguez Campos
MQL4/MQL5 developer - Expert Advisors, indicators and strategy validation
I build clean, well-tested Expert Advisors and indicators for MetaTrader 4 and 5, with a focus on rule-based strategies and solid risk management.
What I can do for you:
Views:
79
Rating:
(1)
Published:
RiskLotPanel.png (17.26 KB)
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Risk Lot Panel is a small on-chart panel that calculates the position size for a given risk and stop-loss distance. It answers the question every trader asks before an entry: how many lots can I open if I want to risk exactly this amount?

The calculation uses the broker's own contract data (tick size and loss-side tick value), so the result follows each symbol's contract specification and the account currency. It works the same on forex, metals, indices and crypto.

  • Risk modes: % of balance, % of equity or a fixed amount in account currency.
  • The lot is rounded down to the broker volume step and limited to the minimum and maximum volume.
  • Shows the real money at risk after rounding and warns when the minimum lot already exceeds your risk.
  • Shows the current spread. No trading and no buffers: the indicator only reads data and draws labels.

Inputs

  • Risk mode: % of balance, % of equity or fixed money.
  • Risk value: the percentage or the amount, depending on the mode.
  • Stop-loss distance (points): distance from entry to stop loss.
  • Panel corner, X/Y offsets, text and background colours.

Example (screenshot): a risk of 100 USD with a 300-point stop on EURUSD gives 0.33 lots, with a real risk of 99 USD after rounding.

Risk Lot Panel on EURUSD H1

Trailing Stop Breakeven Manager Trailing Stop Breakeven Manager

Trailing stop and breakeven manager for Gold (XAUUSD), forex and any symbol: moves the stop to breakeven with an offset, then trails it in points or ATR multiples on manual trades and on any EA, filtered by magic and symbol. Open source code.

EA Auditor. What an Expert Advisor really does, from its deal history EA Auditor. What an Expert Advisor really does, from its deal history

Script that reads the deal history of your account and writes a plain note on how an Expert Advisor really trades: entries, stops and trailing, lot changes, martingale, averaging, trades at once, hours and holding time, plus what to watch out for. It never trades and says nothing about profit

Spread ATR Monitor - current, average and max spread vs ATR Spread ATR Monitor - current, average and max spread vs ATR

Shows the current spread next to its recent average and maximum and compares it with ATR, so you can see at a glance when trading costs are too high relative to the symbol's normal movement.

Restart-Safe EA Template - no duplicate entries after a restart Restart-Safe EA Template - no duplicate entries after a restart

Expert Advisor template that shows safe execution practices: closed-bar signals once per bar, no duplicate entries after an MT5 or VPS restart, spread and stop-level checks, normalised volume and a log line for every decision.