TradeCal is a web application that helps traders track and analyze their trading performance through an intuitive calendar interface and comprehensive analytics dashboard.
- 📅 Calendar view of trading activity
- 📊 Detailed analytics with charts and insights
- 🤖 AI-powered trading insights
- 📤 Excel file upload support
- 👥 Multiple trading account management
- 🎨 Multiple theme options
Before you begin, ensure you have installed:
- Clone the repository:
git clone https://github.com/sagehill2625/TradingCal
cd tradecal
- Install dependencies:
npm install
To start the development server:
npm run dev
The application will be available at http://localhost:5173
To create a production build:
npm run build
The built files will be in the dist
directory.
To preview the production build:
npm run preview
-
Account Setup
- Navigate to the Upload page
- Click "New Account" to create a trading account
- Enter an account name and click "Add"
-
Uploading Trades
- Select an account from the dropdown
- Drag and drop your Excel file onto the upload area
- The file should contain the following columns:
- symbol (e.g., MNQZ4)
- qty (quantity)
- buyPrice and sellPrice
- pnl (profit/loss)
- boughtTimestamp and soldTimestamp
- duration
-
Viewing Data
- Calendar View: See daily trading activity and P&L
- Analytics: View detailed charts and statistics
- AI Insights: Get AI-powered analysis of your trading patterns
src/
├── components/ # Reusable UI components
├── pages/ # Main page components
├── types/ # TypeScript interfaces
├── config/ # Configuration files
├── App.tsx # Main application component
└── main.tsx # Application entry point
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Chart.js
- React Router
- OpenAI API (for trading insights)
- XLSX (for Excel file processing)
- Lucide React (for icons)
- Headless UI (for accessible components)
For the AI insights feature to work, you'll need to set up your OpenAI API key. Create a .env
file in the root directory:
VITE_OPENAI_API_KEY=your_api_key_here
The application supports all modern browsers:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
The application uses browser local storage to persist:
- Trading accounts
- Trading data
- Theme preferences
Clear your browser's local storage to reset all data.
This project is licensed under the MIT License - see the LICENSE file for details.