QuantVision Engine — Full-Stack Confluence Trading Platform
QuantVision Engine is an automated confluence trading and technical pattern recognition engine built for the XAU/USD (Gold) market. The platform computes 6 technical indicators in real-time and synthesizes them into a single confluence score (0-100%) to generate actionable BUY/SELL/NEUTRAL signals.
The system features a FastAPI backend that fetches live market data via yfinance, computes indicators using custom NumPy/Pandas-based algorithms, and streams updates through WebSocket connections. The React frontend renders professional-grade TradingView charts with real-time overlays for all indicators.
Architecture
- Backend: Python FastAPI — REST API endpoints + WebSocket streaming for live market data
- Frontend: React 19 + Vite — Interactive dashboard with TradingView Lightweight Charts
- Data Pipeline: yfinance → NumPy/Pandas computation → In-memory cache → WebSocket broadcast
- Deployment: Full-stack served from single FastAPI instance with static file mounting
Technologies
- Python, FastAPI, WebSockets, asyncio
- NumPy, Pandas, pandas-ta
- React 19, Vite, TradingView Lightweight Charts
- Recharts (backtest visualization)
- yfinance (market data API)
6-Indicator Confluence System
The engine computes and weighs 6 independent technical indicators, each contributing to the final confluence score:
- Ichimoku Kinko Hyo (20% weight) — Trend filter using Tenkan-sen, Kijun-sen, Senkou Span A/B, and Chikou Span for comprehensive trend analysis and cloud-based support/resistance.
- MA 9/10 Crossover (20% weight) — Momentum trigger detecting golden/death crosses between 9-period and 10-period moving averages.
- ZigZag Market Structure (20% weight) — Market structure analysis identifying Higher Highs/Lower Lows patterns for trend confirmation.
- Stochastic Oscillator (20% weight) — Momentum oscillator detecting overbought/oversold conditions with %K/%D crossover signals.
- RSI (10% weight) — Relative Strength Index for momentum confirmation with configurable overbought/oversold thresholds.
- Tick Volume (10% weight) — Volume confirmation requiring above-average volume to validate signals.
Key Features
- Real-Time WebSocket Streaming: Live candle updates and signal recalculation every 60 seconds via WebSocket connections.
- Backtesting Engine: Configurable backtester with detailed trade logs, equity curve visualization, and performance metrics (Sharpe ratio, max drawdown, win rate).
- Interactive TradingView Charts: Professional candlestick charts with Ichimoku cloud overlay, MA lines, and volume histogram rendering.
- Signal Panel: Real-time confluence signal display with indicator-by-indicator breakdown showing individual contributions.
- Market Metrics Dashboard: Live price, signal status, and WebSocket connection monitoring.
- Automated Notifications: Real-time Telegram and WhatsApp alerts for potential BUY/SELL signals when the confluence score reaches 60% or higher.
Backtest Performance Metrics
- Total Return, Sharpe Ratio, Max Drawdown
- Win Rate, Profit Factor, Average Trade PnL
- Equity Curve Visualization with Recharts
- Detailed Trade-by-Trade Log with entry/exit timestamps