jsonet commited on
Commit
0406816
·
verified ·
1 Parent(s): da7f4e3

Ejecuta la implementación de la siguiente aplicación tanto de escritorio, como app móvil hiper responsive, que ambas aplicaciones se integren de manera nativa en una sola aplicación, que se adapta perfectamente según el tipo de dispositivo en el que la usa el usuario, quiero que implementes las funciones descritas a continuación implementando una pagina distinta para cada función concreta de la aplicación descrita a continuación, añade el máximo de funcionalidad real en cada herramienta y cada elemento de la aplicación, añade el máximo realismo posible para que se parezca el máximo posible a como se debería ver la aplicación final para cumplir con todos los requisitos de desarrollo detallados a continuación:

Browse files

### **TradeFlow Pro: Especificación de Arquitectura y Funcionalidades Ampliadas**

**Visión General:** TradeFlow Pro no es solo una app, es el centro de mando para el trader moderno. Su objetivo es eliminar la fricción entre el análisis, la planificación, la ejecución y el monitoreo, proporcionando una experiencia fluida y potente tanto en el escritorio como en la palma de tu mano. La conexión directa con MT5 es el pilar que garantiza la precisión y el tiempo real en cada acción.

---

### **Módulo 1: Conexión, Monitoreo y Control Central (El "Cerebro" de la Operación)**

Este módulo es el corazón de la nueva arquitectura, centralizando toda la información y el control.

#### **1.1. Conexión Robusta y Segura con MT5**
* **API de MT5:** La app se conectará a través de la API Web de MetaTrader 5. Esto permite una comunicación segura y bidireccional sin necesidad de tener el terminal de escritorio MT5 abierto.
* **Autenticación Multi-Factor:** Implementación de login con credenciales de MT5 más una capa de seguridad opcional (ej. PIN, biometría en el móvil).
* **Sincronización en Tiempo Real:** Uso de WebSockets para recibir streams de datos en tiempo real: precios (Bid/Ask), estado de la cuenta, operaciones abiertas, historial y, crucialmente, el estado de los EAs.

#### **1.2. Panel de Control de Expert Advisors (EAs) - ¡NUEVO Y CLAVE!**
Esta es la capacidad central que solicitaste. La interfaz mostrará un dashboard dedicado a monitorear y gestionar *todos* los EAs que se ejecutan en la cuenta de MT5.

* **Vista General de EAs:**
* **Lista de EAs Activos:** Muestra cada EA por nombre, identificador único y el par/símbolo en el que opera.
* **Estado en Tiempo Real:** Un indicador visual (verde, rojo, amarillo) muestra si el EA está **Activo**, **Detenido**, o con **Error**.
* **Métricas de Rendimiento de Cada EA:**
* **Operaciones Abiertas:** Número de trades activos gestionados por el EA.
* **Volumen Total Operado:** Suma de lotes abiertos por el EA.
* **P&L Actual:** Ganancia o pérdida acumulada de las operaciones del EA en tiempo real.
* **Rendimiento Histórico:** Gráfico simple de la curva de equity del EA desde su inicio.
* **Estadísticas Clave:** Profit Factor, Drawdown Máximo, Sharpe Ratio (calculado a partir de los datos históricos del EA).

* **Control Detallado de cada EA:**
* **Start/Stop/Restart:** Botones para iniciar, detener o reiniciar un EA específico directamente desde la app.
* **Visualización de Parámetros:** Acceso a una pantalla que muestra los parámetros con los que está configurado el EA (ej. Lotaje, Stop Loss, Take Profit, etc.).
* **Modificación Remota de Parámetros (Avanzado):** Capacidad para cambiar ciertos parámetros predefinidos (ej. tamaño de lote, activar/desactivar trailing stop) sin necesidad de acceder al terminal de escritorio.
* **Cierre de Emergencia:** Un botón de "Pánico" que cierra todas las operaciones gestionadas por un EA específico.

---

### **Módulo 2: Gestión y Planificación de Operaciones (El "Campo de Batalla")**

Aquí es donde el trader planifica y ejecuta sus ideas.

#### **2.1. Calculadora de Tamaño de Posición Integrada**
* **Interfaz Intuitiva:** Al planificar una operación, un panel deslizante muestra la calculadora.
* **Entradas Dinámicas:**
* Balance de la Cuenta (se auto-llena).
* Porcentaje de Riesgo a asumir (1%, 2%, etc.).
* Distancia de Stop Loss en pips (se calcula automáticamente al arrastrar la línea de SL en el gráfico).
* **Salida Precisa:** Muestra el **Tamaño de Lote** a operar, el **Riesgo Monetario** exacto y los **Contratos/Unidades**.

#### **2.2. Planificación Visual en el Gráfico (Móvil y Escritorio)**
* **Interacción Táctil y con Ratón:** Permite dibujar directamente sobre el gráfico de precios.
* **Líneas Interactivas:**
* **Línea de Entrada:** Se arrastra al precio deseado.
* **Línea de Stop Loss (SL):** Se arrastra para definir el riesgo. La calculadora de tamaño se actualiza al instante.
* **Línea de Take Profit (TP):** Se arrastra para definir el beneficio. Muestra automáticamente el **Ratio Riesgo/Beneficio (R:R)**.
* **Visualización en Tiempo Real:** Junto a las líneas de SL y TP, se muestra el valor en:
* **Puntos/Pips.**
* **Moneda de la Cuenta (ej. $15.50 de riesgo, $46.50 de beneficio).**

---

### **Módulo 3: Herramientas de Protección y Automatización (El "Escudo Inteligente")**

Estas funciones protegen el capital y maximizan las ganancias.

#### **3.1. Opciones de Breakeven (BE)**
* **BE Básico:** Se activa cuando el precio alcanza X pips de ganancia. Mueve el SL al precio de entrada.
* **BE Multi-Nivel (Hasta 4):**
* **Ejemplo:** Al llegar a +20 pips, mueve SL a BE. Al llegar a +40 pips, mueve SL a +20 pips. Asegura ganancias de forma progresiva.

#### **3.2. Opciones de Trailing Stop (TS)**
* **TS Básico:** Se mueve un pip por cada pip que se mueve el precio a favor.
* **TS Multi-Nivel:** Permite diferentes distancias de trailing según el nivel de ganancia.
* **TS por Picos y Valles (Swing High/Low):** Se basa en los máximos/mínimos de las últimas 'N' velas. Ideal para estrategias de seguimiento de tendencias.
* **TS basado en Media Móvil (MA):** El SL sigue una línea de MA (ej. EMA de 20 periodos). Se ajusta automáticamente a la tendencia.
* **TS basado en ATR (Average True Range):** La distancia del trailing se adapta a la volatilidad del mercado (ej. 2x el ATR). Muy robusto.
* **TS con Cierre Parcial:** Integra el cierre parcial con el trailing. Ej: Cierra el 50% de la posición en TP1, y activa el trailing en el resto.

#### **3.3. Herramientas de Discreción y Eficiencia**
* **Modo Oculto (Stealth Mode):** Los SL, TP y órdenes pendientes no se envían al bróker. Se gestionan localmente en la app y se ejecutan como órdenes de mercado cuando se alcanza el precio. Evita la caza de stops.
* **Automatización de SL/TP para Órdenes Externas:** Si abres una operación desde la app nativa del bróker, TradeFlow Pro detecta la operación abierta sin SL/TP y te permite aplicarles una protección automática.
* **Trailing de Órdenes Pendientes:** Una orden de compra limitada, por ejemplo, puede seguir al precio hacia abajo si el mercado baja, manteniendo siempre la misma distancia, pero sin subir si el mercado sube.

---

### **Módulo 4: Ejecución y Control de Órdenes (La "Acción")**

Funciones para una ejecución rápida y precisa.

#### **4.1. Ejecución Precisa**
* **Órdenes Limitadas de Retroceso (LPO - Limit Pullback Order):** Permite colocar una orden límite no en un precio fijo, sino a una distancia X por debajo del precio actual (para compras) o por encima (para ventas). Ideal para esperar retrocesos sin tener que estar pendiente.
* **División de Operaciones Grandes:** Si necesitas operar 10 lotes, la app puede dividir la orden en 10 de 1 lote cada una (o como se configure) para reducir el impacto en el mercado y mejorar el deslizamiento.

#### **4.2. Control Rápido (Botones de Acceso Rápido)**
* **Panel de Cierre Rápido:** Botones para:
* Cerrar Todas las Operaciones.
* Cerrar Solo las Ganadoras.
* Cerrar Solo las Perdedoras.
* Cerrar Solo las de Compra (Buy).
* Cerrar Solo las de Venta (Sell).
* **Borrado Rápido de Órdenes Pendientes:** Función análoga para eliminar todas las órdenes pendientes con un solo clic.

---

### **Módulo 5: Eficiencia y Personalización (El "Flujo de Trabajo")**

Herramientas que agilizan las tareas repetitivas.

* **Guardado y Carga de Plantillas:** Puedes guardar una configuración completa de una operación (ej. una estrategia con BE multi-nivel, TS basado en ATR y 3 niveles de TP parcial) y aplicarla instantáneamente a nuevas operaciones.
* **OCO (One Cancels the Other):** Al colocar una orden de compra y una de venta en un rango, la activación de una de ellas cancela automáticamente la otra. Perfecto para operar rupturas de rangos.
* **Gestión de Ratio Riesgo/Beneficio:** Al arrastrar las líneas de SL y TP en el gráfico, la app muestra el R:R en tiempo real y puede bloquear la ejecución si el R:R es inferior a un mínimo predefinido por el usuario.

---

### **Nuevas Funciones Complementarias para Hacerla "Mas Efectiva y Potente"**

Para ir más allá y crear una herramienta verdaderamente insuperable:

1. **Centro de Analytics y Reporting:**
* **Dashboard de Rendimiento Personal:** Gráficos de equity, drawdown, distribución de ganancias/pérdidas por par de divisas, por hora del día, etc.
* **Análisis de Estadísticas de Trading:** Calcula y muestra métricas clave como el Factor de Beneficio, la Tasa de Aciertos, el Promedio de Ganancia/Pérdida, y la Expectativa Matemática de tu trading.

2. **Diario de Trading Integrado:**
* Cada operación que se cierra se puede archivar automáticamente en un diario.
* Permite añadir notas, capturas de pantalla del gráfico en el momento de la entrada/salida, y etiquetas (ej. "Error", "Buena ejecución", "Violé mis reglas").
* Ideal para el análisis post-mortem y la mejora continua.

3. **Calendario Económico Integrado:**
* Muestra eventos de alto impacto directamente en el gráfico o en un panel lateral.
* Permite filtrar por país y nivel de importancia.

