Stock Average Calculator

Calculate average buy price, track profits/losses, and manage your stock portfolio

Average Calculator
Transactions
Analysis
History
Stock Details
$
$
Select Currency
Portfolio Summary
$0
0 shares
Add transactions to calculate your average buy price
$0.00
Average Buy Price
$0.00
Current P&L
0.00%
P&L %
$0.00
Total Investment
Break Even
$0.00
Target Value
$0.00
Target P&L
$0.00
Advanced Settings
%
%
Stock Transactions
DateTypeQuantityPriceAmountAction

No transactions added yet. Add your first transaction below!

Add New Transaction
Buy
Sell
Shares
$
Portfolio Analysis
0
Total Transactions
0
Buy Transactions
0
Sell Transactions
0
Net Quantity
Price Distribution
Profit/Loss Analysis
Price LevelP&L AmountP&L %Portfolio Value
Calculation History

No calculation history yet. Save your first calculation!

`; }// Download file function downloadFile(content, filename, mimeType) { const blob = new Blob([content], { type: mimeType }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); }// Show notification function showNotification(message) { const notification = document.createElement('div'); notification.style.cssText = ` position: fixed; top: 20px; right: 20px; padding: 12px 20px; background: #38a169; color: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; animation: slideIn 0.3s ease; max-width: 300px; font-weight: 600; `; notification.textContent = message; document.body.appendChild(notification); setTimeout(() => { notification.style.animation = 'slideOut 0.3s ease'; setTimeout(() => { document.body.removeChild(notification); }, 300); }, 3000); // Add animation styles if not already present if (!document.querySelector('#notification-styles')) { const style = document.createElement('style'); style.id = 'notification-styles'; style.textContent = ` @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } `; document.head.appendChild(style); } }// Initialize calculator when page loads document.addEventListener('DOMContentLoaded', initStockCalculator);

Share:

Facebook
X
LinkedIn
Email
Reddit

Rate this Tool

User Ratings:

0.0
0.0 out of 5 stars (based on 0 reviews)
Excellent0%
Very good0%
Average0%
Poor0%
Terrible0%