Most traders pick the entry first. Then they work out what they can lose.
That order is backwards, and it is how a good setup turns into a bad result.
The entry is a choice among many. The loss is not — it is fixed the moment you take the trade, whether you like it or not. So the size should be calculated from the loss, and the entry should be chosen inside that limit.
The four numbers
A position is defined by four things:
From those, everything else follows: position size, risk amount, reward-to-risk, notional and margin.
You do not need a fifth number. You need those four to be consistent with each other.
Percent or cash
Risk can be set as a percentage of the account or as a fixed cash amount. They are the same idea in different clothes, and which one you use depends on how you think about the account.
The important part is that the risk is decided before the entry, not after. A number chosen after the trade is open is not a risk limit, it is a hope.
Why R:R is not a score
A reward-to-risk of 3 does not make a trade good. It makes it cheap to be wrong — which is a different thing.
A 3 R:R with a 20% hit rate is a losing system. A 1.5 R:R with a 60% hit rate is a profitable one. The ratio only tells you what the trade pays when it works; it says nothing about how often it works.
Use it as a constraint, not as a verdict.
Notional and margin
Position size is the number of contracts or shares. Notional is size times price — the actual exposure. Margin is what the broker holds against that exposure.
They are not the same, and confusing them is how a position that "fits the account" turns out to be far larger than intended. The panel shows all three, so the size is checked against the account and not against the stop.
What this does not do
It does not find the entry. It does not predict the target.
It takes the entry, the stop, the target and the risk, and returns the size that fits. That is the whole job, and it is the job most traders do last.
The tools
Risk calculator panel with live entry, fixed stop and target, position size, R:R, notional and margin:

TradingView Risk Calculator — Position Size & R:R Panel | SOFLMARKET
$39.00
Strategy backtester, if you want to test the rule on the chart:

TradingView Strategy Backtester — Trade Lab Panel | SOFLMARKET
$280.00
And the free clock, because the same stop means something different in a thin session:

Free TradingView Session Clock — Sessions & Countdowns | SOFLMARKET
Free
A note on risk
Position sizing limits the size of a loss. It does not remove the risk of loss. Trading leveraged instruments carries a high risk of loss. This is not financial advice.