Files changed (6) hide show
  1. README.md +8 -5
  2. ai-advisor.html +576 -0
  3. analytics.html +557 -0
  4. index.html +405 -18
  5. portfolio.html +571 -0
  6. trading.html +492 -0
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Tradeflow Pro Infinity
3
- emoji: 💻
4
- colorFrom: indigo
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: TradeFlow Pro Infinity 🌌
3
+ colorFrom: green
4
+ colorTo: red
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
ai-advisor.html ADDED
@@ -0,0 +1,576 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AI Quantum Advisor - TradeFlow Pro Infinity</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ 'quantum': {
20
+ 50: '#f0f9ff',
21
+ 100: '#e0f2fe',
22
+ 200: '#bae6fd',
23
+ 300: '#7dd3fc',
24
+ 400: '#38bdf8',
25
+ 500: '#0ea5e9',
26
+ 600: '#0284c7',
27
+ 700: '#0369a1',
28
+ 800: '#075985',
29
+ 900: '#0c4a6e',
30
+ 950: '#082f49'
31
+ },
32
+ 'neon': {
33
+ 50: '#f0fdf4',
34
+ 100: '#dcfce7',
35
+ 200: '#bbf7d0',
36
+ 300: '#86efac',
37
+ 400: '#4ade80',
38
+ 500: '#22c55e',
39
+ 600: '#16a34a',
40
+ 700: '#15803d',
41
+ 800: '#166534',
42
+ 900: '#14532d',
43
+ 950: '#052e16'
44
+ }
45
+ },
46
+ animation: {
47
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
48
+ 'float': 'float 6s ease-in-out infinite',
49
+ 'glow': 'glow 2s ease-in-out infinite alternate',
50
+ 'typing': 'typing 3s steps(40, end), blink-caret .75s step-end infinite',
51
+ },
52
+ keyframes: {
53
+ float: {
54
+ '0%, 100%': { transform: 'translateY(0px)' },
55
+ '50%': { transform: 'translateY(-20px)' },
56
+ },
57
+ glow: {
58
+ 'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
59
+ 'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
60
+ },
61
+ typing: {
62
+ 'from': { width: '0' },
63
+ 'to': { width: '100%' }
64
+ },
65
+ 'blink-caret': {
66
+ 'from, to': { borderColor: 'transparent' },
67
+ '50%': { borderColor: '#0ea5e9' }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+ <style>
75
+ .quantum-gradient {
76
+ background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
77
+ }
78
+ .glass-effect {
79
+ backdrop-filter: blur(10px);
80
+ background: rgba(8, 47, 73, 0.3);
81
+ border: 1px solid rgba(14, 165, 233, 0.2);
82
+ }
83
+ .quantum-card {
84
+ background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
85
+ border: 1px solid rgba(14, 165, 233, 0.3);
86
+ box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
87
+ }
88
+ .neon-glow {
89
+ box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
90
+ }
91
+ .holographic-text {
92
+ background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
93
+ background-size: 200% 200%;
94
+ -webkit-background-clip: text;
95
+ -webkit-text-fill-color: transparent;
96
+ animation: shimmer 3s ease-in-out infinite;
97
+ }
98
+ @keyframes shimmer {
99
+ 0%, 100% { background-position: 0% 50%; }
100
+ 50% { background-position: 100% 50%; }
101
+ }
102
+ .ai-message {
103
+ animation: fadeIn 0.5s ease-in;
104
+ }
105
+ @keyframes fadeIn {
106
+ from { opacity: 0; transform: translateY(10px); }
107
+ to { opacity: 1; transform: translateY(0); }
108
+ }
109
+ .typing-indicator {
110
+ display: inline-block;
111
+ width: 0;
112
+ animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
113
+ border-right: 2px solid #0ea5e9;
114
+ white-space: nowrap;
115
+ overflow: hidden;
116
+ }
117
+ .brain-wave {
118
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
119
+ }
120
+ </style>
121
+ </head>
122
+ <body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
123
+ <!-- Navigation -->
124
+ <nav class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-quantum-700/30">
125
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
126
+ <div class="flex items-center justify-between h-16">
127
+ <div class="flex items-center space-x-4">
128
+ <a href="index.html" class="text-gray-300 hover:text-white transition-colors">
129
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
130
+ </a>
131
+ <h1 class="text-xl font-bold holographic-text">AI Quantum Advisor</h1>
132
+ </div>
133
+ <div class="flex items-center space-x-4">
134
+ <div class="flex items-center space-x-2">
135
+ <div class="w-2 h-2 bg-neon-500 rounded-full animate-pulse"></div>
136
+ <span class="text-sm text-gray-300">AI Active</span>
137
+ </div>
138
+ <button class="quantum-gradient p-2 rounded-lg hover:opacity-80 transition-opacity">
139
+ <i data-feather="settings" class="w-5 h-5"></i>
140
+ </button>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </nav>
145
+
146
+ <!-- Main Content -->
147
+ <main class="pt-16 pb-20 md:pb-8">
148
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
149
+ <!-- AI Status Card -->
150
+ <div class="quantum-card rounded-xl p-6 mb-6">
151
+ <div class="flex items-center justify-between">
152
+ <div class="flex items-center space-x-4">
153
+ <div class="relative">
154
+ <div class="w-16 h-16 quantum-gradient rounded-full flex items-center justify-center">
155
+ <i data-feather="cpu" class="w-8 h-8"></i>
156
+ </div>
157
+ <div class="absolute -bottom-1 -right-1 w-6 h-6 bg-neon-500 rounded-full flex items-center justify-center">
158
+ <div class="w-2 h-2 bg-white rounded-full animate-pulse"></div>
159
+ </div>
160
+ </div>
161
+ <div>
162
+ <h2 class="text-xl font-semibold">Quantum AI is Online</h2>
163
+ <p class="text-sm text-gray-400">Analyzing 2,847 market signals in real-time</p>
164
+ </div>
165
+ </div>
166
+ <div class="text-right">
167
+ <p class="text-sm text-gray-400">Confidence Level</p>
168
+ <p class="text-2xl font-bold text-neon-500">94.7%</p>
169
+ </div>
170
+ </div>
171
+ </div>
172
+
173
+ <!-- AI Chat Interface -->
174
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
175
+ <!-- Chat Area -->
176
+ <div class="lg:col-span-2 quantum-card rounded-xl p-6">
177
+ <div class="flex items-center justify-between mb-4">
178
+ <h3 class="text-lg font-semibold">Quantum Conversation</h3>
179
+ <button class="text-gray-400 hover:text-white transition-colors">
180
+ <i data-feather="more-horizontal" class="w-5 h-5"></i>
181
+ </button>
182
+ </div>
183
+
184
+ <!-- Chat Messages -->
185
+ <div class="space-y-4 mb-4 max-h-96 overflow-y-auto" id="chatMessages">
186
+ <div class="ai-message flex space-x-3">
187
+ <div class="w-8 h-8 quantum-gradient rounded-full flex items-center justify-center flex-shrink-0">
188
+ <i data-feather="cpu" class="w-4 h-4"></i>
189
+ </div>
190
+ <div class="flex-1 glass-effect rounded-lg p-4">
191
+ <p class="typing-indicator">Hello! I'm your Quantum AI advisor. I've detected a bullish harmonic pattern on EUR/USD with 85% confidence. Would you like me to analyze the optimal entry points?</p>
192
+ </div>
193
+ </div>
194
+
195
+ <div class="flex space-x-3 justify-end">
196
+ <div class="glass-effect rounded-lg p-4 max-w-xs">
197
+ <p>Yes, show me the analysis and suggest position size based on my risk profile</p>
198
+ </div>
199
+ <div class="w-8 h-8 bg-gray-700 rounded-full flex items-center justify-center flex-shrink-0">
200
+ <i data-feather="user" class="w-4 h-4"></i>
201
+ </div>
202
+ </div>
203
+
204
+ <div class="ai-message flex space-x-3">
205
+ <div class="w-8 h-8 quantum-gradient rounded-full flex items-center justify-center flex-shrink-0">
206
+ <i data-feather="cpu" class="w-4 h-4"></i>
207
+ </div>
208
+ <div class="flex-1 space-y-3">
209
+ <div class="glass-effect rounded-lg p-4">
210
+ <p>Based on your risk profile and current market conditions, I recommend:</p>
211
+ <ul class="list-disc list-inside mt-2 space-y-1 text-sm text-gray-300">
212
+ <li>Entry: 1.0845-1.0847 (Fibonacci 61.8% retracement)</li>
213
+ <li>Stop Loss: 1.0832 (below recent low)</li>
214
+ <li>Take Profit: 1.0878 (1.618 Fibonacci extension)</li>
215
+ <li>Risk/Reward: 1:2.5</li>
216
+ </ul>
217
+ </div>
218
+ <div class="glass-effect rounded-lg p-4">
219
+ <div class="flex items-center justify-between mb-2">
220
+ <span class="text-sm font-semibold">Suggested Position Size</span>
221
+ <span class="text-neon-500">2.5 lots</span>
222
+ </div>
223
+ <div class="grid grid-cols-2 gap-4 text-sm">
224
+ <div>
225
+ <p class="text-gray-400">Risk Amount</p>
226
+ <p class="text-white">$1,250 (2.5%)</p>
227
+ </div>
228
+ <div>
229
+ <p class="text-gray-400">Potential Profit</p>
230
+ <p class="text-neon-500">$3,125</p>
231
+ </div>
232
+ </div>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ </div>
237
+
238
+ <!-- Quick Actions -->
239
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-2 mb-4">
240
+ <button class="glass-effect rounded-lg p-3 text-sm hover:bg-quantum-600/30 transition-colors text-left">
241
+ <i data-feather="trending-up" class="w-4 h-4 mb-1"></i>
242
+ <p>Analyze Trend</p>
243
+ </button>
244
+ <button class="glass-effect rounded-lg p-3 text-sm hover:bg-quantum-600/30 transition-colors text-left">
245
+ <i data-feather="target" class="w-4 h-4 mb-1"></i>
246
+ <p>Find Patterns</p>
247
+ </button>
248
+ <button class="glass-effect rounded-lg p-3 text-sm hover:bg-quantum-600/30 transition-colors text-left">
249
+ <i data-feather="zap" class="w-4 h-4 mb-1"></i>
250
+ <p>Optimize EA</p>
251
+ </button>
252
+ <button class="glass-effect rounded-lg p-3 text-sm hover:bg-quantum-600/30 transition-colors text-left">
253
+ <i data-feather="shield" class="w-4 h-4 mb-1"></i>
254
+ <p>Risk Check</p>
255
+ </button>
256
+ </div>
257
+
258
+ <!-- Input Area -->
259
+ <div class="flex space-x-2">
260
+ <input type="text" placeholder="Ask me anything about trading..."
261
+ class="flex-1 bg-gray-800 rounded-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-quantum-500">
262
+ <button class="quantum-gradient px-4 py-3 rounded-lg hover:opacity-80 transition-opacity">
263
+ <i data-feather="send" class="w-5 h-5"></i>
264
+ </button>
265
+ </div>
266
+ </div>
267
+
268
+ <!-- AI Insights -->
269
+ <div class="space-y-4">
270
+ <!-- Market Sentiment -->
271
+ <div class="quantum-card rounded-xl p-6">
272
+ <div class="flex items-center justify-between mb-4">
273
+ <h3 class="text-lg font-semibold">Market Sentiment</h3>
274
+ <div class="w-3 h-3 bg-neon-500 rounded-full animate-pulse"></div>
275
+ </div>
276
+ <div class="space-y-3">
277
+ <div class="flex justify-between text-sm">
278
+ <span class="text-gray-400">Fear & Greed Index</span>
279
+ <span class="text-neon-500">72 (Greed)</span>
280
+ </div>
281
+ <div class="flex justify-between text-sm">
282
+ <span class="text-gray-400">Quantum Confidence</span>
283
+ <span class="text-quantum-400">94.7%</span>
284
+ </div>
285
+ <div class="flex justify-between text-sm">
286
+ <span class="text-gray-400">AI Prediction Accuracy</span>
287
+ <span class="text-neon-500">87.3%</span>
288
+ </div>
289
+ </div>
290
+ </div>
291
+
292
+ <!-- Active Alerts -->
293
+ <div class="quantum-card rounded-xl p-6">
294
+ <div class="flex items-center justify-between mb-4">
295
+ <h3 class="text-lg font-semibold">AI Alerts</h3>
296
+ <span class="text-xs bg-red-500 text-white px-2 py-1 rounded-full">3</span>
297
+ </div>
298
+ <div class="space-y-3">
299
+ <div class="glass-effect rounded-lg p-3">
300
+ <div class="flex items-start space-x-2">
301
+ <i data-feather="alert-triangle" class="w-4 h-4 text-yellow-500 mt-0.5"></i>
302
+ <div class="flex-1">
303
+ <p class="text-sm">High correlation detected</p>
304
+ <p class="text-xs text-gray-400">EUR/USD & GBP/USD (0.92)</p>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ <div class="glass-effect rounded-lg p-3">
309
+ <div class="flex items-start space-x-2">
310
+ <i data-feather="trending-up" class="w-4 h-4 text-neon-500 mt-0.5"></i>
311
+ <div class="flex-1">
312
+ <p class="text-sm">Bullish pattern detected</p>
313
+ <p class="text-xs text-gray-400">GOLD - Ascending triangle</p>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ <div class="glass-effect rounded-lg p-3">
318
+ <div class="flex items-start space-x-2">
319
+ <i data-feather="clock" class="w-4 h-4 text-quantum-400 mt-0.5"></i>
320
+ <div class="flex-1">
321
+ <p class="text-sm">News impact expected</p>
322
+ <p class="text-xs text-gray-400">FOMC in 2 hours</p>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+
329
+ <!-- Brain Activity -->
330
+ <div class="quantum-card rounded-xl p-6">
331
+ <div class="flex items-center justify-between mb-4">
332
+ <h3 class="text-lg font-semibold">Neural Activity</h3>
333
+ <i data-feather="activity" class="w-5 h-5 text-quantum-400 brain-wave"></i>
334
+ </div>
335
+ <div class="h-24 mb-4">
336
+ <canvas id="brainChart"></canvas>
337
+ </div>
338
+ <div class="grid grid-cols-2 gap-3 text-sm">
339
+ <div class="glass-effect rounded-lg p-3">
340
+ <p class="text-gray-400 text-xs">Processing Speed</p>
341
+ <p class="text-white font-semibold">2.4ms</p>
342
+ </div>
343
+ <div class="glass-effect rounded-lg p-3">
344
+ <p class="text-gray-400 text-xs">Accuracy Rate</p>
345
+ <p class="text-neon-500 font-semibold">94.7%</p>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </div>
350
+ </div>
351
+
352
+ <!-- AI Recommendations -->
353
+ <div class="quantum-card rounded-xl p-6">
354
+ <div class="flex items-center justify-between mb-4">
355
+ <h3 class="text-lg font-semibold">Quantum Recommendations</h3>
356
+ <button class="text-quantum-400 hover:text-quantum-300 transition-colors">
357
+ <i data-feather="refresh-cw" class="w-5 h-5"></i>
358
+ </button>
359
+ </div>
360
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
361
+ <div class="glass-effect rounded-lg p-4 hover:bg-quantum-600/20 transition-colors cursor-pointer">
362
+ <div class="flex items-center space-x-3 mb-3">
363
+ <div class="w-10 h-10 bg-neon-500/20 rounded-lg flex items-center justify-center">
364
+ <i data-feather="trending-up" class="w-5 h-5 text-neon-500"></i>
365
+ </div>
366
+ <div>
367
+ <p class="font-semibold">Increase EUR/USD</p>
368
+ <p class="text-xs text-gray-400">Confidence: 89%</p>
369
+ </div>
370
+ </div>
371
+ <p class="text-sm text-gray-300">AI detects bullish momentum. Suggested allocation: +15%</p>
372
+ <div class="mt-3 flex space-x-2">
373
+ <button class="px-3 py-1 bg-neon-500/20 text-neon-500 rounded text-xs hover:bg-neon-500/30 transition-colors">Apply</button>
374
+ <button class="px-3 py-1 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">Details</button>
375
+ </div>
376
+ </div>
377
+ <div class="glass-effect rounded-lg p-4 hover:bg-quantum-600/20 transition-colors cursor-pointer">
378
+ <div class="flex items-center space-x-3 mb-3">
379
+ <div class="w-10 h-10 bg-yellow-500/20 rounded-lg flex items-center justify-center">
380
+ <i data-feather="alert-triangle" class="w-5 h-5 text-yellow-500"></i>
381
+ </div>
382
+ <div>
383
+ <p class="font-semibold">Reduce BTC Exposure</p>
384
+ <p class="text-xs text-gray-400">Confidence: 76%</p>
385
+ </div>
386
+ </div>
387
+ <p class="text-sm text-gray-300">Volatility expected. Suggested allocation: -10%</p>
388
+ <div class="mt-3 flex space-x-2">
389
+ <button class="px-3 py-1 bg-yellow-500/20 text-yellow-500 rounded text-xs hover:bg-yellow-500/30 transition-colors">Apply</button>
390
+ <button class="px-3 py-1 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">Details</button>
391
+ </div>
392
+ </div>
393
+ <div class="glass-effect rounded-lg p-4 hover:bg-quantum-600/20 transition-colors cursor-pointer">
394
+ <div class="flex items-center space-x-3 mb-3">
395
+ <div class="w-10 h-10 bg-purple-500/20 rounded-lg flex items-center justify-center">
396
+ <i data-feather="zap" class="w-5 h-5 text-purple-500"></i>
397
+ </div>
398
+ <div>
399
+ <p class="font-semibold">Activate New ATA</p>
400
+ <p class="text-xs text-gray-400">Confidence: 92%</p>
401
+ </div>
402
+ </div>
403
+ <p class="text-sm text-gray-300">Arbitrage opportunity detected in DeFi markets</p>
404
+ <div class="mt-3 flex space-x-2">
405
+ <button class="px-3 py-1 bg-purple-500/20 text-purple-500 rounded text-xs hover:bg-purple-500/30 transition-colors">Deploy</button>
406
+ <button class="px-3 py-1 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">Simulate</button>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ </main>
413
+
414
+ <!-- Bottom Navigation for Mobile -->
415
+ <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
416
+ <div class="grid grid-cols-5 py-2">
417
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
418
+ <i data-feather="home" class="w-5 h-5"></i>
419
+ <span class="text-xs">Home</span>
420
+ </button>
421
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
422
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
423
+ <span class="text-xs">Trade</span>
424
+ </button>
425
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
426
+ <i data-feather="activity" class="w-5 h-5"></i>
427
+ <span class="text-xs">Analytics</span>
428
+ </button>
429
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
430
+ <i data-feather="pie-chart" class="w-5 h-5"></i>
431
+ <span class="text-xs">Portfolio</span>
432
+ </button>
433
+ <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
434
+ <i data-feather="cpu" class="w-5 h-5"></i>
435
+ <span class="text-xs">AI</span>
436
+ </button>
437
+ </div>
438
+ </nav>
439
+
440
+ <script>
441
+ // Initialize Feather Icons
442
+ feather.replace();
443
+
444
+ // Brain Activity Chart
445
+ const brainCtx = document.getElementById('brainChart').getContext('2d');
446
+ const brainGradient = brainCtx.createLinearGradient(0, 0, 0, 100);
447
+ brainGradient.addColorStop(0, 'rgba(14, 165, 233, 0.6)');
448
+ brainGradient.addColorStop(1, 'rgba(14, 165, 233, 0.1)');
449
+
450
+ new Chart(brainCtx, {
451
+ type: 'line',
452
+ data: {
453
+ labels: Array.from({length: 20}, (_, i) => i),
454
+ datasets: [{
455
+ label: 'Neural Activity',
456
+ data: Array.from({length: 20}, () => Math.random() * 40 + 60),
457
+ borderColor: '#0ea5e9',
458
+ backgroundColor: brainGradient,
459
+ borderWidth: 2,
460
+ fill: true,
461
+ tension: 0.4,
462
+ pointRadius: 0,
463
+ pointHoverRadius: 4
464
+ }]
465
+ },
466
+ options: {
467
+ responsive: true,
468
+ maintainAspectRatio: false,
469
+ plugins: {
470
+ legend: { display: false },
471
+ tooltip: { enabled: false }
472
+ },
473
+ scales: {
474
+ x: { display: false },
475
+ y: { display: false }
476
+ },
477
+ animation: {
478
+ duration: 2000,
479
+ easing: 'linear'
480
+ }
481
+ }
482
+ });
483
+
484
+ // Update brain activity in real-time
485
+ setInterval(() => {
486
+ const chart = Chart.getChart('brainChart');
487
+ chart.data.datasets[0].data = Array.from({length: 20}, () => Math.random() * 40 + 60);
488
+ chart.update('none');
489
+ }, 2000);
490
+
491
+ // Animate elements
492
+ anime({
493
+ targets: '.quantum-card',
494
+ translateY: [30, 0],
495
+ opacity: [0, 1],
496
+ delay: anime.stagger(100),
497
+ duration: 800,
498
+ easing: 'easeOutQuad'
499
+ });
500
+
501
+ // Simulate AI typing
502
+ function typeMessage(element, text, speed = 50) {
503
+ let i = 0;
504
+ element.textContent = '';
505
+ function type() {
506
+ if (i < text.length) {
507
+ element.textContent += text.charAt(i);
508
+ i++;
509
+ setTimeout(type, speed);
510
+ } else {
511
+ element.classList.remove('typing-indicator');
512
+ }
513
+ }
514
+ type();
515
+ }
516
+
517
+ // Add new AI message
518
+ function addAIMessage(text) {
519
+ const chatContainer = document.getElementById('chatMessages');
520
+ const messageDiv = document.createElement('div');
521
+ messageDiv.className = 'ai-message flex space-x-3';
522
+ messageDiv.innerHTML = `
523
+ <div class="w-8 h-8 quantum-gradient rounded-full flex items-center justify-center flex-shrink-0">
524
+ <i data-feather="cpu" class="w-4 h-4"></i>
525
+ </div>
526
+ <div class="flex-1 glass-effect rounded-lg p-4">
527
+ <p class="typing-indicator">${text}</p>
528
+ </div>
529
+ `;
530
+ chatContainer.appendChild(messageDiv);
531
+ feather.replace();
532
+
533
+ const typingElement = messageDiv.querySelector('.typing-indicator');
534
+ typeMessage(typingElement, text);
535
+
536
+ chatContainer.scrollTop = chatContainer.scrollHeight;
537
+ }
538
+
539
+ // Simulate periodic AI messages
540
+ setTimeout(() => {
541
+ addAIMessage("I've detected unusual whale activity in the ETH market. Large buy orders accumulating around $2,850. This could indicate an upcoming price movement.");
542
+ }, 5000);
543
+
544
+ setTimeout(() => {
545
+ addAIMessage("Your portfolio risk has increased by 15% due to recent market volatility. I suggest activating the dynamic hedging protocol to protect your gains.");
546
+ }, 10000);
547
+
548
+ // Quick action buttons
549
+ document.querySelectorAll('.glass-effect.rounded-lg.p-3').forEach(button => {
550
+ button.addEventListener('click', function() {
551
+ const action = this.querySelector('p').textContent;
552
+ let message = '';
553
+
554
+ switch(action) {
555
+ case 'Analyze Trend':
556
+ message = "Analyzing current market trends across all your positions... I've identified a strong upward trend in commodities, particularly gold and silver. Consider increasing allocation by 10-15%.";
557
+ break;
558
+ case 'Find Patterns':
559
+ message = "Scanning for harmonic patterns... Found a potential Butterfly pattern on GBP/JPY 4H chart with 78% probability. Entry zone: 165.20-165.40.";
560
+ break;
561
+ case 'Optimize EA':
562
+ message = "Running optimization algorithms on your active EAs... ATA-7 parameters can be improved by 12% for current market conditions. Shall I apply the new settings?";
563
+ break;
564
+ case 'Risk Check':
565
+ message = "Performing comprehensive risk analysis... Your portfolio VAR is currently at 2.1%, well within acceptable limits. However, correlation risk has increased to 0.78.";
566
+ break;
567
+ }
568
+
569
+ if (message) {
570
+ addAIMessage(message);
571
+ }
572
+ });
573
+ });
574
+ </script>
575
+ </body>
576
+ </html>
analytics.html ADDED
@@ -0,0 +1,557 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Quantum Analytics - TradeFlow Pro Infinity</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ 'quantum': {
20
+ 50: '#f0f9ff',
21
+ 100: '#e0f2fe',
22
+ 200: '#bae6fd',
23
+ 300: '#7dd3fc',
24
+ 400: '#38bdf8',
25
+ 500: '#0ea5e9',
26
+ 600: '#0284c7',
27
+ 700: '#0369a1',
28
+ 800: '#075985',
29
+ 900: '#0c4a6e',
30
+ 950: '#082f49'
31
+ },
32
+ 'neon': {
33
+ 50: '#f0fdf4',
34
+ 100: '#dcfce7',
35
+ 200: '#bbf7d0',
36
+ 300: '#86efac',
37
+ 400: '#4ade80',
38
+ 500: '#22c55e',
39
+ 600: '#16a34a',
40
+ 700: '#15803d',
41
+ 800: '#166534',
42
+ 900: '#14532d',
43
+ 950: '#052e16'
44
+ }
45
+ },
46
+ animation: {
47
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
48
+ 'float': 'float 6s ease-in-out infinite',
49
+ 'glow': 'glow 2s ease-in-out infinite alternate',
50
+ },
51
+ keyframes: {
52
+ float: {
53
+ '0%, 100%': { transform: 'translateY(0px)' },
54
+ '50%': { transform: 'translateY(-20px)' },
55
+ },
56
+ glow: {
57
+ 'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
58
+ 'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ </script>
65
+ <style>
66
+ .quantum-gradient {
67
+ background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
68
+ }
69
+ .glass-effect {
70
+ backdrop-filter: blur(10px);
71
+ background: rgba(8, 47, 73, 0.3);
72
+ border: 1px solid rgba(14, 165, 233, 0.2);
73
+ }
74
+ .quantum-card {
75
+ background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
76
+ border: 1px solid rgba(14, 165, 233, 0.3);
77
+ box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
78
+ }
79
+ .neon-glow {
80
+ box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
81
+ }
82
+ .holographic-text {
83
+ background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
84
+ background-size: 200% 200%;
85
+ -webkit-background-clip: text;
86
+ -webkit-text-fill-color: transparent;
87
+ animation: shimmer 3s ease-in-out infinite;
88
+ }
89
+ @keyframes shimmer {
90
+ 0%, 100% { background-position: 0% 50%; }
91
+ 50% { background-position: 100% 50%; }
92
+ }
93
+ .metric-card {
94
+ transition: all 0.3s ease;
95
+ }
96
+ .metric-card:hover {
97
+ transform: translateY(-2px);
98
+ box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
99
+ }
100
+ </style>
101
+ </head>
102
+ <body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
103
+ <!-- Navigation -->
104
+ <nav class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-quantum-700/30">
105
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
106
+ <div class="flex items-center justify-between h-16">
107
+ <div class="flex items-center space-x-4">
108
+ <a href="index.html" class="text-gray-300 hover:text-white transition-colors">
109
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
110
+ </a>
111
+ <h1 class="text-xl font-bold holographic-text">Quantum Analytics</h1>
112
+ </div>
113
+ <div class="flex items-center space-x-4">
114
+ <select class="glass-effect rounded-lg px-3 py-1 text-sm bg-transparent">
115
+ <option>Last 7 Days</option>
116
+ <option>Last 30 Days</option>
117
+ <option>Last 90 Days</option>
118
+ <option>Custom Range</option>
119
+ </select>
120
+ <button class="quantum-gradient px-4 py-2 rounded-lg text-sm hover:opacity-80 transition-opacity">
121
+ Export Report
122
+ </button>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </nav>
127
+
128
+ <!-- Main Content -->
129
+ <main class="pt-16 pb-20 md:pb-8">
130
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
131
+ <!-- Key Metrics -->
132
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
133
+ <div class="metric-card quantum-card rounded-xl p-6">
134
+ <div class="flex items-center justify-between mb-2">
135
+ <p class="text-sm text-gray-400">Total Return</p>
136
+ <i data-feather="trending-up" class="w-5 h-5 text-neon-500"></i>
137
+ </div>
138
+ <p class="text-3xl font-bold text-neon-500">+24.7%</p>
139
+ <p class="text-xs text-gray-400 mt-1">+$123,450</p>
140
+ </div>
141
+
142
+ <div class="metric-card quantum-card rounded-xl p-6">
143
+ <div class="flex items-center justify-between mb-2">
144
+ <p class="text-sm text-gray-400">Sharpe Ratio</p>
145
+ <i data-feather="activity" class="w-5 h-5 text-quantum-400"></i>
146
+ </div>
147
+ <p class="text-3xl font-bold text-quantum-400">1.84</p>
148
+ <p class="text-xs text-gray-400 mt-1">Risk-adjusted return</p>
149
+ </div>
150
+
151
+ <div class="metric-card quantum-card rounded-xl p-6">
152
+ <div class="flex items-center justify-between mb-2">
153
+ <p class="text-sm text-gray-400">Max Drawdown</p>
154
+ <i data-feather="arrow-down" class="w-5 h-5 text-red-500"></i>
155
+ </div>
156
+ <p class="text-3xl font-bold text-red-500">-8.2%</p>
157
+ <p class="text-xs text-gray-400 mt-1">Peak to trough</p>
158
+ </div>
159
+
160
+ <div class="metric-card quantum-card rounded-xl p-6">
161
+ <div class="flex items-center justify-between mb-2">
162
+ <p class="text-sm text-gray-400">Win Rate</p>
163
+ <i data-feather="target" class="w-5 h-5 text-yellow-500"></i>
164
+ </div>
165
+ <p class="text-3xl font-bold text-yellow-500">68.4%</p>
166
+ <p class="text-xs text-gray-400 mt-1">342 wins / 158 losses</p>
167
+ </div>
168
+ </div>
169
+
170
+ <!-- Charts Grid -->
171
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
172
+ <!-- Equity Curve -->
173
+ <div class="quantum-card rounded-xl p-6">
174
+ <div class="flex items-center justify-between mb-4">
175
+ <h3 class="text-lg font-semibold">Equity Curve</h3>
176
+ <div class="flex space-x-2">
177
+ <button class="px-3 py-1 bg-quantum-600/30 rounded text-sm hover:bg-quantum-600/50 transition-colors">Balance</button>
178
+ <button class="px-3 py-1 bg-gray-800 rounded text-sm hover:bg-gray-700 transition-colors">Equity</button>
179
+ </div>
180
+ </div>
181
+ <div class="h-64">
182
+ <canvas id="equityChart"></canvas>
183
+ </div>
184
+ </div>
185
+
186
+ <!-- Monthly Returns -->
187
+ <div class="quantum-card rounded-xl p-6">
188
+ <div class="flex items-center justify-between mb-4">
189
+ <h3 class="text-lg font-semibold">Monthly Returns</h3>
190
+ <select class="glass-effect rounded px-3 py-1 text-sm bg-transparent">
191
+ <option>2024</option>
192
+ <option>2023</option>
193
+ </select>
194
+ </div>
195
+ <div class="h-64">
196
+ <canvas id="returnsChart"></canvas>
197
+ </div>
198
+ </div>
199
+ </div>
200
+
201
+ <!-- Performance Analysis -->
202
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
203
+ <!-- Asset Performance -->
204
+ <div class="quantum-card rounded-xl p-6">
205
+ <h3 class="text-lg font-semibold mb-4">Asset Performance</h3>
206
+ <div class="space-y-3">
207
+ <div class="flex items-center justify-between">
208
+ <div class="flex items-center space-x-2">
209
+ <div class="w-3 h-3 bg-neon-500 rounded-full"></div>
210
+ <span class="text-sm">EUR/USD</span>
211
+ </div>
212
+ <span class="text-sm text-neon-500">+12.4%</span>
213
+ </div>
214
+ <div class="flex items-center justify-between">
215
+ <div class="flex items-center space-x-2">
216
+ <div class="w-3 h-3 bg-quantum-500 rounded-full"></div>
217
+ <span class="text-sm">GBP/JPY</span>
218
+ </div>
219
+ <span class="text-sm text-neon-500">+8.7%</span>
220
+ </div>
221
+ <div class="flex items-center justify-between">
222
+ <div class="flex items-center space-x-2">
223
+ <div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
224
+ <span class="text-sm">GOLD</span>
225
+ </div>
226
+ <span class="text-sm text-neon-500">+5.2%</span>
227
+ </div>
228
+ <div class="flex items-center justify-between">
229
+ <div class="flex items-center space-x-2">
230
+ <div class="w-3 h-3 bg-purple-500 rounded-full"></div>
231
+ <span class="text-sm">BTC/USD</span>
232
+ </div>
233
+ <span class="text-sm text-red-500">-2.1%</span>
234
+ </div>
235
+ </div>
236
+ </div>
237
+
238
+ <!-- Trading Hours -->
239
+ <div class="quantum-card rounded-xl p-6">
240
+ <h3 class="text-lg font-semibold mb-4">Best Trading Hours</h3>
241
+ <div class="h-48">
242
+ <canvas id="hoursChart"></canvas>
243
+ </div>
244
+ </div>
245
+
246
+ <!-- Risk Metrics -->
247
+ <div class="quantum-card rounded-xl p-6">
248
+ <h3 class="text-lg font-semibold mb-4">Risk Metrics</h3>
249
+ <div class="space-y-4">
250
+ <div>
251
+ <div class="flex justify-between text-sm mb-1">
252
+ <span class="text-gray-400">Value at Risk (95%)</span>
253
+ <span class="text-white">-$5,240</span>
254
+ </div>
255
+ <div class="w-full bg-gray-700 rounded-full h-2">
256
+ <div class="bg-gradient-to-r from-green-500 to-yellow-500 h-2 rounded-full" style="width: 35%"></div>
257
+ </div>
258
+ </div>
259
+ <div>
260
+ <div class="flex justify-between text-sm mb-1">
261
+ <span class="text-gray-400">Expected Shortfall</span>
262
+ <span class="text-white">-$8,910</span>
263
+ </div>
264
+ <div class="w-full bg-gray-700 rounded-full h-2">
265
+ <div class="bg-gradient-to-r from-yellow-500 to-red-500 h-2 rounded-full" style="width: 60%"></div>
266
+ </div>
267
+ </div>
268
+ <div>
269
+ <div class="flex justify-between text-sm mb-1">
270
+ <span class="text-gray-400">Beta (vs Market)</span>
271
+ <span class="text-white">0.84</span>
272
+ </div>
273
+ <div class="w-full bg-gray-700 rounded-full h-2">
274
+ <div class="bg-quantum-500 h-2 rounded-full" style="width: 84%"></div>
275
+ </div>
276
+ </div>
277
+ <div>
278
+ <div class="flex justify-between text-sm mb-1">
279
+ <span class="text-gray-400">Correlation</span>
280
+ <span class="text-white">0.72</span>
281
+ </div>
282
+ <div class="w-full bg-gray-700 rounded-full h-2">
283
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 72%"></div>
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <!-- Detailed Statistics -->
291
+ <div class="quantum-card rounded-xl p-6">
292
+ <h3 class="text-lg font-semibold mb-4">Detailed Statistics</h3>
293
+ <div class="overflow-x-auto">
294
+ <table class="w-full text-sm">
295
+ <thead>
296
+ <tr class="text-left text-gray-400 border-b border-gray-800">
297
+ <th class="pb-3">Metric</th>
298
+ <th class="pb-3">Value</th>
299
+ <th class="pb-3">Benchmark</th>
300
+ <th class="pb-3">Rating</th>
301
+ </tr>
302
+ </thead>
303
+ <tbody>
304
+ <tr class="border-b border-gray-800">
305
+ <td class="py-3">Profit Factor</td>
306
+ <td class="py-3 text-neon-500">1.84</td>
307
+ <td class="py-3 text-gray-400">> 1.5</td>
308
+ <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Excellent</span></td>
309
+ </tr>
310
+ <tr class="border-b border-gray-800">
311
+ <td class="py-3">Recovery Factor</td>
312
+ <td class="py-3 text-neon-500">3.2</td>
313
+ <td class="py-3 text-gray-400">> 2.0</td>
314
+ <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Good</span></td>
315
+ </tr>
316
+ <tr class="border-b border-gray-800">
317
+ <td class="py-3">Expected Value</td>
318
+ <td class="py-3 text-neon-500">$247</td>
319
+ <td class="py-3 text-gray-400">> $100</td>
320
+ <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Excellent</span></td>
321
+ </tr>
322
+ <tr class="border-b border-gray-800">
323
+ <td class="py-3">Ulcer Index</td>
324
+ <td class="py-3 text-quantum-400">4.2</td>
325
+ <td class="py-3 text-gray-400">< 5.0</td>
326
+ <td class="py-3"><span class="px-2 py-1 bg-quantum-500/20 text-quantum-400 rounded text-xs">Good</span></td>
327
+ </tr>
328
+ <tr class="border-b border-gray-800">
329
+ <td class="py-3">Calmar Ratio</td>
330
+ <td class="py-3 text-yellow-500">0.68</td>
331
+ <td class="py-3 text-gray-400">> 0.5</td>
332
+ <td class="py-3"><span class="px-2 py-1 bg-yellow-500/20 text-yellow-500 rounded text-xs">Average</span></td>
333
+ </tr>
334
+ <tr>
335
+ <td class="py-3">K-Ratio</td>
336
+ <td class="py-3 text-quantum-400">1.24</td>
337
+ <td class="py-3 text-gray-400">> 1.0</td>
338
+ <td class="py-3"><span class="px-2 py-1 bg-quantum-500/20 text-quantum-400 rounded text-xs">Good</span></td>
339
+ </tr>
340
+ </tbody>
341
+ </table>
342
+ </div>
343
+ </div>
344
+ </div>
345
+ </main>
346
+
347
+ <!-- Bottom Navigation for Mobile -->
348
+ <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
349
+ <div class="grid grid-cols-5 py-2">
350
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
351
+ <i data-feather="home" class="w-5 h-5"></i>
352
+ <span class="text-xs">Home</span>
353
+ </button>
354
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
355
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
356
+ <span class="text-xs">Trade</span>
357
+ </button>
358
+ <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
359
+ <i data-feather="activity" class="w-5 h-5"></i>
360
+ <span class="text-xs">Analytics</span>
361
+ </button>
362
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
363
+ <i data-feather="pie-chart" class="w-5 h-5"></i>
364
+ <span class="text-xs">Portfolio</span>
365
+ </button>
366
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
367
+ <i data-feather="cpu" class="w-5 h-5"></i>
368
+ <span class="text-xs">AI</span>
369
+ </button>
370
+ </div>
371
+ </nav>
372
+
373
+ <script>
374
+ // Initialize Feather Icons
375
+ feather.replace();
376
+
377
+ // Equity Curve Chart
378
+ const equityCtx = document.getElementById('equityChart').getContext('2d');
379
+ const equityGradient = equityCtx.createLinearGradient(0, 0, 0, 300);
380
+ equityGradient.addColorStop(0, 'rgba(34, 197, 94, 0.3)');
381
+ equityGradient.addColorStop(1, 'rgba(34, 197, 94, 0)');
382
+
383
+ new Chart(equityCtx, {
384
+ type: 'line',
385
+ data: {
386
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
387
+ datasets: [{
388
+ label: 'Equity',
389
+ data: [50000, 52000, 48500, 53800, 56200, 54800, 58900, 61200, 59400, 62350],
390
+ borderColor: '#22c55e',
391
+ backgroundColor: equityGradient,
392
+ borderWidth: 3,
393
+ fill: true,
394
+ tension: 0.4,
395
+ pointRadius: 0,
396
+ pointHoverRadius: 6
397
+ }, {
398
+ label: 'Balance',
399
+ data: [50000, 51500, 49200, 52800, 55100, 53900, 57400, 59800, 58300, 61250],
400
+ borderColor: '#0ea5e9',
401
+ borderWidth: 2,
402
+ fill: false,
403
+ tension: 0.4,
404
+ pointRadius: 0,
405
+ pointHoverRadius: 6,
406
+ borderDash: [5, 5]
407
+ }]
408
+ },
409
+ options: {
410
+ responsive: true,
411
+ maintainAspectRatio: false,
412
+ plugins: {
413
+ legend: {
414
+ display: false
415
+ },
416
+ tooltip: {
417
+ backgroundColor: 'rgba(8, 47, 73, 0.9)',
418
+ titleColor: '#fff',
419
+ bodyColor: '#fff',
420
+ borderColor: '#0ea5e9',
421
+ borderWidth: 1,
422
+ cornerRadius: 8
423
+ }
424
+ },
425
+ scales: {
426
+ x: {
427
+ grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
428
+ ticks: { color: '#9ca3af' }
429
+ },
430
+ y: {
431
+ grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
432
+ ticks: {
433
+ color: '#9ca3af',
434
+ callback: function(value) {
435
+ return '$' + (value / 1000).toFixed(0) + 'k';
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
441
+ });
442
+
443
+ // Monthly Returns Chart
444
+ const returnsCtx = document.getElementById('returnsChart').getContext('2d');
445
+ new Chart(returnsCtx, {
446
+ type: 'bar',
447
+ data: {
448
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
449
+ datasets: [{
450
+ label: 'Monthly Return %',
451
+ data: [3.0, -6.7, 10.9, 4.5, -2.5, 7.5, 3.9, -2.9, 4.8],
452
+ backgroundColor: [
453
+ '#22c55e', '#ef4444', '#22c55e', '#22c55e', '#ef4444',
454
+ '#22c55e', '#22c55e', '#ef4444', '#22c55e'
455
+ ],
456
+ borderWidth: 0
457
+ }]
458
+ },
459
+ options: {
460
+ responsive: true,
461
+ maintainAspectRatio: false,
462
+ plugins: {
463
+ legend: { display: false },
464
+ tooltip: {
465
+ backgroundColor: 'rgba(8, 47, 73, 0.9)',
466
+ titleColor: '#fff',
467
+ bodyColor: '#fff',
468
+ borderColor: '#0ea5e9',
469
+ borderWidth: 1,
470
+ cornerRadius: 8,
471
+ callbacks: {
472
+ label: function(context) {
473
+ return context.parsed.y + '%';
474
+ }
475
+ }
476
+ }
477
+ },
478
+ scales: {
479
+ x: {
480
+ grid: { display: false },
481
+ ticks: { color: '#9ca3af' }
482
+ },
483
+ y: {
484
+ grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
485
+ ticks: {
486
+ color: '#9ca3af',
487
+ callback: function(value) {
488
+ return value + '%';
489
+ }
490
+ }
491
+ }
492
+ }
493
+ }
494
+ });
495
+
496
+ // Trading Hours Chart
497
+ const hoursCtx = document.getElementById('hoursChart').getContext('2d');
498
+ const hoursGradient = hoursCtx.createLinearGradient(0, 0, 0, 200);
499
+ hoursGradient.addColorStop(0, 'rgba(14, 165, 233, 0.6)');
500
+ hoursGradient.addColorStop(1, 'rgba(14, 165, 233, 0.1)');
501
+
502
+ new Chart(hoursCtx, {
503
+ type: 'radar',
504
+ data: {
505
+ labels: ['Tokyo', 'London', 'New York', 'Sydney', 'Frankfurt', 'Hong Kong'],
506
+ datasets: [{
507
+ label: 'Win Rate %',
508
+ data: [65, 78, 82, 58, 71, 63],
509
+ backgroundColor: hoursGradient,
510
+ borderColor: '#0ea5e9',
511
+ borderWidth: 2,
512
+ pointBackgroundColor: '#0ea5e9',
513
+ pointBorderColor: '#fff',
514
+ pointHoverBackgroundColor: '#fff',
515
+ pointHoverBorderColor: '#0ea5e9'
516
+ }]
517
+ },
518
+ options: {
519
+ responsive: true,
520
+ maintainAspectRatio: false,
521
+ plugins: {
522
+ legend: { display: false },
523
+ tooltip: {
524
+ backgroundColor: 'rgba(8, 47, 73, 0.9)',
525
+ titleColor: '#fff',
526
+ bodyColor: '#fff',
527
+ borderColor: '#0ea5e9',
528
+ borderWidth: 1,
529
+ cornerRadius: 8
530
+ }
531
+ },
532
+ scales: {
533
+ r: {
534
+ grid: { color: 'rgba(255, 255, 255, 0.1)' },
535
+ pointLabels: { color: '#9ca3af' },
536
+ ticks: {
537
+ color: '#9ca3af',
538
+ backdropColor: 'transparent'
539
+ },
540
+ angleLines: { color: 'rgba(255, 255, 255, 0.1)' }
541
+ }
542
+ }
543
+ }
544
+ });
545
+
546
+ // Animate elements
547
+ anime({
548
+ targets: '.metric-card',
549
+ translateY: [30, 0],
550
+ opacity: [0, 1],
551
+ delay: anime.stagger(100),
552
+ duration: 800,
553
+ easing: 'easeOutQuad'
554
+ });
555
+ </script>
556
+ </body>
557
+ </html>
index.html CHANGED
@@ -1,19 +1,406 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>TradeFlow Pro Infinity - Quantum Trading OS</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ 'quantum': {
20
+ 50: '#f0f9ff',
21
+ 100: '#e0f2fe',
22
+ 200: '#bae6fd',
23
+ 300: '#7dd3fc',
24
+ 400: '#38bdf8',
25
+ 500: '#0ea5e9',
26
+ 600: '#0284c7',
27
+ 700: '#0369a1',
28
+ 800: '#075985',
29
+ 900: '#0c4a6e',
30
+ 950: '#082f49'
31
+ },
32
+ 'neon': {
33
+ 50: '#f0fdf4',
34
+ 100: '#dcfce7',
35
+ 200: '#bbf7d0',
36
+ 300: '#86efac',
37
+ 400: '#4ade80',
38
+ 500: '#22c55e',
39
+ 600: '#16a34a',
40
+ 700: '#15803d',
41
+ 800: '#166534',
42
+ 900: '#14532d',
43
+ 950: '#052e16'
44
+ }
45
+ },
46
+ animation: {
47
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
48
+ 'float': 'float 6s ease-in-out infinite',
49
+ 'glow': 'glow 2s ease-in-out infinite alternate',
50
+ },
51
+ keyframes: {
52
+ float: {
53
+ '0%, 100%': { transform: 'translateY(0px)' },
54
+ '50%': { transform: 'translateY(-20px)' },
55
+ },
56
+ glow: {
57
+ 'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
58
+ 'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ </script>
65
+ <style>
66
+ .quantum-gradient {
67
+ background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
68
+ }
69
+ .glass-effect {
70
+ backdrop-filter: blur(10px);
71
+ background: rgba(8, 47, 73, 0.3);
72
+ border: 1px solid rgba(14, 165, 233, 0.2);
73
+ }
74
+ .quantum-card {
75
+ background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
76
+ border: 1px solid rgba(14, 165, 233, 0.3);
77
+ box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
78
+ }
79
+ .neon-glow {
80
+ box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
81
+ }
82
+ .holographic-text {
83
+ background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
84
+ background-size: 200% 200%;
85
+ -webkit-background-clip: text;
86
+ -webkit-text-fill-color: transparent;
87
+ animation: shimmer 3s ease-in-out infinite;
88
+ }
89
+ @keyframes shimmer {
90
+ 0%, 100% { background-position: 0% 50%; }
91
+ 50% { background-position: 100% 50%; }
92
+ }
93
+ </style>
94
+ </head>
95
+ <body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
96
+ <!-- Vanta.js Background -->
97
+ <div id="vanta-bg" class="fixed inset-0 z-0"></div>
98
+
99
+ <!-- Navigation -->
100
+ <nav class="relative z-50 glass-effect border-b border-quantum-700/30">
101
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
102
+ <div class="flex items-center justify-between h-16">
103
+ <div class="flex items-center space-x-4">
104
+ <div class="flex-shrink-0">
105
+ <h1 class="text-2xl font-bold holographic-text">TradeFlow Pro ∞</h1>
106
+ </div>
107
+ <div class="hidden md:block">
108
+ <div class="ml-10 flex items-baseline space-x-4">
109
+ <a href="#" class="quantum-gradient px-3 py-2 rounded-md text-sm font-medium hover:opacity-80 transition-opacity">Dashboard</a>
110
+ <a href="trading.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Trading</a>
111
+ <a href="analytics.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Analytics</a>
112
+ <a href="portfolio.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Portfolio</a>
113
+ <a href="ai-advisor.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">AI Advisor</a>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ <div class="flex items-center space-x-4">
118
+ <button class="quantum-gradient p-2 rounded-full hover:animate-glow">
119
+ <i data-feather="bell" class="w-5 h-5"></i>
120
+ </button>
121
+ <div class="relative">
122
+ <button class="flex items-center space-x-2 quantum-gradient px-3 py-2 rounded-lg hover:opacity-80 transition-opacity">
123
+ <div class="w-2 h-2 bg-neon-500 rounded-full animate-pulse"></div>
124
+ <span class="text-sm">Connected</span>
125
+ </button>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </nav>
131
+
132
+ <!-- Main Content -->
133
+ <main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
134
+ <!-- Welcome Section -->
135
+ <div class="mb-8">
136
+ <h2 class="text-4xl font-bold mb-2 holographic-text">Welcome to the Quantum Realm</h2>
137
+ <p class="text-gray-400">Your AI-powered trading singularity awaits</p>
138
+ </div>
139
+
140
+ <!-- Stats Grid -->
141
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
142
+ <div class="quantum-card rounded-xl p-6 hover:scale-105 transition-transform duration-300">
143
+ <div class="flex items-center justify-between mb-4">
144
+ <div class="p-3 bg-quantum-600/30 rounded-lg">
145
+ <i data-feather="trending-up" class="w-6 h-6 text-neon-500"></i>
146
+ </div>
147
+ <span class="text-sm text-gray-400">Today</span>
148
+ </div>
149
+ <h3 class="text-2xl font-bold mb-1">+$12,847</h3>
150
+ <p class="text-neon-500 text-sm">+3.2% Portfolio Growth</p>
151
+ </div>
152
+
153
+ <div class="quantum-card rounded-xl p-6 hover:scale-105 transition-transform duration-300">
154
+ <div class="flex items-center justify-between mb-4">
155
+ <div class="p-3 bg-quantum-600/30 rounded-lg">
156
+ <i data-feather="activity" class="w-6 h-6 text-quantum-400"></i>
157
+ </div>
158
+ <span class="text-sm text-gray-400">Active</span>
159
+ </div>
160
+ <h3 class="text-2xl font-bold mb-1">7</h3>
161
+ <p class="text-quantum-400 text-sm">ATAs Running</p>
162
+ </div>
163
+
164
+ <div class="quantum-card rounded-xl p-6 hover:scale-105 transition-transform duration-300">
165
+ <div class="flex items-center justify-between mb-4">
166
+ <div class="p-3 bg-quantum-600/30 rounded-lg">
167
+ <i data-feather="shield" class="w-6 h-6 text-yellow-500"></i>
168
+ </div>
169
+ <span class="text-sm text-gray-400">Risk Level</span>
170
+ </div>
171
+ <h3 class="text-2xl font-bold mb-1">Low</h3>
172
+ <p class="text-yellow-500 text-sm">VaR: 2.1%</p>
173
+ </div>
174
+
175
+ <div class="quantum-card rounded-xl p-6 hover:scale-105 transition-transform duration-300">
176
+ <div class="flex items-center justify-between mb-4">
177
+ <div class="p-3 bg-quantum-600/30 rounded-lg">
178
+ <i data-feather="zap" class="w-6 h-6 text-purple-500"></i>
179
+ </div>
180
+ <span class="text-sm text-gray-400">Quantum Score</span>
181
+ </div>
182
+ <h3 class="text-2xl font-bold mb-1">94.7</h3>
183
+ <p class="text-purple-500 text-sm">AI Confidence</p>
184
+ </div>
185
+ </div>
186
+
187
+ <!-- Main Dashboard Grid -->
188
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
189
+ <!-- Trading Chart -->
190
+ <div class="lg:col-span-2 quantum-card rounded-xl p-6">
191
+ <div class="flex items-center justify-between mb-4">
192
+ <h3 class="text-xl font-semibold">Quantum Chart Analysis</h3>
193
+ <div class="flex space-x-2">
194
+ <button class="px-3 py-1 bg-quantum-600/30 rounded-lg text-sm hover:bg-quantum-600/50 transition-colors">EUR/USD</button>
195
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">BTC/USD</button>
196
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">GOLD</button>
197
+ </div>
198
+ </div>
199
+ <div class="h-64 bg-gray-900/50 rounded-lg flex items-center justify-center relative overflow-hidden">
200
+ <div class="absolute inset-0 bg-gradient-to-r from-quantum-500/20 to-neon-500/20 animate-pulse-slow"></div>
201
+ <div class="text-center z-10">
202
+ <i data-feather="bar-chart-2" class="w-16 h-16 text-quantum-400 mb-4 animate-float"></i>
203
+ <p class="text-gray-400">Holographic chart loading...</p>
204
+ <div class="mt-4 flex justify-center space-x-2">
205
+ <div class="w-2 h-2 bg-quantum-400 rounded-full animate-bounce"></div>
206
+ <div class="w-2 h-2 bg-quantum-400 rounded-full animate-bounce" style="animation-delay: 0.1s"></div>
207
+ <div class="w-2 h-2 bg-quantum-400 rounded-full animate-bounce" style="animation-delay: 0.2s"></div>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- AI Advisor -->
214
+ <div class="quantum-card rounded-xl p-6">
215
+ <div class="flex items-center justify-between mb-4">
216
+ <h3 class="text-xl font-semibold">AI Copilot</h3>
217
+ <div class="w-3 h-3 bg-neon-500 rounded-full animate-pulse"></div>
218
+ </div>
219
+ <div class="space-y-4">
220
+ <div class="glass-effect rounded-lg p-4">
221
+ <div class="flex items-start space-x-3">
222
+ <div class="w-8 h-8 bg-quantum-600 rounded-full flex items-center justify-center flex-shrink-0">
223
+ <i data-feather="cpu" class="w-4 h-4"></i>
224
+ </div>
225
+ <div>
226
+ <p class="text-sm text-gray-300">Detected harmonic pattern on GBP/JPY</p>
227
+ <p class="text-xs text-quantum-400 mt-1">85% confidence - Bullish Gartley</p>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ <div class="glass-effect rounded-lg p-4">
232
+ <div class="flex items-start space-x-3">
233
+ <div class="w-8 h-8 bg-yellow-600 rounded-full flex items-center justify-center flex-shrink-0">
234
+ <i data-feather="alert-triangle" class="w-4 h-4"></i>
235
+ </div>
236
+ <div>
237
+ <p class="text-sm text-gray-300">Risk exposure elevated</p>
238
+ <p class="text-xs text-yellow-400 mt-1">Consider reducing position size</p>
239
+ </div>
240
+ </div>
241
+ </div>
242
+ <div class="glass-effect rounded-lg p-4">
243
+ <div class="flex items-start space-x-3">
244
+ <div class="w-8 h-8 bg-neon-600 rounded-full flex items-center justify-center flex-shrink-0">
245
+ <i data-feather="trending-up" class="w-4 h-4"></i>
246
+ </div>
247
+ <div>
248
+ <p class="text-sm text-gray-300">ATA-7 optimized parameters</p>
249
+ <p class="text-xs text-neon-400 mt-1">Expected alpha: +12.3%</p>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ </div>
255
+
256
+ <!-- Active Trades -->
257
+ <div class="lg:col-span-2 quantum-card rounded-xl p-6">
258
+ <div class="flex items-center justify-between mb-4">
259
+ <h3 class="text-xl font-semibold">Active Quantum Positions</h3>
260
+ <button class="text-quantum-400 hover:text-quantum-300 transition-colors">
261
+ <i data-feather="plus-circle" class="w-5 h-5"></i>
262
+ </button>
263
+ </div>
264
+ <div class="overflow-x-auto">
265
+ <table class="w-full">
266
+ <thead>
267
+ <tr class="text-left text-gray-400 text-sm">
268
+ <th class="pb-3">Asset</th>
269
+ <th class="pb-3">Type</th>
270
+ <th class="pb-3">Size</th>
271
+ <th class="pb-3">P&L</th>
272
+ <th class="pb-3">ATA</th>
273
+ </tr>
274
+ </thead>
275
+ <tbody class="text-sm">
276
+ <tr class="border-t border-gray-800">
277
+ <td class="py-3">EUR/USD</td>
278
+ <td class="py-3">BUY</td>
279
+ <td class="py-3">2.5 lots</td>
280
+ <td class="py-3 text-neon-500">+$847</td>
281
+ <td class="py-3">ATA-3</td>
282
+ </tr>
283
+ <tr class="border-t border-gray-800">
284
+ <td class="py-3">BTC/USD</td>
285
+ <td class="py-3">SELL</td>
286
+ <td class="py-3">0.5 lots</td>
287
+ <td class="py-3 text-red-500">-$234</td>
288
+ <td class="py-3">ATA-7</td>
289
+ </tr>
290
+ <tr class="border-t border-gray-800">
291
+ <td class="py-3">GOLD</td>
292
+ <td class="py-3">BUY</td>
293
+ <td class="py-3">1.0 lots</td>
294
+ <td class="py-3 text-neon-500">+$1,234</td>
295
+ <td class="py-3">ATA-1</td>
296
+ </tr>
297
+ </tbody>
298
+ </table>
299
+ </div>
300
+ </div>
301
+
302
+ <!-- Market Sentiment -->
303
+ <div class="quantum-card rounded-xl p-6">
304
+ <h3 class="text-xl font-semibold mb-4">Quantum Sentiment</h3>
305
+ <div class="space-y-4">
306
+ <div>
307
+ <div class="flex justify-between text-sm mb-2">
308
+ <span>Fear & Greed Index</span>
309
+ <span class="text-neon-500">72 (Greed)</span>
310
+ </div>
311
+ <div class="w-full bg-gray-700 rounded-full h-2">
312
+ <div class="bg-gradient-to-r from-red-500 to-neon-500 h-2 rounded-full" style="width: 72%"></div>
313
+ </div>
314
+ </div>
315
+ <div>
316
+ <div class="flex justify-between text-sm mb-2">
317
+ <span>Quantum Volatility</span>
318
+ <span class="text-quantum-400">Low</span>
319
+ </div>
320
+ <div class="w-full bg-gray-700 rounded-full h-2">
321
+ <div class="bg-quantum-500 h-2 rounded-full" style="width: 25%"></div>
322
+ </div>
323
+ </div>
324
+ <div>
325
+ <div class="flex justify-between text-sm mb-2">
326
+ <span>Correlation Risk</span>
327
+ <span class="text-yellow-500">Medium</span>
328
+ </div>
329
+ <div class="w-full bg-gray-700 rounded-full h-2">
330
+ <div class="bg-yellow-500 h-2 rounded-full" style="width: 55%"></div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </main>
337
+
338
+ <!-- Bottom Navigation for Mobile -->
339
+ <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
340
+ <div class="grid grid-cols-5 py-2">
341
+ <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
342
+ <i data-feather="home" class="w-5 h-5"></i>
343
+ <span class="text-xs">Home</span>
344
+ </button>
345
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
346
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
347
+ <span class="text-xs">Trade</span>
348
+ </button>
349
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
350
+ <i data-feather="activity" class="w-5 h-5"></i>
351
+ <span class="text-xs">Analytics</span>
352
+ </button>
353
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
354
+ <i data-feather="pie-chart" class="w-5 h-5"></i>
355
+ <span class="text-xs">Portfolio</span>
356
+ </button>
357
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
358
+ <i data-feather="cpu" class="w-5 h-5"></i>
359
+ <span class="text-xs">AI</span>
360
+ </button>
361
+ </div>
362
+ </nav>
363
+
364
+ <script>
365
+ // Initialize Vanta.js background
366
+ VANTA.NET({
367
+ el: "#vanta-bg",
368
+ mouseControls: true,
369
+ touchControls: true,
370
+ gyroControls: false,
371
+ minHeight: 200.00,
372
+ minWidth: 200.00,
373
+ scale: 1.00,
374
+ scaleMobile: 1.00,
375
+ color: 0x0ea5e9,
376
+ backgroundColor: 0x0c4a6e,
377
+ points: 10.00,
378
+ maxDistance: 25.00,
379
+ spacing: 18.00
380
+ });
381
+
382
+ // Initialize Feather Icons
383
+ feather.replace();
384
+
385
+ // Animate elements on load
386
+ anime({
387
+ targets: '.quantum-card',
388
+ translateY: [50, 0],
389
+ opacity: [0, 1],
390
+ delay: anime.stagger(100),
391
+ duration: 800,
392
+ easing: 'easeOutQuad'
393
+ });
394
+
395
+ // Animate stats numbers
396
+ anime({
397
+ targets: 'h3',
398
+ innerHTML: [0, el => el.innerHTML],
399
+ delay: 500,
400
+ duration: 1500,
401
+ round: 1,
402
+ easing: 'easeInOutExpo'
403
+ });
404
+ </script>
405
+ </body>
406
  </html>
portfolio.html ADDED
@@ -0,0 +1,571 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Quantum Portfolio - TradeFlow Pro Infinity</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ 'quantum': {
20
+ 50: '#f0f9ff',
21
+ 100: '#e0f2fe',
22
+ 200: '#bae6fd',
23
+ 300: '#7dd3fc',
24
+ 400: '#38bdf8',
25
+ 500: '#0ea5e9',
26
+ 600: '#0284c7',
27
+ 700: '#0369a1',
28
+ 800: '#075985',
29
+ 900: '#0c4a6e',
30
+ 950: '#082f49'
31
+ },
32
+ 'neon': {
33
+ 50: '#f0fdf4',
34
+ 100: '#dcfce7',
35
+ 200: '#bbf7d0',
36
+ 300: '#86efac',
37
+ 400: '#4ade80',
38
+ 500: '#22c55e',
39
+ 600: '#16a34a',
40
+ 700: '#15803d',
41
+ 800: '#166534',
42
+ 900: '#14532d',
43
+ 950: '#052e16'
44
+ }
45
+ },
46
+ animation: {
47
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
48
+ 'float': 'float 6s ease-in-out infinite',
49
+ 'glow': 'glow 2s ease-in-out infinite alternate',
50
+ },
51
+ keyframes: {
52
+ float: {
53
+ '0%, 100%': { transform: 'translateY(0px)' },
54
+ '50%': { transform: 'translateY(-20px)' },
55
+ },
56
+ glow: {
57
+ 'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
58
+ 'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ </script>
65
+ <style>
66
+ .quantum-gradient {
67
+ background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
68
+ }
69
+ .glass-effect {
70
+ backdrop-filter: blur(10px);
71
+ background: rgba(8, 47, 73, 0.3);
72
+ border: 1px solid rgba(14, 165, 233, 0.2);
73
+ }
74
+ .quantum-card {
75
+ background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
76
+ border: 1px solid rgba(14, 165, 233, 0.3);
77
+ box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
78
+ }
79
+ .neon-glow {
80
+ box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
81
+ }
82
+ .holographic-text {
83
+ background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
84
+ background-size: 200% 200%;
85
+ -webkit-background-clip: text;
86
+ -webkit-text-fill-color: transparent;
87
+ animation: shimmer 3s ease-in-out infinite;
88
+ }
89
+ @keyframes shimmer {
90
+ 0%, 100% { background-position: 0% 50%; }
91
+ 50% { background-position: 100% 50%; }
92
+ }
93
+ .portfolio-item {
94
+ transition: all 0.3s ease;
95
+ }
96
+ .portfolio-item:hover {
97
+ transform: translateX(5px);
98
+ background: rgba(14, 165, 233, 0.1);
99
+ }
100
+ </style>
101
+ </head>
102
+ <body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
103
+ <!-- Navigation -->
104
+ <nav class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-quantum-700/30">
105
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
106
+ <div class="flex items-center justify-between h-16">
107
+ <div class="flex items-center space-x-4">
108
+ <a href="index.html" class="text-gray-300 hover:text-white transition-colors">
109
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
110
+ </a>
111
+ <h1 class="text-xl font-bold holographic-text">Quantum Portfolio</h1>
112
+ </div>
113
+ <div class="flex items-center space-x-4">
114
+ <button class="glass-effect px-4 py-2 rounded-lg text-sm hover:bg-quantum-600/30 transition-colors">
115
+ <i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
116
+ Add Asset
117
+ </button>
118
+ <button class="quantum-gradient px-4 py-2 rounded-lg text-sm hover:opacity-80 transition-opacity">
119
+ Rebalance
120
+ </button>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </nav>
125
+
126
+ <!-- Main Content -->
127
+ <main class="pt-16 pb-20 md:pb-8">
128
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
129
+ <!-- Portfolio Overview -->
130
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
131
+ <!-- Total Value -->
132
+ <div class="quantum-card rounded-xl p-6">
133
+ <div class="flex items-center justify-between mb-4">
134
+ <p class="text-sm text-gray-400">Total Portfolio Value</p>
135
+ <i data-feather="dollar-sign" class="w-5 h-5 text-neon-500"></i>
136
+ </div>
137
+ <p class="text-3xl font-bold mb-2">$623,450</p>
138
+ <p class="text-sm text-neon-500">+$47,250 (+8.2%) <span class="text-xs">24h</span></p>
139
+ <div class="mt-4 flex space-x-4 text-xs">
140
+ <div>
141
+ <p class="text-gray-400">Invested</p>
142
+ <p class="text-white">$550,000</p>
143
+ </div>
144
+ <div>
145
+ <p class="text-gray-400">Unrealized P&L</p>
146
+ <p class="text-neon-500">+$73,450</p>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+ <!-- Asset Allocation -->
152
+ <div class="quantum-card rounded-xl p-6">
153
+ <div class="flex items-center justify-between mb-4">
154
+ <p class="text-sm text-gray-400">Asset Allocation</p>
155
+ <i data-feather="pie-chart" class="w-5 h-5 text-quantum-400"></i>
156
+ </div>
157
+ <div class="h-32 mb-4">
158
+ <canvas id="allocationChart"></canvas>
159
+ </div>
160
+ <div class="space-y-2 text-sm">
161
+ <div class="flex justify-between">
162
+ <div class="flex items-center space-x-2">
163
+ <div class="w-3 h-3 bg-neon-500 rounded-full"></div>
164
+ <span>Forex</span>
165
+ </div>
166
+ <span>45%</span>
167
+ </div>
168
+ <div class="flex justify-between">
169
+ <div class="flex items-center space-x-2">
170
+ <div class="w-3 h-3 bg-quantum-500 rounded-full"></div>
171
+ <span>Cryptocurrency</span>
172
+ </div>
173
+ <span>25%</span>
174
+ </div>
175
+ <div class="flex justify-between">
176
+ <div class="flex items-center space-x-2">
177
+ <div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
178
+ <span>Commodities</span>
179
+ </div>
180
+ <span>20%</span>
181
+ </div>
182
+ <div class="flex justify-between">
183
+ <div class="flex items-center space-x-2">
184
+ <div class="w-3 h-3 bg-purple-500 rounded-full"></div>
185
+ <span>Indices</span>
186
+ </div>
187
+ <span>10%</span>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Performance Metrics -->
193
+ <div class="quantum-card rounded-xl p-6">
194
+ <div class="flex items-center justify-between mb-4">
195
+ <p class="text-sm text-gray-400">Performance</p>
196
+ <i data-feather="trending-up" class="w-5 h-5 text-neon-500"></i>
197
+ </div>
198
+ <div class="space-y-3">
199
+ <div>
200
+ <div class="flex justify-between text-sm mb-1">
201
+ <span class="text-gray-400">Total Return</span>
202
+ <span class="text-neon-500">+24.7%</span>
203
+ </div>
204
+ <div class="w-full bg-gray-700 rounded-full h-2">
205
+ <div class="bg-neon-500 h-2 rounded-full" style="width: 75%"></div>
206
+ </div>
207
+ </div>
208
+ <div>
209
+ <div class="flex justify-between text-sm mb-1">
210
+ <span class="text-gray-400">Sharpe Ratio</span>
211
+ <span class="text-quantum-400">1.84</span>
212
+ </div>
213
+ <div class="w-full bg-gray-700 rounded-full h-2">
214
+ <div class="bg-quantum-500 h-2 rounded-full" style="width: 65%"></div>
215
+ </div>
216
+ </div>
217
+ <div>
218
+ <div class="flex justify-between text-sm mb-1">
219
+ <span class="text-gray-400">Max Drawdown</span>
220
+ <span class="text-red-500">-8.2%</span>
221
+ </div>
222
+ <div class="w-full bg-gray-700 rounded-full h-2">
223
+ <div class="bg-red-500 h-2 rounded-full" style="width: 35%"></div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+
230
+ <!-- Holdings -->
231
+ <div class="quantum-card rounded-xl p-6 mb-6">
232
+ <div class="flex items-center justify-between mb-4">
233
+ <h3 class="text-lg font-semibold">Holdings</h3>
234
+ <div class="flex space-x-2">
235
+ <button class="px-3 py-1 bg-quantum-600/30 rounded-lg text-sm hover:bg-quantum-600/50 transition-colors">All</button>
236
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">Profitable</button>
237
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">Losing</button>
238
+ </div>
239
+ </div>
240
+ <div class="overflow-x-auto">
241
+ <table class="w-full">
242
+ <thead>
243
+ <tr class="text-left text-gray-400 text-sm border-b border-gray-800">
244
+ <th class="pb-3">Asset</th>
245
+ <th class="pb-3">Quantity</th>
246
+ <th class="pb-3">Value</th>
247
+ <th class="pb-3">P&L</th>
248
+ <th class="pb-3">Allocation</th>
249
+ <th class="pb-3">Actions</th>
250
+ </tr>
251
+ </thead>
252
+ <tbody>
253
+ <tr class="portfolio-item border-b border-gray-800">
254
+ <td class="py-4">
255
+ <div class="flex items-center space-x-3">
256
+ <div class="w-10 h-10 bg-neon-500/20 rounded-lg flex items-center justify-center">
257
+ <i data-feather="dollar-sign" class="w-5 h-5 text-neon-500"></i>
258
+ </div>
259
+ <div>
260
+ <p class="font-semibold">EUR/USD</p>
261
+ <p class="text-xs text-gray-400">Forex</p>
262
+ </div>
263
+ </div>
264
+ </td>
265
+ <td class="py-4">2.5 lots</td>
266
+ <td class="py-4">$280,550</td>
267
+ <td class="py-4 text-neon-500">+$34,750</td>
268
+ <td class="py-4">
269
+ <div class="w-full bg-gray-700 rounded-full h-2">
270
+ <div class="bg-neon-500 h-2 rounded-full" style="width: 45%"></div>
271
+ </div>
272
+ </td>
273
+ <td class="py-4">
274
+ <div class="flex space-x-2">
275
+ <button class="p-2 glass-effect rounded hover:bg-quantum-600/30 transition-colors">
276
+ <i data-feather="edit-2" class="w-4 h-4"></i>
277
+ </button>
278
+ <button class="p-2 glass-effect rounded hover:bg-red-600/30 transition-colors">
279
+ <i data-feather="x" class="w-4 h-4"></i>
280
+ </button>
281
+ </div>
282
+ </td>
283
+ </tr>
284
+ <tr class="portfolio-item border-b border-gray-800">
285
+ <td class="py-4">
286
+ <div class="flex items-center space-x-3">
287
+ <div class="w-10 h-10 bg-quantum-500/20 rounded-lg flex items-center justify-center">
288
+ <i data-feather="bitcoin" class="w-5 h-5 text-quantum-400"></i>
289
+ </div>
290
+ <div>
291
+ <p class="font-semibold">BTC/USD</p>
292
+ <p class="text-xs text-gray-400">Cryptocurrency</p>
293
+ </div>
294
+ </div>
295
+ </td>
296
+ <td class="py-4">0.85 lots</td>
297
+ <td class="py-4">$155,875</td>
298
+ <td class="py-4 text-neon-500">+$18,425</td>
299
+ <td class="py-4">
300
+ <div class="w-full bg-gray-700 rounded-full h-2">
301
+ <div class="bg-quantum-500 h-2 rounded-full" style="width: 25%"></div>
302
+ </div>
303
+ </td>
304
+ <td class="py-4">
305
+ <div class="flex space-x-2">
306
+ <button class="p-2 glass-effect rounded hover:bg-quantum-600/30 transition-colors">
307
+ <i data-feather="edit-2" class="w-4 h-4"></i>
308
+ </button>
309
+ <button class="p-2 glass-effect rounded hover:bg-red-600/30 transition-colors">
310
+ <i data-feather="x" class="w-4 h-4"></i>
311
+ </button>
312
+ </div>
313
+ </td>
314
+ </tr>
315
+ <tr class="portfolio-item border-b border-gray-800">
316
+ <td class="py-4">
317
+ <div class="flex items-center space-x-3">
318
+ <div class="w-10 h-10 bg-yellow-500/20 rounded-lg flex items-center justify-center">
319
+ <i data-feather="award" class="w-5 h-5 text-yellow-500"></i>
320
+ </div>
321
+ <div>
322
+ <p class="font-semibold">GOLD</p>
323
+ <p class="text-xs text-gray-400">Commodity</p>
324
+ </div>
325
+ </div>
326
+ </td>
327
+ <td class="py-4">1.2 lots</td>
328
+ <td class="py-4">$124,700</td>
329
+ <td class="py-4 text-neon-500">+$12,300</td>
330
+ <td class="py-4">
331
+ <div class="w-full bg-gray-700 rounded-full h-2">
332
+ <div class="bg-yellow-500 h-2 rounded-full" style="width: 20%"></div>
333
+ </div>
334
+ </td>
335
+ <td class="py-4">
336
+ <div class="flex space-x-2">
337
+ <button class="p-2 glass-effect rounded hover:bg-quantum-600/30 transition-colors">
338
+ <i data-feather="edit-2" class="w-4 h-4"></i>
339
+ </button>
340
+ <button class="p-2 glass-effect rounded hover:bg-red-600/30 transition-colors">
341
+ <i data-feather="x" class="w-4 h-4"></i>
342
+ </button>
343
+ </div>
344
+ </td>
345
+ </tr>
346
+ <tr class="portfolio-item">
347
+ <td class="py-4">
348
+ <div class="flex items-center space-x-3">
349
+ <div class="w-10 h-10 bg-purple-500/20 rounded-lg flex items-center justify-center">
350
+ <i data-feather="bar-chart" class="w-5 h-5 text-purple-500"></i>
351
+ </div>
352
+ <div>
353
+ <p class="font-semibold">S&P 500</p>
354
+ <p class="text-xs text-gray-400">Index</p>
355
+ </div>
356
+ </div>
357
+ </td>
358
+ <td class="py-4">0.5 lots</td>
359
+ <td class="py-4">$62,325</td>
360
+ <td class="py-4 text-red-500">-$2,025</td>
361
+ <td class="py-4">
362
+ <div class="w-full bg-gray-700 rounded-full h-2">
363
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 10%"></div>
364
+ </div>
365
+ </td>
366
+ <td class="py-4">
367
+ <div class="flex space-x-2">
368
+ <button class="p-2 glass-effect rounded hover:bg-quantum-600/30 transition-colors">
369
+ <i data-feather="edit-2" class="w-4 h-4"></i>
370
+ </button>
371
+ <button class="p-2 glass-effect rounded hover:bg-red-600/30 transition-colors">
372
+ <i data-feather="x" class="w-4 h-4"></i>
373
+ </button>
374
+ </div>
375
+ </td>
376
+ </tr>
377
+ </tbody>
378
+ </table>
379
+ </div>
380
+ </div>
381
+
382
+ <!-- Multi-Chain Assets -->
383
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
384
+ <!-- DeFi Positions -->
385
+ <div class="quantum-card rounded-xl p-6">
386
+ <div class="flex items-center justify-between mb-4">
387
+ <h3 class="text-lg font-semibold">DeFi Positions</h3>
388
+ <i data-feather="zap" class="w-5 h-5 text-purple-500"></i>
389
+ </div>
390
+ <div class="space-y-4">
391
+ <div class="glass-effect rounded-lg p-4">
392
+ <div class="flex items-center justify-between mb-2">
393
+ <div>
394
+ <p class="font-semibold">Uniswap ETH/USDT</p>
395
+ <p class="text-xs text-gray-400">Yield Farming</p>
396
+ </div>
397
+ <span class="text-sm text-neon-500">APY 24.7%</span>
398
+ </div>
399
+ <div class="flex justify-between text-sm">
400
+ <span class="text-gray-400">Value: $45,200</span>
401
+ <span class="text-neon-500">+$3,850</span>
402
+ </div>
403
+ </div>
404
+ <div class="glass-effect rounded-lg p-4">
405
+ <div class="flex items-center justify-between mb-2">
406
+ <div>
407
+ <p class="font-semibold">Aave Lending</p>
408
+ <p class="text-xs text-gray-400">USDC Supply</p>
409
+ </div>
410
+ <span class="text-sm text-quantum-400">APY 8.5%</span>
411
+ </div>
412
+ <div class="flex justify-between text-sm">
413
+ <span class="text-gray-400">Value: $28,750</span>
414
+ <span class="text-neon-500">+$1,240</span>
415
+ </div>
416
+ </div>
417
+ <div class="glass-effect rounded-lg p-4">
418
+ <div class="flex items-center justify-between mb-2">
419
+ <div>
420
+ <p class="font-semibold">Curve stETH</p>
421
+ <p class="text-xs text-gray-400">Liquid Staking</p>
422
+ </div>
423
+ <span class="text-sm text-yellow-500">APY 12.3%</span>
424
+ </div>
425
+ <div class="flex justify-between text-sm">
426
+ <span class="text-gray-400">Value: $32,100</span>
427
+ <span class="text-neon-500">+$2,670</span>
428
+ </div>
429
+ </div>
430
+ </div>
431
+ </div>
432
+
433
+ <!-- NFT Collection -->
434
+ <div class="quantum-card rounded-xl p-6">
435
+ <div class="flex items-center justify-between mb-4">
436
+ <h3 class="text-lg font-semibold">Digital Assets</h3>
437
+ <i data-feather="image" class="w-5 h-5 text-pink-500"></i>
438
+ </div>
439
+ <div class="space-y-4">
440
+ <div class="glass-effect rounded-lg p-4">
441
+ <div class="flex items-center space-x-4">
442
+ <div class="w-16 h-16 bg-gradient-to-br from-purple-500 to-pink-500 rounded-lg"></div>
443
+ <div class="flex-1">
444
+ <p class="font-semibold">CryptoPunk #7854</p>
445
+ <p class="text-xs text-gray-400">Ethereum NFT</p>
446
+ </div>
447
+ <div class="text-right">
448
+ <p class="text-sm text-neon-500">$125,000</p>
449
+ <p class="text-xs text-gray-400">Floor: 95Ξ</p>
450
+ </div>
451
+ </div>
452
+ </div>
453
+ <div class="glass-effect rounded-lg p-4">
454
+ <div class="flex items-center space-x-4">
455
+ <div class="w-16 h-16 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-lg"></div>
456
+ <div class="flex-1">
457
+ <p class="font-semibold">Bored Ape #3421</p>
458
+ <p class="text-xs text-gray-400">Ethereum NFT</p>
459
+ </div>
460
+ <div class="text-right">
461
+ <p class="text-sm text-neon-500">$85,000</p>
462
+ <p class="text-xs text-gray-400">Floor: 68Ξ</p>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ <div class="glass-effect rounded-lg p-4">
467
+ <div class="flex items-center space-x-4">
468
+ <div class="w-16 h-16 bg-gradient-to-br from-green-500 to-teal-500 rounded-lg"></div>
469
+ <div class="flex-1">
470
+ <p class="font-semibold">Art Blocks #1567</p>
471
+ <p class="text-xs text-gray-400">Generative Art</p>
472
+ </div>
473
+ <div class="text-right">
474
+ <p class="text-sm text-neon-500">$42,500</p>
475
+ <p class="text-xs text-gray-400">Floor: 15Ξ</p>
476
+ </div>
477
+ </div>
478
+ </div>
479
+ </div>
480
+ </div>
481
+ </div>
482
+ </div>
483
+ </main>
484
+
485
+ <!-- Bottom Navigation for Mobile -->
486
+ <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
487
+ <div class="grid grid-cols-5 py-2">
488
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
489
+ <i data-feather="home" class="w-5 h-5"></i>
490
+ <span class="text-xs">Home</span>
491
+ </button>
492
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
493
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
494
+ <span class="text-xs">Trade</span>
495
+ </button>
496
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
497
+ <i data-feather="activity" class="w-5 h-5"></i>
498
+ <span class="text-xs">Analytics</span>
499
+ </button>
500
+ <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
501
+ <i data-feather="pie-chart" class="w-5 h-5"></i>
502
+ <span class="text-xs">Portfolio</span>
503
+ </button>
504
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
505
+ <i data-feather="cpu" class="w-5 h-5"></i>
506
+ <span class="text-xs">AI</span>
507
+ </button>
508
+ </div>
509
+ </nav>
510
+
511
+ <script>
512
+ // Initialize Feather Icons
513
+ feather.replace();
514
+
515
+ // Allocation Chart
516
+ const allocationCtx = document.getElementById('allocationChart').getContext('2d');
517
+ new Chart(allocationCtx, {
518
+ type: 'doughnut',
519
+ data: {
520
+ labels: ['Forex', 'Crypto', 'Commodities', 'Indices'],
521
+ datasets: [{
522
+ data: [45, 25, 20, 10],
523
+ backgroundColor: ['#22c55e', '#0ea5e9', '#eab308', '#a855f7'],
524
+ borderWidth: 0
525
+ }]
526
+ },
527
+ options: {
528
+ responsive: true,
529
+ maintainAspectRatio: false,
530
+ plugins: {
531
+ legend: { display: false },
532
+ tooltip: {
533
+ backgroundColor: 'rgba(8, 47, 73, 0.9)',
534
+ titleColor: '#fff',
535
+ bodyColor: '#fff',
536
+ borderColor: '#0ea5e9',
537
+ borderWidth: 1,
538
+ cornerRadius: 8,
539
+ callbacks: {
540
+ label: function(context) {
541
+ return context.label + ': ' + context.parsed + '%';
542
+ }
543
+ }
544
+ }
545
+ },
546
+ cutout: '60%'
547
+ }
548
+ });
549
+
550
+ // Animate elements
551
+ anime({
552
+ targets: '.quantum-card',
553
+ translateY: [30, 0],
554
+ opacity: [0, 1],
555
+ delay: anime.stagger(100),
556
+ duration: 800,
557
+ easing: 'easeOutQuad'
558
+ });
559
+
560
+ // Animate portfolio items
561
+ anime({
562
+ targets: '.portfolio-item',
563
+ translateX: [-20, 0],
564
+ opacity: [0, 1],
565
+ delay: anime.stagger(100, {start: 300}),
566
+ duration: 600,
567
+ easing: 'easeOutQuad'
568
+ });
569
+ </script>
570
+ </body>
571
+ </html>
trading.html ADDED
@@ -0,0 +1,492 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Quantum Trading Terminal - TradeFlow Pro Infinity</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ 'quantum': {
20
+ 50: '#f0f9ff',
21
+ 100: '#e0f2fe',
22
+ 200: '#bae6fd',
23
+ 300: '#7dd3fc',
24
+ 400: '#38bdf8',
25
+ 500: '#0ea5e9',
26
+ 600: '#0284c7',
27
+ 700: '#0369a1',
28
+ 800: '#075985',
29
+ 900: '#0c4a6e',
30
+ 950: '#082f49'
31
+ },
32
+ 'neon': {
33
+ 50: '#f0fdf4',
34
+ 100: '#dcfce7',
35
+ 200: '#bbf7d0',
36
+ 300: '#86efac',
37
+ 400: '#4ade80',
38
+ 500: '#22c55e',
39
+ 600: '#16a34a',
40
+ 700: '#15803d',
41
+ 800: '#166534',
42
+ 900: '#14532d',
43
+ 950: '#052e16'
44
+ }
45
+ },
46
+ animation: {
47
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
48
+ 'float': 'float 6s ease-in-out infinite',
49
+ 'glow': 'glow 2s ease-in-out infinite alternate',
50
+ },
51
+ keyframes: {
52
+ float: {
53
+ '0%, 100%': { transform: 'translateY(0px)' },
54
+ '50%': { transform: 'translateY(-20px)' },
55
+ },
56
+ glow: {
57
+ 'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
58
+ 'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ </script>
65
+ <style>
66
+ .quantum-gradient {
67
+ background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
68
+ }
69
+ .glass-effect {
70
+ backdrop-filter: blur(10px);
71
+ background: rgba(8, 47, 73, 0.3);
72
+ border: 1px solid rgba(14, 165, 233, 0.2);
73
+ }
74
+ .quantum-card {
75
+ background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
76
+ border: 1px solid rgba(14, 165, 233, 0.3);
77
+ box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
78
+ }
79
+ .neon-glow {
80
+ box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
81
+ }
82
+ .holographic-text {
83
+ background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
84
+ background-size: 200% 200%;
85
+ -webkit-background-clip: text;
86
+ -webkit-text-fill-color: transparent;
87
+ animation: shimmer 3s ease-in-out infinite;
88
+ }
89
+ @keyframes shimmer {
90
+ 0%, 100% { background-position: 0% 50%; }
91
+ 50% { background-position: 100% 50%; }
92
+ }
93
+ .trading-button {
94
+ transition: all 0.3s ease;
95
+ position: relative;
96
+ overflow: hidden;
97
+ }
98
+ .trading-button:hover {
99
+ transform: translateY(-2px);
100
+ box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
101
+ }
102
+ .trading-button:active {
103
+ transform: translateY(0);
104
+ }
105
+ .order-book-row {
106
+ transition: all 0.2s ease;
107
+ }
108
+ .order-book-row:hover {
109
+ background: rgba(14, 165, 233, 0.1);
110
+ }
111
+ </style>
112
+ </head>
113
+ <body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
114
+ <!-- Navigation -->
115
+ <nav class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-quantum-700/30">
116
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
117
+ <div class="flex items-center justify-between h-16">
118
+ <div class="flex items-center space-x-4">
119
+ <a href="index.html" class="text-gray-300 hover:text-white transition-colors">
120
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
121
+ </a>
122
+ <h1 class="text-xl font-bold holographic-text">Quantum Trading Terminal</h1>
123
+ </div>
124
+ <div class="flex items-center space-x-4">
125
+ <div class="flex items-center space-x-2 text-sm">
126
+ <div class="w-2 h-2 bg-neon-500 rounded-full animate-pulse"></div>
127
+ <span class="text-gray-300">Market Open</span>
128
+ </div>
129
+ <div class="text-sm">
130
+ <span class="text-gray-400">Spread: </span>
131
+ <span class="text-neon-500">0.2 pips</span>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </nav>
137
+
138
+ <!-- Main Trading Interface -->
139
+ <main class="pt-16 pb-20 md:pb-8">
140
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
141
+ <!-- Trading Pair Selector -->
142
+ <div class="flex items-center justify-between mb-4">
143
+ <div class="flex items-center space-x-4">
144
+ <div class="quantum-card rounded-lg p-3">
145
+ <h2 class="text-2xl font-bold">EUR/USD</h2>
146
+ <p class="text-sm text-gray-400">1.0847 <span class="text-neon-500">▲ +0.0012</span></p>
147
+ </div>
148
+ <div class="flex space-x-2">
149
+ <button class="px-3 py-1 bg-quantum-600/30 rounded-lg text-sm hover:bg-quantum-600/50 transition-colors">1m</button>
150
+ <button class="px-3 py-1 bg-quantum-600/30 rounded-lg text-sm hover:bg-quantum-600/50 transition-colors">5m</button>
151
+ <button class="px-3 py-1 bg-quantum-600 rounded-lg text-sm">1H</button>
152
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">4H</button>
153
+ <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700 transition-colors">1D</button>
154
+ </div>
155
+ </div>
156
+ <div class="flex items-center space-x-2">
157
+ <button class="p-2 glass-effect rounded-lg hover:bg-quantum-600/30 transition-colors">
158
+ <i data-feather="grid" class="w-5 h-5"></i>
159
+ </button>
160
+ <button class="p-2 glass-effect rounded-lg hover:bg-quantum-600/30 transition-colors">
161
+ <i data-feather="settings" class="w-5 h-5"></i>
162
+ </button>
163
+ </div>
164
+ </div>
165
+
166
+ <!-- Trading Grid -->
167
+ <div class="grid grid-cols-1 lg:grid-cols-4 gap-4">
168
+ <!-- Chart Area -->
169
+ <div class="lg:col-span-3 space-y-4">
170
+ <!-- Chart -->
171
+ <div class="quantum-card rounded-xl p-4">
172
+ <div class="h-96 bg-gray-900/50 rounded-lg relative overflow-hidden">
173
+ <canvas id="tradingChart" class="w-full h-full"></canvas>
174
+ <div class="absolute top-4 right-4 glass-effect rounded-lg p-3">
175
+ <div class="text-sm">
176
+ <p class="text-gray-400">High: <span class="text-white">1.0859</span></p>
177
+ <p class="text-gray-400">Low: <span class="text-white">1.0832</span></p>
178
+ <p class="text-gray-400">Volume: <span class="text-white">2.4M</span></p>
179
+ </div>
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+ <!-- Trading Tools -->
185
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
186
+ <!-- Position Calculator -->
187
+ <div class="quantum-card rounded-xl p-4">
188
+ <h3 class="text-lg font-semibold mb-3">Position Calculator</h3>
189
+ <div class="space-y-3">
190
+ <div>
191
+ <label class="text-xs text-gray-400">Balance</label>
192
+ <input type="text" value="$50,000" class="w-full bg-gray-800 rounded px-3 py-2 text-sm">
193
+ </div>
194
+ <div>
195
+ <label class="text-xs text-gray-400">Risk %</label>
196
+ <input type="range" min="1" max="10" value="2" class="w-full">
197
+ <div class="flex justify-between text-xs text-gray-500">
198
+ <span>1%</span>
199
+ <span class="text-neon-500">2%</span>
200
+ <span>10%</span>
201
+ </div>
202
+ </div>
203
+ <div>
204
+ <label class="text-xs text-gray-400">Stop Loss (pips)</label>
205
+ <input type="number" value="20" class="w-full bg-gray-800 rounded px-3 py-2 text-sm">
206
+ </div>
207
+ <div class="pt-2 border-t border-gray-800">
208
+ <div class="flex justify-between text-sm">
209
+ <span class="text-gray-400">Lot Size:</span>
210
+ <span class="text-white font-semibold">1.25</span>
211
+ </div>
212
+ <div class="flex justify-between text-sm">
213
+ <span class="text-gray-400">Risk Amount:</span>
214
+ <span class="text-neon-500 font-semibold">$1,000</span>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ </div>
219
+
220
+ <!-- Quick Trade -->
221
+ <div class="quantum-card rounded-xl p-4">
222
+ <h3 class="text-lg font-semibold mb-3">Quick Trade</h3>
223
+ <div class="space-y-3">
224
+ <div class="grid grid-cols-2 gap-2">
225
+ <button class="trading-button quantum-gradient py-3 rounded-lg font-semibold">
226
+ BUY
227
+ </button>
228
+ <button class="trading-button bg-red-600 hover:bg-red-700 py-3 rounded-lg font-semibold">
229
+ SELL
230
+ </button>
231
+ </div>
232
+ <div>
233
+ <label class="text-xs text-gray-400">Volume</label>
234
+ <input type="number" value="1.0" step="0.1" class="w-full bg-gray-800 rounded px-3 py-2 text-sm">
235
+ </div>
236
+ <div class="grid grid-cols-2 gap-2">
237
+ <button class="px-3 py-2 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">
238
+ Market Order
239
+ </button>
240
+ <button class="px-3 py-2 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">
241
+ Limit Order
242
+ </button>
243
+ </div>
244
+ </div>
245
+ </div>
246
+
247
+ <!-- Trade Management -->
248
+ <div class="quantum-card rounded-xl p-4">
249
+ <h3 class="text-lg font-semibold mb-3">Trade Management</h3>
250
+ <div class="space-y-3">
251
+ <div class="flex items-center justify-between">
252
+ <span class="text-sm text-gray-400">Breakeven</span>
253
+ <button class="w-12 h-6 bg-gray-800 rounded-full relative">
254
+ <div class="w-5 h-5 bg-quantum-500 rounded-full absolute top-0.5 right-0.5 transition-transform"></div>
255
+ </button>
256
+ </div>
257
+ <div class="flex items-center justify-between">
258
+ <span class="text-sm text-gray-400">Trailing Stop</span>
259
+ <button class="w-12 h-6 bg-quantum-600 rounded-full relative">
260
+ <div class="w-5 h-5 bg-white rounded-full absolute top-0.5 left-0.5 transition-transform"></div>
261
+ </button>
262
+ </div>
263
+ <div>
264
+ <label class="text-xs text-gray-400">Trailing Distance</label>
265
+ <input type="number" value="15" class="w-full bg-gray-800 rounded px-3 py-2 text-sm">
266
+ </div>
267
+ <div class="grid grid-cols-2 gap-2">
268
+ <button class="px-3 py-2 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">
269
+ Close All
270
+ </button>
271
+ <button class="px-3 py-2 bg-gray-800 rounded text-xs hover:bg-gray-700 transition-colors">
272
+ Hedge
273
+ </button>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+ <!-- Order Book and Recent Trades -->
281
+ <div class="space-y-4">
282
+ <!-- Order Book -->
283
+ <div class="quantum-card rounded-xl p-4">
284
+ <h3 class="text-lg font-semibold mb-3">Order Book</h3>
285
+ <div class="space-y-2">
286
+ <div class="flex justify-between text-xs text-gray-400 mb-2">
287
+ <span>Price</span>
288
+ <span>Size</span>
289
+ </div>
290
+ <!-- Sell Orders -->
291
+ <div class="space-y-1">
292
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
293
+ <span class="text-red-400">1.0849</span>
294
+ <span class="text-gray-300">2.5</span>
295
+ </div>
296
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
297
+ <span class="text-red-400">1.0848</span>
298
+ <span class="text-gray-300">1.8</span>
299
+ </div>
300
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
301
+ <span class="text-red-400">1.0847</span>
302
+ <span class="text-gray-300">3.2</span>
303
+ </div>
304
+ </div>
305
+ <!-- Current Price -->
306
+ <div class="bg-gray-800 rounded py-2 px-3 my-2">
307
+ <div class="text-center">
308
+ <p class="text-lg font-bold">1.0847</p>
309
+ <p class="text-xs text-gray-400">Current Price</p>
310
+ </div>
311
+ </div>
312
+ <!-- Buy Orders -->
313
+ <div class="space-y-1">
314
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
315
+ <span class="text-neon-500">1.0846</span>
316
+ <span class="text-gray-300">1.5</span>
317
+ </div>
318
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
319
+ <span class="text-neon-500">1.0845</span>
320
+ <span class="text-gray-300">2.8</span>
321
+ </div>
322
+ <div class="order-book-row flex justify-between py-1 px-2 rounded">
323
+ <span class="text-neon-500">1.0844</span>
324
+ <span class="text-gray-300">1.2</span>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+
330
+ <!-- Recent Trades -->
331
+ <div class="quantum-card rounded-xl p-4">
332
+ <h3 class="text-lg font-semibold mb-3">Recent Trades</h3>
333
+ <div class="space-y-2 max-h-64 overflow-y-auto">
334
+ <div class="flex justify-between text-sm py-1">
335
+ <span class="text-gray-400">1.0846</span>
336
+ <span class="text-neon-500">BUY</span>
337
+ <span class="text-gray-300">0.5</span>
338
+ <span class="text-xs text-gray-500">12:34</span>
339
+ </div>
340
+ <div class="flex justify-between text-sm py-1">
341
+ <span class="text-gray-400">1.0848</span>
342
+ <span class="text-red-500">SELL</span>
343
+ <span class="text-gray-300">1.2</span>
344
+ <span class="text-xs text-gray-500">12:33</span>
345
+ </div>
346
+ <div class="flex justify-between text-sm py-1">
347
+ <span class="text-gray-400">1.0845</span>
348
+ <span class="text-neon-500">BUY</span>
349
+ <span class="text-gray-300">2.0</span>
350
+ <span class="text-xs text-gray-500">12:32</span>
351
+ </div>
352
+ <div class="flex justify-between text-sm py-1">
353
+ <span class="text-gray-400">1.0849</span>
354
+ <span class="text-red-500">SELL</span>
355
+ <span class="text-gray-300">0.8</span>
356
+ <span class="text-xs text-gray-500">12:31</span>
357
+ </div>
358
+ </div>
359
+ </div>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+ <!-- Bottom Navigation for Mobile -->
366
+ <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
367
+ <div class="grid grid-cols-5 py-2">
368
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
369
+ <i data-feather="home" class="w-5 h-5"></i>
370
+ <span class="text-xs">Home</span>
371
+ </button>
372
+ <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
373
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
374
+ <span class="text-xs">Trade</span>
375
+ </button>
376
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
377
+ <i data-feather="activity" class="w-5 h-5"></i>
378
+ <span class="text-xs">Analytics</span>
379
+ </button>
380
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
381
+ <i data-feather="pie-chart" class="w-5 h-5"></i>
382
+ <span class="text-xs">Portfolio</span>
383
+ </button>
384
+ <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
385
+ <i data-feather="cpu" class="w-5 h-5"></i>
386
+ <span class="text-xs">AI</span>
387
+ </button>
388
+ </div>
389
+ </nav>
390
+
391
+ <script>
392
+ // Initialize Feather Icons
393
+ feather.replace();
394
+
395
+ // Trading Chart
396
+ const ctx = document.getElementById('tradingChart').getContext('2d');
397
+ const gradient = ctx.createLinearGradient(0, 0, 0, 400);
398
+ gradient.addColorStop(0, 'rgba(14, 165, 233, 0.3)');
399
+ gradient.addColorStop(1, 'rgba(14, 165, 233, 0)');
400
+
401
+ const chart = new Chart(ctx, {
402
+ type: 'line',
403
+ data: {
404
+ labels: ['09:00', '09:30', '10:00', '10:30', '11:00', '11:30', '12:00', '12:30', '13:00', '13:30'],
405
+ datasets: [{
406
+ label: 'EUR/USD',
407
+ data: [1.0832, 1.0838, 1.0841, 1.0839, 1.0845, 1.0843, 1.0847, 1.0845, 1.0849, 1.0847],
408
+ borderColor: '#0ea5e9',
409
+ backgroundColor: gradient,
410
+ borderWidth: 2,
411
+ fill: true,
412
+ tension: 0.4,
413
+ pointRadius: 0,
414
+ pointHoverRadius: 6,
415
+ pointHoverBackgroundColor: '#0ea5e9',
416
+ pointHoverBorderColor: '#fff',
417
+ pointHoverBorderWidth: 2
418
+ }]
419
+ },
420
+ options: {
421
+ responsive: true,
422
+ maintainAspectRatio: false,
423
+ interaction: {
424
+ intersect: false,
425
+ mode: 'index'
426
+ },
427
+ plugins: {
428
+ legend: {
429
+ display: false
430
+ },
431
+ tooltip: {
432
+ backgroundColor: 'rgba(8, 47, 73, 0.9)',
433
+ titleColor: '#fff',
434
+ bodyColor: '#fff',
435
+ borderColor: '#0ea5e9',
436
+ borderWidth: 1,
437
+ cornerRadius: 8,
438
+ displayColors: false
439
+ }
440
+ },
441
+ scales: {
442
+ x: {
443
+ grid: {
444
+ color: 'rgba(255, 255, 255, 0.1)',
445
+ drawBorder: false
446
+ },
447
+ ticks: {
448
+ color: '#9ca3af'
449
+ }
450
+ },
451
+ y: {
452
+ grid: {
453
+ color: 'rgba(255, 255, 255, 0.1)',
454
+ drawBorder: false
455
+ },
456
+ ticks: {
457
+ color: '#9ca3af',
458
+ callback: function(value) {
459
+ return value.toFixed(4);
460
+ }
461
+ }
462
+ }
463
+ }
464
+ }
465
+ });
466
+
467
+ // Animate elements
468
+ anime({
469
+ targets: '.quantum-card',
470
+ translateY: [30, 0],
471
+ opacity: [0, 1],
472
+ delay: anime.stagger(100),
473
+ duration: 800,
474
+ easing: 'easeOutQuad'
475
+ });
476
+
477
+ // Real-time updates simulation
478
+ setInterval(() => {
479
+ const newPrice = (Math.random() * 0.0004 + 1.0845).toFixed(4);
480
+ chart.data.datasets[0].data.push(newPrice);
481
+ chart.data.labels.push(new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' }));
482
+
483
+ if (chart.data.datasets[0].data.length > 20) {
484
+ chart.data.datasets[0].data.shift();
485
+ chart.data.labels.shift();
486
+ }
487
+
488
+ chart.update('none');
489
+ }, 3000);
490
+ </script>
491
+ </body>
492
+ </html>