COMSATS University Islamabad · Abbottabad Campus · FYP 2026
PSX GenAI Investment Advisor
A full-stack investment intelligence platform for the Pakistan Stock Exchange — powered by the proprietary PSXFusion™ AI Model, combining multi-LLM forecasting, LSTM baselines, dual Shariah screening, hybrid portfolio intelligence, and a React Native mobile client.
FYP Team & Supervision
Lead Developer & Owner
Hamza Jadoon
Principal architect and implementer — backend, frontend, mobile app, PSX Fusion AI Model, ADE, Copilot, PFRE, and full deployment.
Group Member
Fizza
Official FYP group member, COMSATS University Islamabad · Session 2026.
Supervisor
Dr. Gulam Mujtaba
Academic supervisor — technical guidance and project review throughout the FYP.
1. Introduction
Pakistan's retail investors lack integrated tools that combine AI-driven stock predictions, transparent model benchmarking, Shariah compliance verification, and explainable portfolio recommendations. This Final Year Project delivers a production-quality platform that addresses this gap through engineering depth — not just a chatbot wrapper.
The system serves examiners, supervisors, and end-users through a cache-first FastAPI backend, premium static frontend, and Expo mobile app sharing the same REST API.
2. Problem Statement
PSX investors must manually cross-reference predictions, fundamentals, Shariah rules, and portfolio allocation. Existing tools are either pure screeners without AI reasoning, or chatbots without engineering rigor, persistence, or accuracy tracking.
3. Objectives
- Multi-LLM + LSTM prediction with DB persistence
- Dual Shariah screening: PSX-KMI (2026) + AAOIFI
- Per-model portfolio Top 5/10/30/50 ranking
- Transparent accuracy compare vs actual PSX prices
- Mobile app with shared API architecture
Our AI Architecture
The proprietary PSXFusion™ AI Model orchestrates eight specialized engines into a single institutional-grade investment intelligence pipeline. Underlying algorithms (LSTM, LLM reasoning, technical indicators) remain unchanged — this is the professional identity of our hybrid architecture.
4. System Architecture
Layered architecture following modern web application design — client layer, application services, data persistence, and external integrations.
5. Methodology & Workflow
PSX DPS market-watch provides 535+ live symbols. yFinance supplements historical OHLCV for technical indicators.
Parallel GROQ, OpenAI, Meta calls + LSTM momentum proxy. Results persisted to PostgreSQL.
User selects PSX-KMI (official) or AAOIFI (stricter). Six-ratio rule engine with animated screening UX.
Composite score: 40% GenAI + 20% technical + 20% fundamental + 10% history + 10% risk.
Stable post-regime evaluation: matched prediction-vs-actual pairs with direction accuracy, MAE, RMSE, and deployment scoring.
6. Technology Stack
7. Key Results
Loading stable evaluation metrics…
535 PSX symbols via official DPS market-watch integrated across all dropdowns.
PSX-KMI 2026 rules (6 criteria) + AAOIFI global standard — user chooses framework.
Separate Top 5/10/30/50 portfolios per GROQ, OpenAI, and Meta with benchmark overlap.
8. Deployment (Free Student Stack)
Render.com / Railway free tier — uvicorn api:app
GitHub Pages / Vercel — static frontend/ folder
Expo Go QR scan — set EXPO_PUBLIC_API_BASE_URL
Connect via frontend/api-config.json → {"api_base":"https://your-app.onrender.com"}