Extension Icon

Average Saham Indonesia

Calculate your Indonesian stock average price (Average Up / Average Down) instantly, right from Raycast.
Overview

Average Saham Indonesia

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.

What is this?

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.

Features

  • โšก๏ธ Instant, real-time calculation โ€” no submit button, no loading state
  • ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian-first UI (Harga Lama, Lot Lama, Harga Baru, Lot Baru)
  • ๐Ÿงฎ Accurate average price (Average Up / Average Down) calculation
  • ๐Ÿ”’ 100% offline โ€” no network requests, no accounts, no tracking
  • โŒจ๏ธ Keyboard-first, minimal UI

Screenshots

Average Saham Indonesia

Installation

This extension isn't published to the Raycast Store yet. To run it locally:

  1. Clone this repository
  2. Install dependencies
    npm install
    
  3. Start it in development mode
    npm run dev
    
  4. Open Raycast and search for Average Saham Indonesia

Usage

  1. Open Raycast and search for Average Saham Indonesia
  2. Fill in the form:
    • Harga Lama โ€” your previous average buy price
    • Lot Lama โ€” how many lots you already own
    • Harga Baru โ€” the price of your new purchase
    • Lot Baru โ€” how many lots you're buying now
  3. Read your result instantly:
    • Total Lot โ€” your total lot holding after this purchase
    • Total Modal โ€” your total capital invested
    • New Investment Needed โ€” cash required for the new purchase alone
    • Average Price โ€” your new average price (Average Up / Average Down)

Example

FieldValue
Harga Lama106.97
Lot Lama15
Harga Baru80
Lot Baru10

Result:

Total Lot               25 Lot
Total Modal             Rp240.455
New Investment Needed   Rp80.000
Average Price           Rp96,18

Formula

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

Project Structure

โ”œโ”€โ”€ 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

Roadmap

This is the Version 1 (MVP) release: a focused, single-purpose calculator. Upcoming features:

  • Copy result (โŒ˜C), reset form (โŒ˜R)
  • Multiple buy calculator with an editable transaction list
  • Average Down planner (how many lots to reach a target average)
  • Profit target & break-even calculator (with fees)
  • Stock symbol + calculation history
  • Portfolio mode & summary
  • Average Up / Down simulator with interactive planning
  • Import/export portfolio (CSV/JSON)
  • Dividend & yield calculator
  • Complete Indonesian investor toolkit

Tech Stack

License

MIT

Categories
Source code