Lot Size Calculator is a script that works out the position size for a given risk and stop-loss distance. Run it on any chart, enter how much you want to risk and where the stop is, and it shows the lot size to use. It only calculates: it never opens, modifies or closes trades.
The money value of the stop distance is taken from OrderCalcProfit(), the same function the terminal uses, so the result is correct for forex, cross pairs, gold, indices and crypto, whatever the account currency. If OrderCalcProfit() is not available for a symbol, the script falls back to tick size and tick value. The lot is rounded down to the symbol's volume step and kept within the minimum and maximum volume.
Input parameters

Input parameters
Result

Result for a 1% risk buy on XAUUSD with a 200-point stop
Candle Timer and Spread
Shows the time left until the current candle closes and the live spread in any chart corner. Keeps counting every second, even when no ticks arrive.
Close All Positions and Orders (Filtered)
Closes open positions and deletes pending orders in one run, with filters for symbol, magic number, side and profit or loss. Asks for confirmation and retries failed closes.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.