A web-based trading app designed to make tracking trades, calculating P&L, and managing trading strategies faster and easier.
Easy Trade aims to simplify trading by providing:
- Quick trade entry/exit logging
- Automatic P&L calculations
- Trade performance analytics
- MetaTrader 5 integration (planned)
- Plugin support system (planned)
- Desktop app via Electron (Phase 2)
- Trading Robot automation (Phase 3)
- ✅ Core trade tracking system
- ✅ P&L calculation engine
- ✅ Web interface (HTML/JS)
- ✅ Basic statistics dashboard
- PostgreSQL database
- User authentication
- Trade analytics & reporting
- Data export (CSV/PDF)
- MetaTrader 5 connection
- Auto-trade logging
- Real-time account balance sync
- Plugin system architecture
- Electron app wrapper
- Local storage
- System tray integration
- Python 3.9+
- pip (Python package manager)
- Git
# Clone repository
git clone https://github.com/MB-Bidram/Easy-Trade.git
cd Easy-Trade
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run the server
uvicorn backend.main:app --reloadThe API will be available at http://localhost:8000
Simply open frontend/index.html in your browser, or:
# If you have Python installed:
cd frontend
python -m http.server 8080Then visit http://localhost:8080
easy-trade/
├── backend/
│ ├── main.py # FastAPI application entry
│ ├── models.py # Data models & schemas
│ ├── database.py # Database configuration
│ ├── api/
│ │ ├── trades.py # Trade endpoints
│ │ ├── stats.py # Statistics endpoints
│ │ └── metatrader.py # MetaTrader integration (planned)
│ └── utils/
│ ├── calculations.py # P&L calculation logic
│ └── helpers.py # Utility functions
├── frontend/
│ ├── index.html # Main page
│ ├── css/
│ │ └── style.css # Styling
│ ├── js/
│ │ ├── app.js # Main application logic
│ │ ├── api.js # API calls
│ │ └── charts.js # Chart rendering
│ └── assets/ # Images, icons, etc.
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore file
└── README.md # This file
- Backend: Python, FastAPI, SQLAlchemy
- Frontend: HTML5, CSS3, JavaScript (Vanilla)
- Database: SQLite (MVP), PostgreSQL (Phase 2)
- Charts: Chart.js
- Future: MetaTrader 5 SDK, Electron, Plugin System
POST /api/trades/- Create new tradeGET /api/trades/- Get all tradesGET /api/trades/{id}- Get trade detailsPUT /api/trades/{id}- Update tradeDELETE /api/trades/{id}- Delete trade
GET /api/stats/summary- P&L summaryGET /api/stats/performance- Win rate, average gain/lossGET /api/stats/monthly- Monthly breakdown
-
Log a Trade
- Click "New Trade"
- Enter ticker (e.g., EURUSD)
- Set entry price and quantity
- Submit
-
Close Trade
- Click on trade from history
- Enter exit price
- System automatically calculates P&L
-
View Analytics
- Dashboard shows total wins/losses
- Win rate percentage
- Trade history with color-coded gains/losses
- Currently MVP (no authentication)
- Phase 2 will add user authentication
- MetaTrader credentials will be encrypted
- Plugin system will have sandboxing (Phase 3)
Since this is a personal project currently, we'll outline contribution guidelines as it scales.
- Phase 1: Core MVP
- Phase 2: Database & Authentication
- Phase 3: MetaTrader Integration
- Phase 4: Electron Desktop App
- Plugin Support System
- Trading Robot Automation
For issues or feature requests, use GitHub Issues.
MIT License - See LICENSE file for details
Created: August 2026 Status: 🚧 In Development (Phase 1)