Position liquidation after volatility shock · Calculation guide

Estimate whole units to sell to regain a volatility-based risk limit.

Calculation guide

Long position, constant current price and linear one-standard-deviation cash risk. Use a volatility and budget for the same horizon. Round retained units down.

sell = units-min(units,floor(budget/(price*vol/100))) · remaining = units-sell · risk = remaining*price*vol/100

Inputs

Existing whole units

Example entry 1000. Use whole numbers.

Current price

Example entry 50 (in the selected currency).

Shocked horizon volatility (%)

Example entry 8.

Cash risk limit

Example entry 3000 (in the selected currency).

Worked example

InputValue
Existing whole units1,000
Current price50
Shocked horizon volatility (%)8
Cash risk limit3,000
ResultValue
Whole units to sell250
Whole units retained750
Remaining cash risk3,000

Calculation steps

Whole units to sell = (Existing whole units − min(Existing whole units, round down((Cash risk limit ÷ ((Current price × Shocked horizon volatility (%)) ÷ 100)))))

(1,000 − min(1,000, round down((3,000 ÷ ((50 × 8) ÷ 100))))) = 250

Whole units retained = (Existing whole units − Whole units to sell)

(1,000 − 250) = 750

Remaining cash risk = (((Whole units retained × Current price) × Shocked horizon volatility (%)) ÷ 100)

(((750 × 50) × 8) ÷ 100) = 3,000

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Existing whole units1,0001,100Whole units to sell250350
Current price5055Whole units to sell250319
Shocked horizon volatility (%)89Whole units to sell250334
Cash risk limit3,0003,300Whole units to sell250175
Position liquidation after volatility shock →