Position sizing: the only formula you need
One formula does almost all of the work: lots = (account × risk%) ÷ (stop distance × value per point per lot). Decide what fraction of the account one losing trade may cost — for challenge trading, 0.5% to 1% is the sensible range — and let the stop distance dictate the size. Never the other way round.
Example on a $100,000 account risking 0.5% ($500): if your EURUSD stop is 25 pips away and a pip on one lot is $10, size is 500 ÷ (25 × 10) = 2 lots. Same account, gold trade with a $8 stop and $100 per dollar move per lot: 500 ÷ 800 = 0.62 lots. The risk is constant; the lot number is whatever makes it constant.
Why this matters more in a challenge than anywhere else: with a 5% daily loss limit, risking 1% means five consecutive maximum losses in one day to fail — rare with any real edge. Risking 3% means two bad trades — routine. Position sizing is how you convert the platform's limits from a threat into background scenery. Compute it before every trade, not just the first one: stop distances change with every setup, and "the same lots as last time" silently drifts your risk. A size calculator takes ten seconds; a breached account takes a new fee.