Here is a simple Portfolio Tracker built using HTML, CSS, and JavaScript. It allows users to manually enter stock names, quantities, and prices, and it calculates total values dynamically.
Features:
-
Add multiple assets
-
Calculates individual and total values
-
Editable inputs
Let’s create the tracker:
How to Use:
-
Open the HTML file in any modern web browser.
-
Click “Add Asset” to enter a new row.
-
Enter the asset name, quantity, and price per unit.
-
The total value per asset and total portfolio value will auto-update.
-
Click the ❌ button to remove any asset.
This is a frontend-only tool. For persistent tracking, consider integrating it with a backend or local storage. Let me know if you want a version with automatic price fetching via an API.