The indicator shows a small position-size calculator on the chart. It reads the ATR of the last closed bar and shows it in price units and in pips. The suggested stop-loss distance is the ATR multiplied by InpAtrSlMult. The risk amount is InpRiskPercent percent of the account balance in the deposit currency.
The suggested lot is the risk amount divided by the loss of one lot at the suggested stop distance. The loss per lot is calculated from the tick size and the tick value of the symbol, so the result also works for metals, indices and crosses whose quote currency differs from the account currency. The lot is rounded down to the volume step and kept between the minimum and maximum volume of the symbol.
A pip is ten points on 3- and 5-digit quotes and one point on other quotes. Because the lot is never rounded below the minimum volume, the actual risk can be larger than the requested percentage on small accounts. The values are refreshed on every tick and every five seconds by a timer.
The panel size and the offsets are scaled by the screen DPI, and the panel can be placed in any of the four chart corners. The values are informational only. All objects and the ATR handle are released when the indicator is deleted from the chart.
Input parameters
The indicator only draws objects and has no buffers. It does not place or manage trades.

ATR stop distance and lot size panel on EURUSD H1
Account Information Panel with Daily P/L and Equity Drawdown
Shows balance, equity, margin, margin level, floating P/L, today's closed P/L and the drawdown from the equity peak in a small panel on the chart.
Close All Positions with Symbol, Magic, Direction and Profit Filters
A script that closes open positions in one click, with filters for chart symbol, magic number, buy/sell direction and profit/loss state. Works on netting and hedging accounts.
Six-Timeframe EMA Trend Direction Panel
Compares a fast and a slow EMA on M5, M15, M30, H1, H4 and D1 and shows UP, DOWN or FLAT for each timeframe in one panel on the chart.
Economic Calendar Event Lines by Impact
Draws a dotted vertical line at the release time of each economic calendar event of the selected currencies, coloured by impact, from the built-in MetaTrader 5 calendar.