A simple and fast Raycast extension for Indonesian stock investors to calculate their new average stock price (Average Up / Average Down) โ instantly, right from Raycast.
Average Saham Indonesia solves one problem really well:
"I want to know my new average price after buying additional shares."
No login. No internet connection. No portfolio tracking (yet). Just type in your existing position and your new purchase, and get your new average price instantly as you type.
Calculations follow the Bursa Efek Indonesia (IDX) standard: 1 Lot = 100 Shares.

This extension isn't published to the Raycast Store yet. To run it locally:
npm install
npm run dev
Average Saham Indonesia| Field | Value |
|---|---|
| Harga Lama | 106.97 |
| Lot Lama | 15 |
| Harga Baru | 80 |
| Lot Baru | 10 |
Result:
Total Lot 25 Lot
Total Modal Rp240.455
New Investment Needed Rp80.000
Average Price Rp96,18
Old Shares = Old Lot ร 100
New Shares = New Lot ร 100
Old Investment = Old Price ร Old Shares
New Investment = New Price ร New Shares
Total Investment = Old Investment + New Investment
Total Shares = Old Shares + New Shares
Average Price = Total Investment / Total Shares
โโโ assets/
โ โโโ icon.png
โโโ src/
โ โโโ average.tsx # Form, validation, state, live calculation
โ โโโ components/
โ โ โโโ Result.tsx # Renders Total Lot / Total Modal / New Investment / Average Price
โ โโโ utils/
โ โ โโโ calculator.ts # Pure calculation logic
โ โ โโโ formatter.ts # Rupiah / lot / price formatting
โ โโโ types.ts
โโโ package.json
โโโ tsconfig.json
This is the Version 1 (MVP) release: a focused, single-purpose calculator. Upcoming features:
โC), reset form (โR)MIT