Position size is not chosen at random: it follows from the accepted risk and the distance to the stop.
The formula: size = risk in euros ÷ distance to stop. With €100 of risk and a stop €0.50 from entry, you take 200 shares.
A wider stop requires a smaller size, a tighter stop allows a larger one: the risk in euros stays the same.
You always round down and check that the position value (size × price) remains compatible with your capital and leverage.
Examples
SIZE-X (fictional market) : On SIZE-X, the most logical support is €0.80 below your entry. With €120 of risk you can take 150 shares. With a closer support at €0.40, you could take 300: same risk, different size.
5 February 2018: volatility doubles : That day the VIX volatility index more than doubled in one session. With moves suddenly wider, stops had to be placed further away: at constant risk, position sizes therefore had to fall sharply. Keeping the usual size meant risking far more than planned.