jsonet commited on
Commit
08ce598
·
verified ·
1 Parent(s): b3b7b14

Desarrolle e implemente completamente una interfaz de usuario y experiencia UX/UI de vanguardia implementando el código en diferentes paginas independientes interconectadas, para la aplicación detallada en los siguientes diagramas, cumpliendo con los siguientes requisitos técnicos y de diseño:

Browse files

1. Implementación de las mejores prácticas de diseño y desarrollo (2025), garantizando compatibilidad total con:
- HTML6
- CSS4
- ECMAScript 2025

2. Diseño futurista y minimalista con alto impacto visual, manteniendo:
- Tiempos de respuesta inferiores a 100ms
- Eficiencia operativa del 99.9%

3. Optimización extrema del rendimiento que asegure:
- 60 FPS constantes en todos los dispositivos
- Tiempo de renderizado menor a 16ms
- Uso de memoria optimizado

4. Código de alta calidad que cumpla con:
- Estándares W3C y WCAG 3.0
- Arquitectura modular con patrones atómicos
- Cobertura de pruebas superior al 90%

5. Experiencia de usuario innovadora que incluya:
- Flujos intuitivos basados en diagramas de flujo UX
- Interacciones coherentes en todos los componentes
- Navegación predictiva con inteligencia contextual

6. Interfaz de última generación con:
- Animaciones fluidas a 60 FPS sincronizadas con el hardware
- Retroalimentación táctil precisa con respuesta háptica
- Transiciones perfectamente sincronizadas entre estados

7. Arquitectura robusta con componentes reutilizables que garanticen:
- Tiempo de carga inicial menor a 1 segundo
- Escalabilidad ilimitada mediante diseño atómico
- Mantenibilidad óptima con documentación completa

Prioridades clave:
- Coherencia visual en todos los breakpoints (desde 320px hasta 8K) con diseño adaptable
- Interacciones fluidas con latencia inferior a 50ms en todas las acciones
- Innovación demostrable en cada componente mediante métricas cuantificables

Métricas requeridas:
- Usabilidad: SUS >85 en pruebas con usuarios reales
- Rendimiento: Lighthouse score >95 en todas las categorías
- Experiencia: NPS >75 en encuestas post-implementación

@startuml TradingSystem_ComponentDiagram
!theme aws-orange
title Sistema de Trading - Diagrama de Componentes

!define RECTANGLE class

package "Frontend Layer" {
[Web Dashboard] as WebUI
[Mobile App] as MobileApp
[Trading Terminal] as Terminal
}

package "API Gateway" {
[FastAPI Gateway] as Gateway
[Authentication] as Auth
[Rate Limiting] as RateLimit
[Load Balancer] as LoadBalancer
}

package "Core Services" {
package "Trading Core" {
[Signal Service] as SignalSvc
[Strategy Service] as StrategySvc
[Indicator Service] as IndicatorSvc
[Market Data Service] as MarketDataSvc
}

package "ML/AI Services" {
[ML Model Service] as MLSvc
[Feature Engineering] as FeatureSvc
[Model Training] as TrainingSvc
[MLflow Tracking] as MLflowSvc
}

package "Integration Services" {
[MetaTrader5 Connector] as MT5Connector
[Data Provider Service] as DataProviderSvc
[Notification Service] as NotificationSvc
[MQTT Service] as MQTTSvc
}
}

package "Data Layer" {
[PostgreSQL] as PostgresDB
[Redis Cache] as RedisCache
[Time Series DB] as TimeSeriesDB
[File Storage] as FileStorage
}

package "External Systems" {
[MetaTrader 5] as MT5
[Alpha Vantage API] as AlphaVantage
[Yahoo Finance] as YahooFinance
[Telegram Bot API] as Telegram
[Email Service] as EmailSvc
}

package "Infrastructure" {
package "Monitoring" {
[Prometheus] as Prometheus
[Grafana] as Grafana
[AlertManager] as AlertManager
[Jaeger Tracing] as Jaeger
}

package "Message Queue" {
[MQTT Broker] as MQTTBroker
[Redis Pub/Sub] as RedisPubSub
}

package "Security" {
[JWT Service] as JWTSvc
[Encryption Service] as EncryptionSvc
[Audit Service] as AuditSvc
}
}

package "DevOps & Deployment" {
[Docker Containers] as Docker
[Kubernetes] as K8s
[CI/CD Pipeline] as CICD
[Backup Service] as BackupSvc
}

' Frontend connections
WebUI --> Gateway : HTTPS/REST
MobileApp --> Gateway : HTTPS/REST
Terminal --> Gateway : HTTPS/REST + WebSocket

' API Gateway connections
Gateway --> Auth : Authentication
Gateway --> RateLimit : Rate Control
LoadBalancer --> Gateway : Load Distribution

' Core Services connections
Gateway --> SignalSvc : REST API
Gateway --> StrategySvc : REST API
Gateway --> IndicatorSvc : REST API
Gateway --> MarketDataSvc : REST API

SignalSvc --> PostgresDB : Signal Data
SignalSvc --> RedisCache : Caching
SignalSvc --> MQTTSvc : Real-time Updates

StrategySvc --> MLSvc : ML Predictions
StrategySvc --> IndicatorSvc : Technical Analysis
StrategySvc --> PostgresDB : Strategy Data

IndicatorSvc --> MarketDataSvc : Market Data
IndicatorSvc --> RedisCache : Indicator Cache
IndicatorSvc --> TimeSeriesDB : Historical Data

MarketDataSvc --> MT5Connector : Live Data
MarketDataSvc --> DataProviderSvc : External Data
MarketDataSvc --> TimeSeriesDB : Storage

' ML Services connections
MLSvc --> FeatureSvc : Feature Preparation
MLSvc --> MLflowSvc : Model Management
MLSvc --> FileStorage : Model Storage
TrainingSvc --> MLflowSvc : Experiment Tracking

' Integration Services connections
MT5Connector --> MT5 : MT5 API
DataProviderSvc --> AlphaVantage : Market Data API
DataProviderSvc --> YahooFinance : Market Data API
NotificationSvc --> Telegram : Notifications
NotificationSvc --> EmailSvc : Email Alerts
MQTTSvc --> MQTTBroker : Message Publishing

' Data Layer connections
PostgresDB --> BackupSvc : Database Backup
RedisCache --> RedisPubSub : Pub/Sub Messaging
TimeSeriesDB --> BackupSvc : Time Series Backup

' Monitoring connections
SignalSvc --> Prometheus : Metrics
StrategySvc --> Prometheus : Metrics
MLSvc --> Prometheus : Metrics
Prometheus --> Grafana : Visualization
Prometheus --> AlertManager : Alerting
Gateway --> Jaeger : Distributed Tracing

' Security connections
Gateway --> JWTSvc : Token Validation
SignalSvc --> AuditSvc : Audit Logging
StrategySvc --> EncryptionSvc : Data Encryption

' Infrastructure connections
Docker --> K8s : Container Orchestration
CICD --> Docker : Container Building
CICD --> K8s : Deployment

' Notes
note right of MLSvc : Utiliza modelos ONNX\npara inferencia rápida
note right of MT5Connector : Conexión directa con\nMetaTrader 5 terminal
note right of MQTTBroker : Comunicación en tiempo real\ncon clientes suscritos
note right of Prometheus : Métricas de rendimiento\ny monitoreo del sistema
note right of PostgresDB : Base de datos principal\ncon replicación

@enduml

---------------------------------------------------------------------------------------------


@startuml TradingSystem_DeploymentDiagram
!theme aws-orange
title Sistema de Trading - Diagrama de Despliegue

!define RECTANGLE node

node "Load Balancer" as LB {
artifact "Nginx" as Nginx
artifact "SSL Termination" as SSL
}

node "Web Servers Cluster" as WebCluster {
node "Web Server 1" as Web1 {
artifact "FastAPI App" as App1
artifact "Gunicorn" as Gunicorn1
}

node "Web Server 2" as Web2 {
artifact "FastAPI App" as App2
artifact "Gunicorn" as Gunicorn2
}

node "Web Server 3" as Web3 {
artifact "FastAPI App" as App3
artifact "Gunicorn" as Gunicorn3
}
}

node "Application Services" as AppServices {
node "ML Service Node" as MLNode {
artifact "ML Model Service" as MLService
artifact "ONNX Runtime" as ONNXRuntime
artifact "Feature Engineering" as FeatureEng
database "Model Storage" as ModelStorage
}

node "Trading Service Node" as TradingNode {
artifact "Signal Service" as SignalService
artifact "Strategy Service" as StrategyService
artifact "Indicator Service" as IndicatorService
}

node "Integration Node" as IntegrationNode {
artifact "MT5 Connector" as MT5Conn
artifact "Data Provider Service" as DataProvider
artifact "MQTT Service" as MQTTService
}
}

node "Database Cluster" as DBCluster {
node "Primary DB" as PrimaryDB {
database "PostgreSQL Primary" as PostgresPrimary
artifact "Connection Pool" as ConnPool1
}

node "Replica DB 1" as ReplicaDB1 {
database "PostgreSQL Replica" as PostgresReplica1
artifact "Connection Pool" as ConnPool2
}

node "Replica DB 2" as ReplicaDB2 {
database "PostgreSQL Replica" as PostgresReplica2
artifact "Connection Pool" as ConnPool3
}
}

node "Cache Cluster" as CacheCluster {
node "Redis Master" as RedisMaster {
database "Redis Primary" as RedisDB1
}

node "Redis Slave 1" as RedisSlave1 {
database "Redis Replica" as RedisDB2
}

node "Redis Slave 2" as RedisSlave2 {
database "Redis Replica" as RedisDB3
}
}

node "Time Series Database" as TSDBNode {
database "InfluxDB" as InfluxDB
artifact "Retention Policies" as RetentionPolicies
}

node "Message Queue" as MQNode {
node "MQTT Broker Cluster" as MQTTCluster {
artifact "MQTT Broker 1" as MQTTBroker1
artifact "MQTT Broker 2" as MQTTBroker2
}

artifact "Redis Pub/Sub" as RedisPubSub
}

node "Monitoring Stack" as MonitoringStack {
node "Metrics Collection" as MetricsNode {
artifact "Prometheus" as Prometheus
database "Metrics Storage" as MetricsDB
}

node "Visualization" as VizNode {
artifact "Grafana" as Grafana
database "Dashboard Config" as DashboardDB
}

node "Alerting" as AlertNode {
artifact "AlertManager" as AlertManager
artifact "Notification Handlers" as NotificationHandlers
}

node "Tracing" as TracingNode {
artifact "Jaeger" as Jaeger
database "Trace Storage" as TraceDB
}

node "Log Aggregation" as LogNode {
artifact "Loki" as Loki
artifact "Promtail" as Promtail
database "Log Storage" as LogDB
}
}

node "External Services" as ExternalServices {
cloud "MetaTrader 5 Termi

Files changed (7) hide show
  1. README.md +8 -5
  2. dashboard.html +517 -0
  3. index.html +530 -18
  4. portfolio.html +650 -0
  5. settings.html +267 -0
  6. signals.html +554 -0
  7. strategies.html +660 -0
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Quantumtrade Matrix
3
- emoji: 👀
4
- colorFrom: yellow
5
- colorTo: red
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: QuantumTrade Matrix 🚀
3
+ colorFrom: green
4
+ colorTo: green
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).
dashboard.html ADDED
@@ -0,0 +1,517 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Dashboard - QuantumTrade Matrix</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://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
13
+ <style>
14
+ .glass-morphism {
15
+ background: rgba(15, 23, 42, 0.7);
16
+ backdrop-filter: blur(10px);
17
+ border: 1px solid rgba(255, 255, 255, 0.1);
18
+ }
19
+
20
+ .trading-card {
21
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
22
+ border: 1px solid rgba(59, 130, 246, 0.3);
23
+ transition: all 0.3s ease;
24
+ }
25
+
26
+ .trading-card:hover {
27
+ transform: translateY(-2px);
28
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
29
+ }
30
+
31
+ .quantum-button {
32
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
33
+ transition: all 0.3s ease;
34
+ }
35
+
36
+ .quantum-button:hover {
37
+ transform: translateY(-1px);
38
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
39
+ }
40
+
41
+ .signal-buy {
42
+ background: #10b981;
43
+ box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
44
+ }
45
+
46
+ .signal-sell {
47
+ background: #ef4444;
48
+ box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
49
+ }
50
+
51
+ .signal-hold {
52
+ background: #f59e0b;
53
+ box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
54
+ }
55
+
56
+ .price-ticker {
57
+ font-family: 'Courier New', monospace;
58
+ font-weight: bold;
59
+ font-size: 1.25rem;
60
+ background: linear-gradient(135deg, #3b82f6, #8b5cf6);
61
+ -webkit-background-clip: text;
62
+ -webkit-text-fill-color: transparent;
63
+ background-clip: text;
64
+ }
65
+
66
+ @keyframes pulse {
67
+ 0%, 100% { opacity: 1; }
68
+ 50% { opacity: 0.5; }
69
+ }
70
+
71
+ .pulse {
72
+ animation: pulse 2s infinite;
73
+ }
74
+
75
+ .chart-container {
76
+ position: relative;
77
+ height: 300px;
78
+ }
79
+
80
+ .floating-element {
81
+ animation: float 6s ease-in-out infinite;
82
+ }
83
+
84
+ @keyframes float {
85
+ 0%, 100% { transform: translateY(0px); }
86
+ 50% { transform: translateY(-10px); }
87
+ }
88
+
89
+ .sidebar-item {
90
+ transition: all 0.3s ease;
91
+ border-left: 3px solid transparent;
92
+ }
93
+
94
+ .sidebar-item:hover {
95
+ background: rgba(59, 130, 246, 0.1);
96
+ border-left-color: #3b82f6;
97
+ }
98
+
99
+ .sidebar-item.active {
100
+ background: rgba(59, 130, 246, 0.2);
101
+ border-left-color: #3b82f6;
102
+ }
103
+
104
+ .metric-card {
105
+ background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
106
+ border: 1px solid rgba(59, 130, 246, 0.2);
107
+ }
108
+ </style>
109
+ </head>
110
+ <body class="bg-gray-900 text-white">
111
+ <!-- Navigation -->
112
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
113
+ <div class="container mx-auto px-6 py-4">
114
+ <div class="flex items-center justify-between">
115
+ <div class="flex items-center space-x-3">
116
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
117
+ <i data-feather="trending-up" class="w-6 h-6"></i>
118
+ </div>
119
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
120
+ QuantumTrade Matrix
121
+ </h1>
122
+ </div>
123
+
124
+ <div class="flex items-center space-x-4">
125
+ <div class="hidden md:flex items-center space-x-2">
126
+ <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div>
127
+ <span class="text-sm">System Online</span>
128
+ </div>
129
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
130
+ <i data-feather="user" class="w-5 h-5"></i>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </nav>
136
+
137
+ <!-- Main Layout -->
138
+ <div class="flex pt-20">
139
+ <!-- Sidebar -->
140
+ <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto">
141
+ <nav class="space-y-2">
142
+ <a href="dashboard.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg">
143
+ <i data-feather="home" class="w-5 h-5"></i>
144
+ <span>Dashboard</span>
145
+ </a>
146
+ <a href="signals.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
147
+ <i data-feather="radio" class="w-5 h-5"></i>
148
+ <span>Signals</span>
149
+ </a>
150
+ <a href="strategies.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
151
+ <i data-feather="target" class="w-5 h-5"></i>
152
+ <span>Strategies</span>
153
+ </a>
154
+ <a href="portfolio.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
155
+ <i data-feather="briefcase" class="w-5 h-5"></i>
156
+ <span>Portfolio</span>
157
+ </a>
158
+ <a href="settings.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
159
+ <i data-feather="settings" class="w-5 h-5"></i>
160
+ <span>Settings</span>
161
+ </a>
162
+ </nav>
163
+
164
+ <div class="mt-8 p-4 glass-morphism rounded-lg">
165
+ <h4 class="font-semibold mb-2">Quick Stats</h4>
166
+ <div class="space-y-2 text-sm">
167
+ <div class="flex justify-between">
168
+ <span class="text-gray-400">Active Signals</span>
169
+ <span class="text-green-400">12</span>
170
+ </div>
171
+ <div class="flex justify-between">
172
+ <span class="text-gray-400">Win Rate</span>
173
+ <span class="text-blue-400">78.5%</span>
174
+ </div>
175
+ <div class="flex justify-between">
176
+ <span class="text-gray-400">P&L Today</span>
177
+ <span class="text-green-400">+$1,245</span>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </aside>
182
+
183
+ <!-- Main Content -->
184
+ <main class="ml-64 flex-1 p-6">
185
+ <!-- Top Metrics -->
186
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
187
+ <div class="metric-card rounded-xl p-6">
188
+ <div class="flex items-center justify-between mb-4">
189
+ <span class="text-gray-400">Total Balance</span>
190
+ <i data-feather="dollar-sign" class="w-5 h-5 text-blue-400"></i>
191
+ </div>
192
+ <div class="text-3xl font-bold">$45,678</div>
193
+ <div class="text-green-400 text-sm mt-2">+2.34% this week</div>
194
+ </div>
195
+
196
+ <div class="metric-card rounded-xl p-6">
197
+ <div class="flex items-center justify-between mb-4">
198
+ <span class="text-gray-400">Active Positions</span>
199
+ <i data-feather="activity" class="w-5 h-5 text-green-400"></i>
200
+ </div>
201
+ <div class="text-3xl font-bold">8</div>
202
+ <div class="text-gray-400 text-sm mt-2">2 pending orders</div>
203
+ </div>
204
+
205
+ <div class="metric-card rounded-xl p-6">
206
+ <div class="flex items-center justify-between mb-4">
207
+ <span class="text-gray-400">Today's P&L</span>
208
+ <i data-feather="trending-up" class="w-5 h-5 text-purple-400"></i>
209
+ </div>
210
+ <div class="text-3xl font-bold text-green-400">+$1,245</div>
211
+ <div class="text-green-400 text-sm mt-2">+2.8% today</div>
212
+ </div>
213
+
214
+ <div class="metric-card rounded-xl p-6">
215
+ <div class="flex items-center justify-between mb-4">
216
+ <span class="text-gray-400">Win Rate</span>
217
+ <i data-feather="target" class="w-5 h-5 text-yellow-400"></i>
218
+ </div>
219
+ <div class="text-3xl font-bold">78.5%</div>
220
+ <div class="text-gray-400 text-sm mt-2">Last 30 days</div>
221
+ </div>
222
+ </div>
223
+
224
+ <!-- Charts Section -->
225
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
226
+ <div class="trading-card rounded-xl p-6">
227
+ <h3 class="text-xl font-bold mb-4">Portfolio Performance</h3>
228
+ <div class="chart-container">
229
+ <canvas id="portfolioChart"></canvas>
230
+ </div>
231
+ </div>
232
+
233
+ <div class="trading-card rounded-xl p-6">
234
+ <h3 class="text-xl font-bold mb-4">Signal Accuracy</h3>
235
+ <div class="chart-container">
236
+ <canvas id="accuracyChart"></canvas>
237
+ </div>
238
+ </div>
239
+ </div>
240
+
241
+ <!-- Active Signals -->
242
+ <div class="trading-card rounded-xl p-6 mb-8">
243
+ <div class="flex items-center justify-between mb-6">
244
+ <h3 class="text-xl font-bold">Active Signals</h3>
245
+ <button class="quantum-button px-4 py-2 rounded-lg text-sm">
246
+ View All
247
+ </button>
248
+ </div>
249
+
250
+ <div class="overflow-x-auto">
251
+ <table class="w-full">
252
+ <thead>
253
+ <tr class="border-b border-gray-700">
254
+ <th class="text-left py-3 px-4">Symbol</th>
255
+ <th class="text-left py-3 px-4">Type</th>
256
+ <th class="text-left py-3 px-4">Entry</th>
257
+ <th class="text-left py-3 px-4">Current</th>
258
+ <th class="text-left py-3 px-4">P&L</th>
259
+ <th class="text-left py-3 px-4">Confidence</th>
260
+ <th class="text-left py-3 px-4">Time</th>
261
+ </tr>
262
+ </thead>
263
+ <tbody>
264
+ <tr class="border-b border-gray-800 hover:bg-gray-800">
265
+ <td class="py-3 px-4">
266
+ <div class="flex items-center">
267
+ <span class="signal-indicator signal-buy"></span>
268
+ EUR/USD
269
+ </div>
270
+ </td>
271
+ <td class="py-3 px-4">
272
+ <span class="text-green-400">BUY</span>
273
+ </td>
274
+ <td class="py-3 px-4">1.0845</td>
275
+ <td class="py-3 px-4 price-ticker">1.0856</td>
276
+ <td class="py-3 px-4 text-green-400">+11 pips</td>
277
+ <td class="py-3 px-4">
278
+ <div class="flex items-center">
279
+ <div class="w-16 bg-gray-700 rounded-full h-2 mr-2">
280
+ <div class="bg-green-500 h-2 rounded-full" style="width: 85%"></div>
281
+ </div>
282
+ <span class="text-sm">85%</span>
283
+ </div>
284
+ </td>
285
+ <td class="py-3 px-4 text-gray-400">2 min ago</td>
286
+ </tr>
287
+ <tr class="border-b border-gray-800 hover:bg-gray-800">
288
+ <td class="py-3 px-4">
289
+ <div class="flex items-center">
290
+ <span class="signal-indicator signal-sell"></span>
291
+ GBP/USD
292
+ </div>
293
+ </td>
294
+ <td class="py-3 px-4">
295
+ <span class="text-red-400">SELL</span>
296
+ </td>
297
+ <td class="py-3 px-4">1.2755</td>
298
+ <td class="py-3 px-4 price-ticker">1.2743</td>
299
+ <td class="py-3 px-4 text-green-400">+12 pips</td>
300
+ <td class="py-3 px-4">
301
+ <div class="flex items-center">
302
+ <div class="w-16 bg-gray-700 rounded-full h-2 mr-2">
303
+ <div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div>
304
+ </div>
305
+ <span class="text-sm">78%</span>
306
+ </div>
307
+ </td>
308
+ <td class="py-3 px-4 text-gray-400">5 min ago</td>
309
+ </tr>
310
+ <tr class="border-b border-gray-800 hover:bg-gray-800">
311
+ <td class="py-3 px-4">
312
+ <div class="flex items-center">
313
+ <span class="signal-indicator signal-hold"></span>
314
+ USD/JPY
315
+ </div>
316
+ </td>
317
+ <td class="py-3 px-4">
318
+ <span class="text-yellow-400">HOLD</span>
319
+ </td>
320
+ <td class="py-3 px-4">149.80</td>
321
+ <td class="py-3 px-4 price-ticker">149.82</td>
322
+ <td class="py-3 px-4 text-yellow-400">+2 pips</td>
323
+ <td class="py-3 px-4">
324
+ <div class="flex items-center">
325
+ <div class="w-16 bg-gray-700 rounded-full h-2 mr-2">
326
+ <div class="bg-yellow-500 h-2 rounded-full" style="width: 65%"></div>
327
+ </div>
328
+ <span class="text-sm">65%</span>
329
+ </div>
330
+ </td>
331
+ <td class="py-3 px-4 text-gray-400">8 min ago</td>
332
+ </tr>
333
+ </tbody>
334
+ </table>
335
+ </div>
336
+ </div>
337
+
338
+ <!-- Recent Activity -->
339
+ <div class="trading-card rounded-xl p-6">
340
+ <h3 class="text-xl font-bold mb-6">Recent Activity</h3>
341
+ <div class="space-y-4">
342
+ <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg">
343
+ <div class="flex items-center space-x-3">
344
+ <div class="w-10 h-10 bg-green-500 bg-opacity-20 rounded-full flex items-center justify-center">
345
+ <i data-feather="trending-up" class="w-5 h-5 text-green-400"></i>
346
+ </div>
347
+ <div>
348
+ <p class="font-semibold">Signal Executed</p>
349
+ <p class="text-sm text-gray-400">EUR/USD BUY at 1.0845</p>
350
+ </div>
351
+ </div>
352
+ <span class="text-sm text-gray-400">2 min ago</span>
353
+ </div>
354
+
355
+ <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg">
356
+ <div class="flex items-center space-x-3">
357
+ <div class="w-10 h-10 bg-blue-500 bg-opacity-20 rounded-full flex items-center justify-center">
358
+ <i data-feather="cpu" class="w-5 h-5 text-blue-400"></i>
359
+ </div>
360
+ <div>
361
+ <p class="font-semibold">ML Model Updated</p>
362
+ <p class="text-sm text-gray-400">EUR/USD accuracy improved to 85%</p>
363
+ </div>
364
+ </div>
365
+ <span class="text-sm text-gray-400">15 min ago</span>
366
+ </div>
367
+
368
+ <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg">
369
+ <div class="flex items-center space-x-3">
370
+ <div class="w-10 h-10 bg-purple-500 bg-opacity-20 rounded-full flex items-center justify-center">
371
+ <i data-feather="target" class="w-5 h-5 text-purple-400"></i>
372
+ </div>
373
+ <div>
374
+ <p class="font-semibold">Strategy Optimized</p>
375
+ <p class="text-sm text-gray-400">Scalping strategy parameters adjusted</p>
376
+ </div>
377
+ </div>
378
+ <span class="text-sm text-gray-400">1 hour ago</span>
379
+ </div>
380
+ </div>
381
+ </div>
382
+ </main>
383
+ </div>
384
+
385
+ <script>
386
+ // Initialize charts
387
+ const portfolioCtx = document.getElementById('portfolioChart').getContext('2d');
388
+ const portfolioChart = new Chart(portfolioCtx, {
389
+ type: 'line',
390
+ data: {
391
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
392
+ datasets: [{
393
+ label: 'Portfolio Value',
394
+ data: [40000, 42000, 41000, 43500, 44000, 45678],
395
+ borderColor: '#3b82f6',
396
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
397
+ tension: 0.4,
398
+ fill: true
399
+ }]
400
+ },
401
+ options: {
402
+ responsive: true,
403
+ maintainAspectRatio: false,
404
+ plugins: {
405
+ legend: {
406
+ display: false
407
+ }
408
+ },
409
+ scales: {
410
+ x: {
411
+ grid: {
412
+ color: 'rgba(255, 255, 255, 0.1)'
413
+ },
414
+ ticks: {
415
+ color: '#9ca3af'
416
+ }
417
+ },
418
+ y: {
419
+ grid: {
420
+ color: 'rgba(255, 255, 255, 0.1)'
421
+ },
422
+ ticks: {
423
+ color: '#9ca3af'
424
+ }
425
+ }
426
+ }
427
+ }
428
+ });
429
+
430
+ const accuracyCtx = document.getElementById('accuracyChart').getContext('2d');
431
+ const accuracyChart = new Chart(accuracyCtx, {
432
+ type: 'doughnut',
433
+ data: {
434
+ labels: ['Win', 'Loss', 'Break Even'],
435
+ datasets: [{
436
+ data: [78.5, 15.2, 6.3],
437
+ backgroundColor: ['#10b981', '#ef4444', '#f59e0b'],
438
+ borderWidth: 0
439
+ }]
440
+ },
441
+ options: {
442
+ responsive: true,
443
+ maintainAspectRatio: false,
444
+ plugins: {
445
+ legend: {
446
+ position: 'bottom',
447
+ labels: {
448
+ color: '#9ca3af',
449
+ padding: 20
450
+ }
451
+ }
452
+ }
453
+ }
454
+ });
455
+
456
+ // Simulate real-time updates
457
+ function updateDashboard() {
458
+ // Update prices
459
+ const priceElements = document.querySelectorAll('.price-ticker');
460
+ priceElements.forEach(element => {
461
+ const currentPrice = parseFloat(element.textContent);
462
+ const change = (Math.random() - 0.5) * 0.001;
463
+ const newPrice = currentPrice + change;
464
+ element.textContent = newPrice.toFixed(4);
465
+ });
466
+
467
+ // Update P&L
468
+ const plElements = document.querySelectorAll('td.text-green-400, td.text-red-400, td.text-yellow-400');
469
+ plElements.forEach(element => {
470
+ if (element.textContent.includes('pips')) {
471
+ const currentPips = parseInt(element.textContent);
472
+ const change = Math.floor((Math.random() - 0.5) * 3);
473
+ const newPips = currentPips + change;
474
+ element.textContent = `${newPips >= 0 ? '+' : ''}${newPips} pips`;
475
+ element.className = newPips >= 0 ? 'py-3 px-4 text-green-400' : 'py-3 px-4 text-red-400';
476
+ }
477
+ });
478
+ }
479
+
480
+ setInterval(updateDashboard, 3000);
481
+
482
+ // Add hover animations
483
+ document.querySelectorAll('.trading-card').forEach(card => {
484
+ card.addEventListener('mouseenter', function() {
485
+ anime({
486
+ targets: this,
487
+ translateY: -5,
488
+ duration: 300,
489
+ easing: 'easeOutQuad'
490
+ });
491
+ });
492
+
493
+ card.addEventListener('mouseleave', function() {
494
+ anime({
495
+ targets: this,
496
+ translateY: 0,
497
+ duration: 300,
498
+ easing: 'easeOutQuad'
499
+ });
500
+ });
501
+ });
502
+
503
+ // Initialize Feather icons
504
+ feather.replace();
505
+
506
+ // Animate elements on load
507
+ anime({
508
+ targets: '.metric-card',
509
+ opacity: [0, 1],
510
+ translateY: [20, 0],
511
+ delay: anime.stagger(100),
512
+ duration: 800,
513
+ easing: 'easeOutQuad'
514
+ });
515
+ </script>
516
+ </body>
517
+ </html>
index.html CHANGED
@@ -1,19 +1,531 @@
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>QuantumTrade Matrix - Next-Gen Trading Platform</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://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
13
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
14
+ <style>
15
+ @keyframes quantum-pulse {
16
+ 0%, 100% { opacity: 1; transform: scale(1); }
17
+ 50% { opacity: 0.7; transform: scale(1.05); }
18
+ }
19
+
20
+ @keyframes matrix-rain {
21
+ 0% { transform: translateY(-100%); opacity: 0; }
22
+ 10% { opacity: 1; }
23
+ 90% { opacity: 1; }
24
+ 100% { transform: translateY(100vh); opacity: 0; }
25
+ }
26
+
27
+ .quantum-pulse {
28
+ animation: quantum-pulse 2s ease-in-out infinite;
29
+ }
30
+
31
+ .matrix-rain {
32
+ animation: matrix-rain 8s linear infinite;
33
+ }
34
+
35
+ .glass-morphism {
36
+ background: rgba(15, 23, 42, 0.7);
37
+ backdrop-filter: blur(10px);
38
+ border: 1px solid rgba(255, 255, 255, 0.1);
39
+ }
40
+
41
+ .neon-glow {
42
+ box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
43
+ }
44
+
45
+ .trading-card {
46
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
47
+ border: 1px solid rgba(59, 130, 246, 0.3);
48
+ transition: all 0.3s ease;
49
+ }
50
+
51
+ .trading-card:hover {
52
+ transform: translateY(-5px);
53
+ box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
54
+ }
55
+
56
+ .quantum-button {
57
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
58
+ transition: all 0.3s ease;
59
+ position: relative;
60
+ overflow: hidden;
61
+ }
62
+
63
+ .quantum-button::before {
64
+ content: '';
65
+ position: absolute;
66
+ top: 0;
67
+ left: -100%;
68
+ width: 100%;
69
+ height: 100%;
70
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
71
+ transition: left 0.5s;
72
+ }
73
+
74
+ .quantum-button:hover::before {
75
+ left: 100%;
76
+ }
77
+
78
+ .quantum-button:hover {
79
+ transform: translateY(-2px);
80
+ box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
81
+ }
82
+
83
+ .matrix-bg {
84
+ position: fixed;
85
+ top: 0;
86
+ left: 0;
87
+ width: 100%;
88
+ height: 100%;
89
+ z-index: -1;
90
+ opacity: 0.1;
91
+ }
92
+
93
+ .matrix-char {
94
+ position: absolute;
95
+ color: #10b981;
96
+ font-family: 'Courier New', monospace;
97
+ font-size: 14px;
98
+ white-space: nowrap;
99
+ pointer-events: none;
100
+ }
101
+
102
+ .vanta-bg {
103
+ position: absolute;
104
+ top: 0;
105
+ left: 0;
106
+ width: 100%;
107
+ height: 100%;
108
+ z-index: -2;
109
+ }
110
+
111
+ .performance-metric {
112
+ background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
113
+ border: 1px solid rgba(59, 130, 246, 0.2);
114
+ }
115
+
116
+ .signal-indicator {
117
+ width: 12px;
118
+ height: 12px;
119
+ border-radius: 50%;
120
+ display: inline-block;
121
+ margin-right: 8px;
122
+ animation: pulse 2s infinite;
123
+ }
124
+
125
+ .signal-buy {
126
+ background: #10b981;
127
+ box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
128
+ }
129
+
130
+ .signal-sell {
131
+ background: #ef4444;
132
+ box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
133
+ }
134
+
135
+ .signal-hold {
136
+ background: #f59e0b;
137
+ box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
138
+ }
139
+
140
+ @keyframes pulse {
141
+ 0%, 100% { opacity: 1; }
142
+ 50% { opacity: 0.5; }
143
+ }
144
+
145
+ .chart-container {
146
+ background: rgba(15, 23, 42, 0.8);
147
+ border: 1px solid rgba(59, 130, 246, 0.2);
148
+ border-radius: 12px;
149
+ padding: 20px;
150
+ position: relative;
151
+ overflow: hidden;
152
+ }
153
+
154
+ .chart-line {
155
+ stroke: #3b82f6;
156
+ stroke-width: 2;
157
+ fill: none;
158
+ filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
159
+ }
160
+
161
+ .chart-area {
162
+ fill: url(#gradient);
163
+ opacity: 0.3;
164
+ }
165
+
166
+ .price-ticker {
167
+ font-family: 'Courier New', monospace;
168
+ font-weight: bold;
169
+ font-size: 1.5rem;
170
+ background: linear-gradient(135deg, #3b82f6, #8b5cf6);
171
+ -webkit-background-clip: text;
172
+ -webkit-text-fill-color: transparent;
173
+ background-clip: text;
174
+ }
175
+
176
+ .floating-element {
177
+ animation: float 6s ease-in-out infinite;
178
+ }
179
+
180
+ @keyframes float {
181
+ 0%, 100% { transform: translateY(0px); }
182
+ 50% { transform: translateY(-10px); }
183
+ }
184
+ </style>
185
+ </head>
186
+ <body class="bg-gray-900 text-white overflow-x-hidden">
187
+ <div class="vanta-bg" id="vanta-bg"></div>
188
+ <div class="matrix-bg" id="matrix-bg"></div>
189
+
190
+ <!-- Navigation -->
191
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
192
+ <div class="container mx-auto px-6 py-4">
193
+ <div class="flex items-center justify-between">
194
+ <div class="flex items-center space-x-3">
195
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center quantum-pulse">
196
+ <i data-feather="trending-up" class="w-6 h-6"></i>
197
+ </div>
198
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
199
+ QuantumTrade Matrix
200
+ </h1>
201
+ </div>
202
+
203
+ <div class="hidden md:flex items-center space-x-8">
204
+ <a href="dashboard.html" class="hover:text-blue-400 transition-colors">Dashboard</a>
205
+ <a href="signals.html" class="hover:text-blue-400 transition-colors">Signals</a>
206
+ <a href="strategies.html" class="hover:text-blue-400 transition-colors">Strategies</a>
207
+ <a href="portfolio.html" class="hover:text-blue-400 transition-colors">Portfolio</a>
208
+ <a href="settings.html" class="hover:text-blue-400 transition-colors">Settings</a>
209
+ </div>
210
+
211
+ <div class="flex items-center space-x-4">
212
+ <button class="quantum-button px-6 py-2 rounded-lg font-semibold">
213
+ Connect MT5
214
+ </button>
215
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
216
+ <i data-feather="user" class="w-5 h-5"></i>
217
+ </div>
218
+ </div>
219
+ </div>
220
+ </div>
221
+ </nav>
222
+
223
+ <!-- Hero Section -->
224
+ <section class="relative min-h-screen flex items-center justify-center">
225
+ <div class="container mx-auto px-6 text-center">
226
+ <div class="max-w-4xl mx-auto">
227
+ <h2 class="text-6xl md:text-8xl font-bold mb-6 floating-element">
228
+ <span class="bg-gradient-to-r from-blue-400 via-purple-400 to-pink-400 bg-clip-text text-transparent">
229
+ Quantum
230
+ </span>
231
+ <br>
232
+ <span class="text-white">Trading</span>
233
+ </h2>
234
+ <p class="text-xl md:text-2xl text-gray-300 mb-8">
235
+ Next-generation AI-powered trading platform with real-time signals and advanced analytics
236
+ </p>
237
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
238
+ <button class="quantum-button px-8 py-4 rounded-lg font-semibold text-lg">
239
+ Start Trading Now
240
+ </button>
241
+ <button class="px-8 py-4 rounded-lg font-semibold text-lg border border-blue-500 hover:bg-blue-500 hover:bg-opacity-20 transition-all">
242
+ View Demo
243
+ </button>
244
+ </div>
245
+ </div>
246
+ </div>
247
+
248
+ <!-- Live Trading Widget -->
249
+ <div class="absolute bottom-10 left-1/2 transform -translate-x-1/2 w-full max-w-6xl px-6">
250
+ <div class="glass-morphism rounded-2xl p-6">
251
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
252
+ <div class="trading-card rounded-xl p-4">
253
+ <div class="flex items-center justify-between mb-3">
254
+ <span class="text-gray-400">EUR/USD</span>
255
+ <span class="signal-indicator signal-buy"></span>
256
+ </div>
257
+ <div class="price-ticker">1.0856</div>
258
+ <div class="text-green-400 text-sm">+0.0023 (+0.21%)</div>
259
+ </div>
260
+ <div class="trading-card rounded-xl p-4">
261
+ <div class="flex items-center justify-between mb-3">
262
+ <span class="text-gray-400">GBP/USD</span>
263
+ <span class="signal-indicator signal-sell"></span>
264
+ </div>
265
+ <div class="price-ticker">1.2743</div>
266
+ <div class="text-red-400 text-sm">-0.0012 (-0.09%)</div>
267
+ </div>
268
+ <div class="trading-card rounded-xl p-4">
269
+ <div class="flex items-center justify-between mb-3">
270
+ <span class="text-gray-400">USD/JPY</span>
271
+ <span class="signal-indicator signal-hold"></span>
272
+ </div>
273
+ <div class="price-ticker">149.82</div>
274
+ <div class="text-yellow-400 text-sm">+0.05 (+0.03%)</div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </div>
279
+ </section>
280
+
281
+ <!-- Features Section -->
282
+ <section class="py-20 relative">
283
+ <div class="container mx-auto px-6">
284
+ <h3 class="text-4xl font-bold text-center mb-16 bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
285
+ Quantum Features
286
+ </h3>
287
+
288
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
289
+ <div class="trading-card rounded-xl p-8 floating-element">
290
+ <div class="w-16 h-16 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center mb-6">
291
+ <i data-feather="cpu" class="w-8 h-8"></i>
292
+ </div>
293
+ <h4 class="text-2xl font-bold mb-4">AI-Powered Signals</h4>
294
+ <p class="text-gray-300">
295
+ Advanced machine learning models analyze market data in real-time to generate high-accuracy trading signals
296
+ </p>
297
+ </div>
298
+
299
+ <div class="trading-card rounded-xl p-8 floating-element" style="animation-delay: 0.2s;">
300
+ <div class="w-16 h-16 bg-gradient-to-r from-green-500 to-blue-500 rounded-lg flex items-center justify-center mb-6">
301
+ <i data-feather="zap" class="w-8 h-8"></i>
302
+ </div>
303
+ <h4 class="text-2xl font-bold mb-4">Lightning Fast</h4>
304
+ <p class="text-gray-300">
305
+ Sub-100ms response times with 60 FPS rendering for the smoothest trading experience
306
+ </p>
307
+ </div>
308
+
309
+ <div class="trading-card rounded-xl p-8 floating-element" style="animation-delay: 0.4s;">
310
+ <div class="w-16 h-16 bg-gradient-to-r from-purple-500 to-pink-500 rounded-lg flex items-center justify-center mb-6">
311
+ <i data-feather="shield" class="w-8 h-8"></i>
312
+ </div>
313
+ <h4 class="text-2xl font-bold mb-4">Bank-Level Security</h4>
314
+ <p class="text-gray-300">
315
+ Military-grade encryption and multi-factor authentication protect your assets
316
+ </p>
317
+ </div>
318
+
319
+ <div class="trading-card rounded-xl p-8 floating-element" style="animation-delay: 0.6s;">
320
+ <div class="w-16 h-16 bg-gradient-to-r from-yellow-500 to-orange-500 rounded-lg flex items-center justify-center mb-6">
321
+ <i data-feather="trending-up" class="w-8 h-8"></i>
322
+ </div>
323
+ <h4 class="text-2xl font-bold mb-4">Advanced Analytics</h4>
324
+ <p class="text-gray-300">
325
+ Comprehensive portfolio analytics with real-time P&L tracking and risk management
326
+ </p>
327
+ </div>
328
+
329
+ <div class="trading-card rounded-xl p-8 floating-element" style="animation-delay: 0.8s;">
330
+ <div class="w-16 h-16 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-lg flex items-center justify-center mb-6">
331
+ <i data-feather="smartphone" class="w-8 h-8"></i>
332
+ </div>
333
+ <h4 class="text-2xl font-bold mb-4">Mobile Optimized</h4>
334
+ <p class="text-gray-300">
335
+ Perfectly responsive design from 320px to 8K displays with touch-optimized controls
336
+ </p>
337
+ </div>
338
+
339
+ <div class="trading-card rounded-xl p-8 floating-element" style="animation-delay: 1s;">
340
+ <div class="w-16 h-16 bg-gradient-to-r from-teal-500 to-cyan-500 rounded-lg flex items-center justify-center mb-6">
341
+ <i data-feather="cloud" class="w-8 h-8"></i>
342
+ </div>
343
+ <h4 class="text-2xl font-bold mb-4">Cloud Native</h4>
344
+ <p class="text-gray-300">
345
+ Auto-scaling infrastructure with 99.9% uptime guarantee and global CDN
346
+ </p>
347
+ </div>
348
+ </div>
349
+ </div>
350
+ </section>
351
+
352
+ <!-- Performance Metrics -->
353
+ <section class="py-20 bg-gray-800 bg-opacity-50">
354
+ <div class="container mx-auto px-6">
355
+ <h3 class="text-4xl font-bold text-center mb-16 bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
356
+ System Performance
357
+ </h3>
358
+
359
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
360
+ <div class="performance-metric rounded-xl p-6 text-center">
361
+ <div class="text-4xl font-bold text-blue-400 mb-2">99.9%</div>
362
+ <div class="text-gray-300">Uptime</div>
363
+ </div>
364
+ <div class="performance-metric rounded-xl p-6 text-center">
365
+ <div class="text-4xl font-bold text-green-400 mb-2">< 50ms</div>
366
+ <div class="text-gray-300">Latency</div>
367
+ </div>
368
+ <div class="performance-metric rounded-xl p-6 text-center">
369
+ <div class="text-4xl font-bold text-purple-400 mb-2">60 FPS</div>
370
+ <div class="text-gray-300">Rendering</div>
371
+ </div>
372
+ <div class="performance-metric rounded-xl p-6 text-center">
373
+ <div class="text-4xl font-bold text-yellow-400 mb-2">>95</div>
374
+ <div class="text-gray-300">Lighthouse Score</div>
375
+ </div>
376
+ </div>
377
+ </div>
378
+ </section>
379
+
380
+ <!-- Footer -->
381
+ <footer class="bg-gray-900 py-12">
382
+ <div class="container mx-auto px-6">
383
+ <div class="flex flex-col md:flex-row justify-between items-center">
384
+ <div class="flex items-center space-x-3 mb-4 md:mb-0">
385
+ <div class="w-8 h-8 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
386
+ <i data-feather="trending-up" class="w-5 h-5"></i>
387
+ </div>
388
+ <span class="text-xl font-bold">QuantumTrade Matrix</span>
389
+ </div>
390
+ <div class="flex space-x-6">
391
+ <a href="#" class="hover:text-blue-400 transition-colors">Privacy Policy</a>
392
+ <a href="#" class="hover:text-blue-400 transition-colors">Terms of Service</a>
393
+ <a href="#" class="hover:text-blue-400 transition-colors">Contact</a>
394
+ </div>
395
+ </div>
396
+ <div class="mt-8 pt-8 border-t border-gray-800 text-center text-gray-400">
397
+ <p>&copy; 2025 QuantumTrade Matrix. All rights reserved.</p>
398
+ </div>
399
+ </div>
400
+ </footer>
401
+
402
+ <script>
403
+ // Initialize Vanta.js background
404
+ VANTA.GLOBE({
405
+ el: "#vanta-bg",
406
+ mouseControls: true,
407
+ touchControls: true,
408
+ gyroControls: false,
409
+ minHeight: 200.00,
410
+ minWidth: 200.00,
411
+ scale: 1.00,
412
+ scaleMobile: 1.00,
413
+ color: 0x3b82f6,
414
+ color2: 0x8b5cf6,
415
+ size: 1.20,
416
+ backgroundColor: 0x0f172a
417
+ });
418
+
419
+ // Matrix rain effect
420
+ function createMatrixRain() {
421
+ const matrixBg = document.getElementById('matrix-bg');
422
+ const characters = '01アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン';
423
+
424
+ for (let i = 0; i < 50; i++) {
425
+ const char = document.createElement('div');
426
+ char.className = 'matrix-char';
427
+ char.textContent = characters[Math.floor(Math.random() * characters.length)];
428
+ char.style.left = Math.random() * 100 + '%';
429
+ char.style.animationDelay = Math.random() * 8 + 's';
430
+ char.style.animationDuration = (Math.random() * 3 + 5) + 's';
431
+ matrixBg.appendChild(char);
432
+ }
433
+ }
434
+
435
+ createMatrixRain();
436
+
437
+ // Animate elements on scroll
438
+ const observerOptions = {
439
+ threshold: 0.1,
440
+ rootMargin: '0px 0px -100px 0px'
441
+ };
442
+
443
+ const observer = new IntersectionObserver((entries) => {
444
+ entries.forEach(entry => {
445
+ if (entry.isIntersecting) {
446
+ entry.target.style.opacity = '1';
447
+ entry.target.style.transform = 'translateY(0)';
448
+ }
449
+ });
450
+ }, observerOptions);
451
+
452
+ // Observe all trading cards
453
+ document.querySelectorAll('.trading-card').forEach(card => {
454
+ card.style.opacity = '0';
455
+ card.style.transform = 'translateY(50px)';
456
+ card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
457
+ observer.observe(card);
458
+ });
459
+
460
+ // Simulate real-time price updates
461
+ function updatePrices() {
462
+ const priceElements = document.querySelectorAll('.price-ticker');
463
+ priceElements.forEach(element => {
464
+ const currentPrice = parseFloat(element.textContent);
465
+ const change = (Math.random() - 0.5) * 0.001;
466
+ const newPrice = currentPrice + change;
467
+ element.textContent = newPrice.toFixed(4);
468
+
469
+ // Animate the change
470
+ anime({
471
+ targets: element,
472
+ scale: [1, 1.1, 1],
473
+ duration: 300,
474
+ easing: 'easeInOutQuad'
475
+ });
476
+ });
477
+ }
478
+
479
+ // Update prices every 2 seconds
480
+ setInterval(updatePrices, 2000);
481
+
482
+ // Add hover effects to buttons
483
+ document.querySelectorAll('.quantum-button').forEach(button => {
484
+ button.addEventListener('mouseenter', function() {
485
+ anime({
486
+ targets: this,
487
+ scale: 1.05,
488
+ duration: 200,
489
+ easing: 'easeOutQuad'
490
+ });
491
+ });
492
+
493
+ button.addEventListener('mouseleave', function() {
494
+ anime({
495
+ targets: this,
496
+ scale: 1,
497
+ duration: 200,
498
+ easing: 'easeOutQuad'
499
+ });
500
+ });
501
+ });
502
+
503
+ // Initialize Feather icons
504
+ feather.replace();
505
+
506
+ // Smooth scrolling for navigation links
507
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
508
+ anchor.addEventListener('click', function (e) {
509
+ e.preventDefault();
510
+ const target = document.querySelector(this.getAttribute('href'));
511
+ if (target) {
512
+ target.scrollIntoView({
513
+ behavior: 'smooth',
514
+ block: 'start'
515
+ });
516
+ }
517
+ });
518
+ });
519
+
520
+ // Add loading animation
521
+ window.addEventListener('load', () => {
522
+ anime({
523
+ targets: 'body',
524
+ opacity: [0, 1],
525
+ duration: 1000,
526
+ easing: 'easeOutQuad'
527
+ });
528
+ });
529
+ </script>
530
+ </body>
531
  </html>
portfolio.html ADDED
@@ -0,0 +1,650 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Portfolio - QuantumTrade Matrix</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://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
13
+ <style>
14
+ .glass-morphism {
15
+ background: rgba(15, 23, 42, 0.7);
16
+ backdrop-filter: blur(10px);
17
+ border: 1px solid rgba(255, 255, 255, 0.1);
18
+ }
19
+
20
+ .trading-card {
21
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
22
+ border: 1px solid rgba(59, 130, 246, 0.3);
23
+ transition: all 0.3s ease;
24
+ }
25
+
26
+ .trading-card:hover {
27
+ transform: translateY(-2px);
28
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
29
+ }
30
+
31
+ .quantum-button {
32
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
33
+ transition: all 0.3s ease;
34
+ }
35
+
36
+ .quantum-button:hover {
37
+ transform: translateY(-1px);
38
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
39
+ }
40
+
41
+ .sidebar-item {
42
+ transition: all 0.3s ease;
43
+ border-left: 3px solid transparent;
44
+ }
45
+
46
+ .sidebar-item:hover {
47
+ background: rgba(59, 130, 246, 0.1);
48
+ border-left-color: #3b82f6;
49
+ }
50
+
51
+ .sidebar-item.active {
52
+ background: rgba(59, 130, 246, 0.2);
53
+ border-left-color: #3b82f6;
54
+ }
55
+
56
+ .portfolio-card {
57
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
58
+ border: 1px solid rgba(255, 255, 255, 0.1);
59
+ transition: all 0.3s ease;
60
+ }
61
+
62
+ .portfolio-card:hover {
63
+ transform: translateY(-3px);
64
+ box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
65
+ }
66
+
67
+ .asset-row {
68
+ background: rgba(59, 130, 246, 0.05);
69
+ border: 1px solid rgba(59, 130, 246, 0.1);
70
+ transition: all 0.3s ease;
71
+ }
72
+
73
+ .asset-row:hover {
74
+ background: rgba(59, 130, 246, 0.1);
75
+ border-color: rgba(59, 130, 246, 0.3);
76
+ }
77
+
78
+ .profit-positive {
79
+ color: #10b981;
80
+ background: rgba(16, 185, 129, 0.1);
81
+ }
82
+
83
+ .profit-negative {
84
+ color: #ef4444;
85
+ background: rgba(239, 68, 68, 0.1);
86
+ }
87
+
88
+ .chart-container {
89
+ position: relative;
90
+ height: 300px;
91
+ }
92
+
93
+ .metric-highlight {
94
+ background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
95
+ border: 1px solid rgba(59, 130, 246, 0.2);
96
+ }
97
+
98
+ @keyframes slideInLeft {
99
+ from {
100
+ opacity: 0;
101
+ transform: translateX(-30px);
102
+ }
103
+ to {
104
+ opacity: 1;
105
+ transform: translateX(0);
106
+ }
107
+ }
108
+
109
+ .slide-in-left {
110
+ animation: slideInLeft 0.6s ease-out;
111
+ }
112
+
113
+ .price-ticker {
114
+ font-family: 'Courier New', monospace;
115
+ font-weight: bold;
116
+ background: linear-gradient(135deg, #3b82f6, #8b5cf6);
117
+ -webkit-background-clip: text;
118
+ -webkit-text-fill-color: transparent;
119
+ background-clip: text;
120
+ }
121
+ </style>
122
+ </head>
123
+ <body class="bg-gray-900 text-white">
124
+ <!-- Navigation -->
125
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
126
+ <div class="container mx-auto px-6 py-4">
127
+ <div class="flex items-center justify-between">
128
+ <div class="flex items-center space-x-3">
129
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
130
+ <i data-feather="trending-up" class="w-6 h-6"></i>
131
+ </div>
132
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
133
+ QuantumTrade Matrix
134
+ </h1>
135
+ </div>
136
+
137
+ <div class="flex items-center space-x-4">
138
+ <div class="hidden md:flex items-center space-x-2">
139
+ <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div>
140
+ <span class="text-sm">System Online</span>
141
+ </div>
142
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
143
+ <i data-feather="user" class="w-5 h-5"></i>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </nav>
149
+
150
+ <!-- Main Layout -->
151
+ <div class="flex pt-20">
152
+ <!-- Sidebar -->
153
+ <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto">
154
+ <nav class="space-y-2">
155
+ <a href="dashboard.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
156
+ <i data-feather="home" class="w-5 h-5"></i>
157
+ <span>Dashboard</span>
158
+ </a>
159
+ <a href="signals.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
160
+ <i data-feather="radio" class="w-5 h-5"></i>
161
+ <span>Signals</span>
162
+ </a>
163
+ <a href="strategies.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
164
+ <i data-feather="target" class="w-5 h-5"></i>
165
+ <span>Strategies</span>
166
+ </a>
167
+ <a href="portfolio.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg">
168
+ <i data-feather="briefcase" class="w-5 h-5"></i>
169
+ <span>Portfolio</span>
170
+ </a>
171
+ <a href="settings.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
172
+ <i data-feather="settings" class="w-5 h-5"></i>
173
+ <span>Settings</span>
174
+ </a>
175
+ </nav>
176
+
177
+ <div class="mt-8 p-4 glass-morphism rounded-lg">
178
+ <h4 class="font-semibold mb-2">Portfolio Summary</h4>
179
+ <div class="space-y-2 text-sm">
180
+ <div class="flex justify-between">
181
+ <span class="text-gray-400">Total Value</span>
182
+ <span class="text-blue-400">$45,678</span>
183
+ </div>
184
+ <div class="flex justify-between">
185
+ <span class="text-gray-400">Today's P&L</span>
186
+ <span class="text-green-400">+$1,245</span>
187
+ </div>
188
+ <div class="flex justify-between">
189
+ <span class="text-gray-400">Total Return</span>
190
+ <span class="text-green-400">+23.4%</span>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </aside>
195
+
196
+ <!-- Main Content -->
197
+ <main class="ml-64 flex-1 p-6">
198
+ <!-- Portfolio Overview -->
199
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
200
+ <div class="metric-highlight rounded-xl p-6">
201
+ <div class="flex items-center justify-between mb-4">
202
+ <span class="text-gray-400">Total Balance</span>
203
+ <i data-feather="dollar-sign" class="w-5 h-5 text-blue-400"></i>
204
+ </div>
205
+ <div class="text-3xl font-bold">$45,678.45</div>
206
+ <div class="text-green-400 text-sm mt-2">+$1,245.32 today (+2.8%)</div>
207
+ </div>
208
+
209
+ <div class="metric-highlight rounded-xl p-6">
210
+ <div class="flex items-center justify-between mb-4">
211
+ <span class="text-gray-400">Available Margin</span>
212
+ <i data-feather="credit-card" class="w-5 h-5 text-green-400"></i>
213
+ </div>
214
+ <div class="text-3xl font-bold">$32,456.78</div>
215
+ <div class="text-gray-400 text-sm mt-2">Margin used: 29%</div>
216
+ </div>
217
+
218
+ <div class="metric-highlight rounded-xl p-6">
219
+ <div class="flex items-center justify-between mb-4">
220
+ <span class="text-gray-400">Open P&L</span>
221
+ <i data-feather="trending-up" class="w-5 h-5 text-purple-400"></i>
222
+ </div>
223
+ <div class="text-3xl font-bold text-green-400">+$2,134.56</div>
224
+ <div class="text-gray-400 text-sm mt-2">Across 8 positions</div>
225
+ </div>
226
+
227
+ <div class="metric-highlight rounded-xl p-6">
228
+ <div class="flex items-center justify-between mb-4">
229
+ <span class="text-gray-400">Total Return</span>
230
+ <i data-feather="award" class="w-5 h-5 text-yellow-400"></i>
231
+ </div>
232
+ <div class="text-3xl font-bold">+23.4%</div>
233
+ <div class="text-green-400 text-sm mt-2">Since inception</div>
234
+ </div>
235
+ </div>
236
+
237
+ <!-- Portfolio Performance Chart -->
238
+ <div class="trading-card rounded-xl p-6 mb-8">
239
+ <div class="flex items-center justify-between mb-6">
240
+ <h3 class="text-xl font-bold">Portfolio Performance</h3>
241
+ <div class="flex space-x-2">
242
+ <button class="px-3 py-1 rounded text-sm border border-gray-600 hover:bg-gray-700">1D</button>
243
+ <button class="px-3 py-1 rounded text-sm border border-gray-600 hover:bg-gray-700">1W</button>
244
+ <button class="px-3 py-1 rounded text-sm bg-blue-600">1M</button>
245
+ <button class="px-3 py-1 rounded text-sm border border-gray-600 hover:bg-gray-700">3M</button>
246
+ <button class="px-3 py-1 rounded text-sm border border-gray-600 hover:bg-gray-700">1Y</button>
247
+ <button class="px-3 py-1 rounded text-sm border border-gray-600 hover:bg-gray-700">ALL</button>
248
+ </div>
249
+ </div>
250
+ <div class="chart-container">
251
+ <canvas id="portfolioChart"></canvas>
252
+ </div>
253
+ </div>
254
+
255
+ <!-- Asset Allocation -->
256
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
257
+ <div class="trading-card rounded-xl p-6">
258
+ <h3 class="text-xl font-bold mb-6">Asset Allocation</h3>
259
+ <div class="chart-container mb-6">
260
+ <canvas id="allocationChart"></canvas>
261
+ </div>
262
+ <div class="space-y-3">
263
+ <div class="flex items-center justify-between">
264
+ <div class="flex items-center space-x-3">
265
+ <div class="w-4 h-4 bg-blue-500 rounded"></div>
266
+ <span>Forex</span>
267
+ </div>
268
+ <span class="font-semibold">65.2%</span>
269
+ </div>
270
+ <div class="flex items-center justify-between">
271
+ <div class="flex items-center space-x-3">
272
+ <div class="w-4 h-4 bg-green-500 rounded"></div>
273
+ <span>Crypto</span>
274
+ </div>
275
+ <span class="font-semibold">20.8%</span>
276
+ </div>
277
+ <div class="flex items-center justify-between">
278
+ <div class="flex items-center space-x-3">
279
+ <div class="w-4 h-4 bg-purple-500 rounded"></div>
280
+ <span>Indices</span>
281
+ </div>
282
+ <span class="font-semibold">10.5%</span>
283
+ </div>
284
+ <div class="flex items-center justify-between">
285
+ <div class="flex items-center space-x-3">
286
+ <div class="w-4 h-4 bg-yellow-500 rounded"></div>
287
+ <span>Commodities</span>
288
+ </div>
289
+ <span class="font-semibold">3.5%</span>
290
+ </div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="trading-card rounded-xl p-6">
295
+ <h3 class="text-xl font-bold mb-6">Top Performers</h3>
296
+ <div class="space-y-4">
297
+ <div class="asset-row rounded-lg p-4">
298
+ <div class="flex items-center justify-between mb-2">
299
+ <div class="flex items-center space-x-3">
300
+ <span class="text-lg font-semibold">EUR/USD</span>
301
+ <span class="text-sm text-gray-400">Long</span>
302
+ </div>
303
+ <div class="profit-positive px-3 py-1 rounded text-sm font-semibold">
304
+ +$456.78
305
+ </div>
306
+ </div>
307
+ <div class="flex justify-between text-sm">
308
+ <span class="text-gray-400">Entry: 1.0845</span>
309
+ <span class="price-ticker">Current: 1.0856</span>
310
+ <span class="text-green-400">+11 pips</span>
311
+ </div>
312
+ </div>
313
+
314
+ <div class="asset-row rounded-lg p-4">
315
+ <div class="flex items-center justify-between mb-2">
316
+ <div class="flex items-center space-x-3">
317
+ <span class="text-lg font-semibold">GBP/USD</span>
318
+ <span class="text-sm text-gray-400">Short</span>
319
+ </div>
320
+ <div class="profit-positive px-3 py-1 rounded text-sm font-semibold">
321
+ +$234.56
322
+ </div>
323
+ </div>
324
+ <div class="flex justify-between text-sm">
325
+ <span class="text-gray-400">Entry: 1.2755</span>
326
+ <span class="price-ticker">Current: 1.2743</span>
327
+ <span class="text-green-400">+12 pips</span>
328
+ </div>
329
+ </div>
330
+
331
+ <div class="asset-row rounded-lg p-4">
332
+ <div class="flex items-center justify-between mb-2">
333
+ <div class="flex items-center space-x-3">
334
+ <span class="text-lg font-semibold">USD/JPY</span>
335
+ <span class="text-sm text-gray-400">Long</span>
336
+ </div>
337
+ <div class="profit-negative px-3 py-1 rounded text-sm font-semibold">
338
+ -$123.45
339
+ </div>
340
+ </div>
341
+ <div class="flex justify-between text-sm">
342
+ <span class="text-gray-400">Entry: 149.90</span>
343
+ <span class="price-ticker">Current: 149.82</span>
344
+ <span class="text-red-400">-8 pips</span>
345
+ </div>
346
+ </div>
347
+
348
+ <div class="asset-row rounded-lg p-4">
349
+ <div class="flex items-center justify-between mb-2">
350
+ <div class="flex items-center space-x-3">
351
+ <span class="text-lg font-semibold">AUD/USD</span>
352
+ <span class="text-sm text-gray-400">Long</span>
353
+ </div>
354
+ <div class="profit-positive px-3 py-1 rounded text-sm font-semibold">
355
+ +$89.23
356
+ </div>
357
+ </div>
358
+ <div class="flex justify-between text-sm">
359
+ <span class="text-gray-400">Entry: 0.6543</span>
360
+ <span class="price-ticker">Current: 0.6548</span>
361
+ <span class="text-green-400">+5 pips</span>
362
+ </div>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+
368
+ <!-- Open Positions -->
369
+ <div class="trading-card rounded-xl p-6 mb-8">
370
+ <div class="flex items-center justify-between mb-6">
371
+ <h3 class="text-xl font-bold">Open Positions</h3>
372
+ <button class="quantum-button px-4 py-2 rounded-lg text-sm">
373
+ Close All
374
+ </button>
375
+ </div>
376
+
377
+ <div class="overflow-x-auto">
378
+ <table class="w-full">
379
+ <thead>
380
+ <tr class="border-b border-gray-700">
381
+ <th class="text-left py-3 px-4">Symbol</th>
382
+ <th class="text-left py-3 px-4">Type</th>
383
+ <th class="text-left py-3 px-4">Volume</th>
384
+ <th class="text-left py-3 px-4">Entry</th>
385
+ <th class="text-left py-3 px-4">Current</th>
386
+ <th class="text-left py-3 px-4">P&L</th>
387
+ <th class="text-left py-3 px-4">Margin</th>
388
+ <th class="text-left py-3 px-4">Actions</th>
389
+ </tr>
390
+ </thead>
391
+ <tbody id="positionsTable">
392
+ <!-- Positions will be populated here -->
393
+ </tbody>
394
+ </table>
395
+ </div>
396
+ </div>
397
+
398
+ <!-- Trade History -->
399
+ <div class="trading-card rounded-xl p-6">
400
+ <div class="flex items-center justify-between mb-6">
401
+ <h3 class="text-xl font-bold">Recent Trades</h3>
402
+ <select class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 text-sm">
403
+ <option>Last 7 Days</option>
404
+ <option>Last 30 Days</option>
405
+ <option>Last 90 Days</option>
406
+ <option>All Time</option>
407
+ </select>
408
+ </div>
409
+
410
+ <div class="overflow-x-auto">
411
+ <table class="w-full">
412
+ <thead>
413
+ <tr class="border-b border-gray-700">
414
+ <th class="text-left py-3 px-4">Date</th>
415
+ <th class="text-left py-3 px-4">Symbol</th>
416
+ <th class="text-left py-3 px-4">Type</th>
417
+ <th class="text-left py-3 px-4">Volume</th>
418
+ <th class="text-left py-3 px-4">Open</th>
419
+ <th class="text-left py-3 px-4">Close</th>
420
+ <th class="text-left py-3 px-4">P&L</th>
421
+ <th class="text-left py-3 px-4">Duration</th>
422
+ </tr>
423
+ </thead>
424
+ <tbody id="tradesTable">
425
+ <!-- Trades will be populated here -->
426
+ </tbody>
427
+ </table>
428
+ </div>
429
+ </div>
430
+ </main>
431
+ </div>
432
+
433
+ <script>
434
+ // Initialize portfolio performance chart
435
+ const portfolioCtx = document.getElementById('portfolioChart').getContext('2d');
436
+ const portfolioChart = new Chart(portfolioCtx, {
437
+ type: 'line',
438
+ data: {
439
+ labels: Array.from({length: 30}, (_, i) => `Day ${i + 1}`),
440
+ datasets: [{
441
+ label: 'Portfolio Value',
442
+ data: Array.from({length: 30}, (_, i) => 40000 + Math.random() * 5000 + i * 150),
443
+ borderColor: '#3b82f6',
444
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
445
+ tension: 0.4,
446
+ fill: true
447
+ }, {
448
+ label: 'Benchmark',
449
+ data: Array.from({length: 30}, (_, i) => 40000 + i * 100),
450
+ borderColor: '#6b7280',
451
+ borderDash: [5, 5],
452
+ tension: 0.4,
453
+ fill: false
454
+ }]
455
+ },
456
+ options: {
457
+ responsive: true,
458
+ maintainAspectRatio: false,
459
+ plugins: {
460
+ legend: {
461
+ display: true,
462
+ labels: {
463
+ color: '#9ca3af'
464
+ }
465
+ }
466
+ },
467
+ scales: {
468
+ x: {
469
+ grid: {
470
+ color: 'rgba(255, 255, 255, 0.1)'
471
+ },
472
+ ticks: {
473
+ color: '#9ca3af'
474
+ }
475
+ },
476
+ y: {
477
+ grid: {
478
+ color: 'rgba(255, 255, 255, 0.1)'
479
+ },
480
+ ticks: {
481
+ color: '#9ca3af'
482
+ }
483
+ }
484
+ }
485
+ }
486
+ });
487
+
488
+ // Initialize allocation chart
489
+ const allocationCtx = document.getElementById('allocationChart').getContext('2d');
490
+ const allocationChart = new Chart(allocationCtx, {
491
+ type: 'doughnut',
492
+ data: {
493
+ labels: ['Forex', 'Crypto', 'Indices', 'Commodities'],
494
+ datasets: [{
495
+ data: [65.2, 20.8, 10.5, 3.5],
496
+ backgroundColor: ['#3b82f6', '#10b981', '#8b5cf6', '#f59e0b'],
497
+ borderWidth: 0
498
+ }]
499
+ },
500
+ options: {
501
+ responsive: true,
502
+ maintainAspectRatio: false,
503
+ plugins: {
504
+ legend: {
505
+ display: false
506
+ }
507
+ }
508
+ }
509
+ });
510
+
511
+ // Generate random positions
512
+ function generatePositions() {
513
+ const symbols = ['EUR/USD', 'GBP/USD', 'USD/JPY', 'AUD/USD', 'USD/CHF', 'NZD/USD'];
514
+ const types = ['BUY', 'SELL'];
515
+ const tbody = document.getElementById('positionsTable');
516
+
517
+ const positions = Array.from({length: 8}, (_, i) => {
518
+ const symbol = symbols[Math.floor(Math.random() * symbols.length)];
519
+ const type = types[Math.floor(Math.random() * types.length)];
520
+ const volume = (Math.random() * 1.9 + 0.1).toFixed(2);
521
+ const entry = (1 + Math.random()).toFixed(4);
522
+ const current = (parseFloat(entry) + (Math.random() - 0.5) * 0.01).toFixed(4);
523
+ const pips = Math.floor((parseFloat(current) - parseFloat(entry)) * 10000);
524
+ const pl = (pips * volume * 10).toFixed(2);
525
+ const margin = (volume * 1000).toFixed(2);
526
+
527
+ return {
528
+ symbol, type, volume, entry, current, pips, pl, margin
529
+ };
530
+ });
531
+
532
+ tbody.innerHTML = positions.map(pos => `
533
+ <tr class="border-b border-gray-800 hover:bg-gray-800">
534
+ <td class="py-3 px-4">
535
+ <div class="flex items-center">
536
+ <span class="w-2 h-2 rounded-full ${pos.type === 'BUY' ? 'bg-green-500' : 'bg-red-500'} mr-2"></span>
537
+ ${pos.symbol}
538
+ </div>
539
+ </td>
540
+ <td class="py-3 px-4">
541
+ <span class="${pos.type === 'BUY' ? 'text-green-400' : 'text-red-400'}">${pos.type}</span>
542
+ </td>
543
+ <td class="py-3 px-4">${pos.volume}</td>
544
+ <td class="py-3 px-4">${pos.entry}</td>
545
+ <td class="py-3 px-4 price-ticker">${pos.current}</td>
546
+ <td class="py-3 px-4 ${pos.pips >= 0 ? 'text-green-400' : 'text-red-400'}">
547
+ ${pos.pips >= 0 ? '+' : ''}${pos.pl}
548
+ </td>
549
+ <td class="py-3 px-4">$${pos.margin}</td>
550
+ <td class="py-3 px-4">
551
+ <button class="text-blue-400 hover:text-blue-300">
552
+ <i data-feather="more-horizontal" class="w-5 h-5"></i>
553
+ </button>
554
+ </td>
555
+ </tr>
556
+ `).join('');
557
+ }
558
+
559
+ // Generate random trades
560
+ function generateTrades() {
561
+ const symbols = ['EUR/USD', 'GBP/USD', 'USD/JPY', 'AUD/USD', 'USD/CHF', 'NZD/USD'];
562
+ const types = ['BUY', 'SELL'];
563
+ const tbody = document.getElementById('tradesTable');
564
+
565
+ const trades = Array.from({length: 10}, (_, i) => {
566
+ const date = new Date(Date.now() - i * 86400000).toLocaleDateString();
567
+ const symbol = symbols[Math.floor(Math.random() * symbols.length)];
568
+ const type = types[Math.floor(Math.random() * types.length)];
569
+ const volume = (Math.random() * 1.9 + 0.1).toFixed(2);
570
+ const open = (1 + Math.random()).toFixed(4);
571
+ const close = (parseFloat(open) + (Math.random() - 0.5) * 0.02).toFixed(4);
572
+ const pips = Math.floor((parseFloat(close) - parseFloat(open)) * 10000);
573
+ const pl = (pips * volume * 10).toFixed(2);
574
+ const duration = Math.floor(Math.random() * 240) + 15;
575
+
576
+ return {
577
+ date, symbol, type, volume, open, close, pips, pl, duration
578
+ };
579
+ });
580
+
581
+ tbody.innerHTML = trades.map(trade => `
582
+ <tr class="border-b border-gray-800 hover:bg-gray-800">
583
+ <td class="py-3 px-4 text-gray-400">${trade.date}</td>
584
+ <td class="py-3 px-4">${trade.symbol}</td>
585
+ <td class="py-3 px-4">
586
+ <span class="${trade.type === 'BUY' ? 'text-green-400' : 'text-red-400'}">${trade.type}</span>
587
+ </td>
588
+ <td class="py-3 px-4">${trade.volume}</td>
589
+ <td class="py-3 px-4">${trade.open}</td>
590
+ <td class="py-3 px-4">${trade.close}</td>
591
+ <td class="py-3 px-4 ${trade.pips >= 0 ? 'text-green-400' : 'text-red-400'}">
592
+ ${trade.pips >= 0 ? '+' : ''}${trade.pl}
593
+ </td>
594
+ <td class="py-3 px-4 text-gray-400">${trade.duration}m</td>
595
+ </tr>
596
+ `).join('');
597
+ }
598
+
599
+ // Initial generation
600
+ generatePositions();
601
+ generateTrades();
602
+
603
+ // Update positions every 3 seconds
604
+ setInterval(generatePositions, 3000);
605
+
606
+ // Animate elements
607
+ anime({
608
+ targets: '.metric-highlight',
609
+ opacity: [0, 1],
610
+ translateY: [20, 0],
611
+ delay: anime.stagger(100),
612
+ duration: 800,
613
+ easing: 'easeOutQuad'
614
+ });
615
+
616
+ anime({
617
+ targets: '.portfolio-card',
618
+ opacity: [0, 1],
619
+ translateX: [-30, 0],
620
+ delay: anime.stagger(150),
621
+ duration: 800,
622
+ easing: 'easeOutQuad'
623
+ });
624
+
625
+ // Add hover effects
626
+ document.querySelectorAll('.asset-row').forEach(row => {
627
+ row.addEventListener('mouseenter', function() {
628
+ anime({
629
+ targets: this,
630
+ scale: 1.02,
631
+ duration: 200,
632
+ easing: 'easeOutQuad'
633
+ });
634
+ });
635
+
636
+ row.addEventListener('mouseleave', function() {
637
+ anime({
638
+ targets: this,
639
+ scale: 1,
640
+ duration: 200,
641
+ easing: 'easeOutQuad'
642
+ });
643
+ });
644
+ });
645
+
646
+ // Initialize Feather icons
647
+ feather.replace();
648
+ </script>
649
+ </body>
650
+ </html>
settings.html ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Settings - QuantumTrade Matrix</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://unpkg.com/feather-icons"></script>
12
+ <style>
13
+ .glass-morphism {
14
+ background: rgba(15, 23, 42, 0.7);
15
+ backdrop-filter: blur(10px);
16
+ border: 1px solid rgba(255, 255, 255, 0.1);
17
+ }
18
+
19
+ .trading-card {
20
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
21
+ border: 1px solid rgba(59, 130, 246, 0.3);
22
+ transition: all 0.3s ease;
23
+ }
24
+
25
+ .trading-card:hover {
26
+ transform: translateY(-2px);
27
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
28
+ }
29
+
30
+ .quantum-button {
31
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
32
+ transition: all 0.3s ease;
33
+ }
34
+
35
+ .quantum-button:hover {
36
+ transform: translateY(-1px);
37
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
38
+ }
39
+
40
+ .sidebar-item {
41
+ transition: all 0.3s ease;
42
+ border-left: 3px solid transparent;
43
+ }
44
+
45
+ .sidebar-item:hover {
46
+ background: rgba(59, 130, 246, 0.1);
47
+ border-left-color: #3b82f6;
48
+ }
49
+
50
+ .sidebar-item.active {
51
+ background: rgba(59, 130, 246, 0.2);
52
+ border-left-color: #3b82f6;
53
+ }
54
+
55
+ .settings-card {
56
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
57
+ border: 1px solid rgba(255, 255, 255, 0.1);
58
+ transition: all 0.3s ease;
59
+ }
60
+
61
+ .settings-card:hover {
62
+ transform: translateY(-1px);
63
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
64
+ }
65
+
66
+ .toggle-switch {
67
+ position: relative;
68
+ width: 48px;
69
+ height: 24px;
70
+ background: #374151;
71
+ border-radius: 24px;
72
+ cursor: pointer;
73
+ transition: all 0.3s ease;
74
+ }
75
+
76
+ .toggle-switch.active {
77
+ background: #3b82f6;
78
+ }
79
+
80
+ .toggle-switch::after {
81
+ content: '';
82
+ position: absolute;
83
+ top: 2px;
84
+ left: 2px;
85
+ width: 20px;
86
+ height: 20px;
87
+ background: white;
88
+ border-radius: 50%;
89
+ transition: all 0.3s ease;
90
+ }
91
+
92
+ .toggle-switch.active::after {
93
+ left: 26px;
94
+ }
95
+
96
+ .input-field {
97
+ background: rgba(31, 41, 55, 0.5);
98
+ border: 1px solid rgba(59, 130, 246, 0.3);
99
+ transition: all 0.3s ease;
100
+ }
101
+
102
+ .input-field:focus {
103
+ border-color: #3b82f6;
104
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
105
+ }
106
+
107
+ .danger-zone {
108
+ background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
109
+ border: 1px solid rgba(239, 68, 68, 0.3);
110
+ }
111
+
112
+ .danger-button {
113
+ background: linear-gradient(45deg, #ef4444, #dc2626);
114
+ transition: all 0.3s ease;
115
+ }
116
+
117
+ .danger-button:hover {
118
+ transform: translateY(-1px);
119
+ box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
120
+ }
121
+
122
+ @keyframes fadeIn {
123
+ from {
124
+ opacity: 0;
125
+ transform: translateY(10px);
126
+ }
127
+ to {
128
+ opacity: 1;
129
+ transform: translateY(0);
130
+ }
131
+ }
132
+
133
+ .fade-in {
134
+ animation: fadeIn 0.5s ease-out;
135
+ }
136
+
137
+ .tab-content {
138
+ display: none;
139
+ }
140
+
141
+ .tab-content.active {
142
+ display: block;
143
+ }
144
+ </style>
145
+ </head>
146
+ <body class="bg-gray-900 text-white">
147
+ <!-- Navigation -->
148
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
149
+ <div class="container mx-auto px-6 py-4">
150
+ <div class="flex items-center justify-between">
151
+ <div class="flex items-center space-x-3">
152
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
153
+ <i data-feather="trending-up" class="w-6 h-6"></i>
154
+ </div>
155
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
156
+ QuantumTrade Matrix
157
+ </h1>
158
+ </div>
159
+
160
+ <div class="flex items-center space-x-4">
161
+ <div class="hidden md:flex items-center space-x-2">
162
+ <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div>
163
+ <span class="text-sm">System Online</span>
164
+ </div>
165
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
166
+ <i data-feather="user" class="w-5 h-5"></i>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ </nav>
172
+
173
+ <!-- Main Layout -->
174
+ <div class="flex pt-20">
175
+ <!-- Sidebar -->
176
+ <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto">
177
+ <nav class="space-y-2">
178
+ <a href="dashboard.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
179
+ <i data-feather="home" class="w-5 h-5"></i>
180
+ <span>Dashboard</span>
181
+ </a>
182
+ <a href="signals.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
183
+ <i data-feather="radio" class="w-5 h-5"></i>
184
+ <span>Signals</span>
185
+ </a>
186
+ <a href="strategies.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
187
+ <i data-feather="target" class="w-5 h-5"></i>
188
+ <span>Strategies</span>
189
+ </a>
190
+ <a href="portfolio.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
191
+ <i data-feather="briefcase" class="w-5 h-5"></i>
192
+ <span>Portfolio</span>
193
+ </a>
194
+ <a href="settings.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg">
195
+ <i data-feather="settings" class="w-5 h-5"></i>
196
+ <span>Settings</span>
197
+ </a>
198
+ </nav>
199
+ </aside>
200
+
201
+ <!-- Main Content -->
202
+ <main class="ml-64 flex-1 p-6">
203
+ <!-- Header -->
204
+ <div class="mb-8">
205
+ <h2 class="text-3xl font-bold mb-6">Settings</h2>
206
+
207
+ <!-- Settings Tabs -->
208
+ <div class="flex space-x-1 mb-6 bg-gray-800 bg-opacity-50 p-1 rounded-lg">
209
+ <button class="tab-button px-6 py-2 rounded-lg text-sm font-medium active" data-tab="general">
210
+ General
211
+ </button>
212
+ <button class="tab-button px-6 py-2 rounded-lg text-sm font-medium" data-tab="security">
213
+ Security
214
+ </button>
215
+ <button class="tab-button px-6 py-2 rounded-lg text-sm font-medium" data-tab="notifications">
216
+ Notifications
217
+ </button>
218
+ <button class="tab-button px-6 py-2 rounded-lg text-sm font-medium" data-tab="api">
219
+ API & Integrations
220
+ </button>
221
+ <button class="tab-button px-6 py-2 rounded-lg text-sm font-medium" data-tab="advanced">
222
+ Advanced
223
+ </button>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- General Settings -->
228
+ <div id="general" class="tab-content active">
229
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
230
+ <!-- Profile Settings -->
231
+ <div class="settings-card rounded-xl p-6 fade-in">
232
+ <h3 class="text-xl font-bold mb-6">Profile Information</h3>
233
+
234
+ <div class="space-y-4">
235
+ <div>
236
+ <label class="block text-sm text-gray-400 mb-2">Full Name</label>
237
+ <input type="text" class="input-field w-full px-4 py-2 rounded-lg" value="John Doe">
238
+ </div>
239
+
240
+ <div>
241
+ <label class="block text-sm text-gray-400 mb-2">Email Address</label>
242
+ <input type="email" class="input-field w-full px-4 py-2 rounded-lg" value="john.doe@example.com">
243
+ </div>
244
+
245
+ <div>
246
+ <label class="block text-sm text-gray-400 mb-2">Phone Number</label>
247
+ <input type="tel" class="input-field w-full px-4 py-2 rounded-lg" value="+1 (555) 123-4567">
248
+ </div>
249
+
250
+ <div>
251
+ <label class="block text-sm text-gray-400 mb-2">Timezone</label>
252
+ <select class="input-field w-full px-4 py-2 rounded-lg">
253
+ <option>UTC-5 (Eastern Time)</option>
254
+ <option>UTC-6 (Central Time)</option>
255
+ <option>UTC-7 (Mountain Time)</option>
256
+ <option>UTC-8 (Pacific Time)</option>
257
+ <option>UTC+0 (GMT)</option>
258
+ <option>UTC+1 (CET)</option>
259
+ </select>
260
+ </div>
261
+
262
+ <div>
263
+ <label class="block text-sm text-gray-400 mb-2">Language</label>
264
+ <select class="input-field w-full px-4 py-2 rounded-lg">
265
+ <option>English</option>
266
+ </body>
267
+ </html>
signals.html ADDED
@@ -0,0 +1,554 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Signals - QuantumTrade Matrix</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://unpkg.com/feather-icons"></script>
12
+ <style>
13
+ .glass-morphism {
14
+ background: rgba(15, 23, 42, 0.7);
15
+ backdrop-filter: blur(10px);
16
+ border: 1px solid rgba(255, 255, 255, 0.1);
17
+ }
18
+
19
+ .trading-card {
20
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
21
+ border: 1px solid rgba(59, 130, 246, 0.3);
22
+ transition: all 0.3s ease;
23
+ }
24
+
25
+ .trading-card:hover {
26
+ transform: translateY(-2px);
27
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
28
+ }
29
+
30
+ .quantum-button {
31
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
32
+ transition: all 0.3s ease;
33
+ }
34
+
35
+ .quantum-button:hover {
36
+ transform: translateY(-1px);
37
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
38
+ }
39
+
40
+ .signal-buy {
41
+ background: #10b981;
42
+ box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
43
+ }
44
+
45
+ .signal-sell {
46
+ background: #ef4444;
47
+ box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
48
+ }
49
+
50
+ .signal-hold {
51
+ background: #f59e0b;
52
+ box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
53
+ }
54
+
55
+ .price-ticker {
56
+ font-family: 'Courier New', monospace;
57
+ font-weight: bold;
58
+ background: linear-gradient(135deg, #3b82f6, #8b5cf6);
59
+ -webkit-background-clip: text;
60
+ -webkit-text-fill-color: transparent;
61
+ background-clip: text;
62
+ }
63
+
64
+ .sidebar-item {
65
+ transition: all 0.3s ease;
66
+ border-left: 3px solid transparent;
67
+ }
68
+
69
+ .sidebar-item:hover {
70
+ background: rgba(59, 130, 246, 0.1);
71
+ border-left-color: #3b82f6;
72
+ }
73
+
74
+ .sidebar-item.active {
75
+ background: rgba(59, 130, 246, 0.2);
76
+ border-left-color: #3b82f6;
77
+ }
78
+
79
+ .signal-card {
80
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
81
+ border: 1px solid rgba(255, 255, 255, 0.1);
82
+ transition: all 0.3s ease;
83
+ }
84
+
85
+ .signal-card:hover {
86
+ transform: translateY(-3px);
87
+ box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
88
+ }
89
+
90
+ .filter-chip {
91
+ background: rgba(59, 130, 246, 0.1);
92
+ border: 1px solid rgba(59, 130, 246, 0.3);
93
+ transition: all 0.3s ease;
94
+ }
95
+
96
+ .filter-chip:hover, .filter-chip.active {
97
+ background: rgba(59, 130, 246, 0.3);
98
+ border-color: #3b82f6;
99
+ }
100
+
101
+ @keyframes slideIn {
102
+ from {
103
+ opacity: 0;
104
+ transform: translateY(20px);
105
+ }
106
+ to {
107
+ opacity: 1;
108
+ transform: translateY(0);
109
+ }
110
+ }
111
+
112
+ .signal-item {
113
+ animation: slideIn 0.5s ease-out;
114
+ }
115
+ </style>
116
+ </head>
117
+ <body class="bg-gray-900 text-white">
118
+ <!-- Navigation -->
119
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
120
+ <div class="container mx-auto px-6 py-4">
121
+ <div class="flex items-center justify-between">
122
+ <div class="flex items-center space-x-3">
123
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
124
+ <i data-feather="trending-up" class="w-6 h-6"></i>
125
+ </div>
126
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
127
+ QuantumTrade Matrix
128
+ </h1>
129
+ </div>
130
+
131
+ <div class="flex items-center space-x-4">
132
+ <div class="hidden md:flex items-center space-x-2">
133
+ <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div>
134
+ <span class="text-sm">System Online</span>
135
+ </div>
136
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
137
+ <i data-feather="user" class="w-5 h-5"></i>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </div>
142
+ </nav>
143
+
144
+ <!-- Main Layout -->
145
+ <div class="flex pt-20">
146
+ <!-- Sidebar -->
147
+ <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto">
148
+ <nav class="space-y-2">
149
+ <a href="dashboard.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
150
+ <i data-feather="home" class="w-5 h-5"></i>
151
+ <span>Dashboard</span>
152
+ </a>
153
+ <a href="signals.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg">
154
+ <i data-feather="radio" class="w-5 h-5"></i>
155
+ <span>Signals</span>
156
+ </a>
157
+ <a href="strategies.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
158
+ <i data-feather="target" class="w-5 h-5"></i>
159
+ <span>Strategies</span>
160
+ </a>
161
+ <a href="portfolio.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
162
+ <i data-feather="briefcase" class="w-5 h-5"></i>
163
+ <span>Portfolio</span>
164
+ </a>
165
+ <a href="settings.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
166
+ <i data-feather="settings" class="w-5 h-5"></i>
167
+ <span>Settings</span>
168
+ </a>
169
+ </nav>
170
+
171
+ <div class="mt-8 p-4 glass-morphism rounded-lg">
172
+ <h4 class="font-semibold mb-2">Signal Stats</h4>
173
+ <div class="space-y-2 text-sm">
174
+ <div class="flex justify-between">
175
+ <span class="text-gray-400">Total Signals</span>
176
+ <span class="text-blue-400">1,247</span>
177
+ </div>
178
+ <div class="flex justify-between">
179
+ <span class="text-gray-400">Success Rate</span>
180
+ <span class="text-green-400">78.5%</span>
181
+ </div>
182
+ <div class="flex justify-between">
183
+ <span class="text-gray-400">Avg. P&L</span>
184
+ <span class="text-green-400">+45 pips</span>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </aside>
189
+
190
+ <!-- Main Content -->
191
+ <main class="ml-64 flex-1 p-6">
192
+ <!-- Filters -->
193
+ <div class="mb-8">
194
+ <h2 class="text-3xl font-bold mb-6">Trading Signals</h2>
195
+
196
+ <div class="flex flex-wrap gap-3 mb-6">
197
+ <button class="filter-chip active px-4 py-2 rounded-lg text-sm">All Signals</button>
198
+ <button class="filter-chip px-4 py-2 rounded-lg text-sm">Buy Only</button>
199
+ <button class="filter-chip px-4 py-2 rounded-lg text-sm">Sell Only</button>
200
+ <button class="filter-chip px-4 py-2 rounded-lg text-sm">High Confidence</button>
201
+ <button class="filter-chip px-4 py-2 rounded-lg text-sm">Recent</button>
202
+ </div>
203
+
204
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
205
+ <select class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2">
206
+ <option>All Symbols</option>
207
+ <option>EUR/USD</option>
208
+ <option>GBP/USD</option>
209
+ <option>USD/JPY</option>
210
+ <option>AUD/USD</option>
211
+ </select>
212
+
213
+ <select class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2">
214
+ <option>All Timeframes</option>
215
+ <option>1 Minute</option>
216
+ <option>5 Minutes</option>
217
+ <option>15 Minutes</option>
218
+ <option>1 Hour</option>
219
+ <option>4 Hours</option>
220
+ <option>1 Day</option>
221
+ </select>
222
+
223
+ <select class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2">
224
+ <option>All Strategies</option>
225
+ <option>Scalping</option>
226
+ <option>Day Trading</option>
227
+ <option>Swing Trading</option>
228
+ <option>Position Trading</option>
229
+ </select>
230
+ </div>
231
+ </div>
232
+
233
+ <!-- Signal Cards Grid -->
234
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
235
+ <!-- Signal Card 1 -->
236
+ <div class="signal-card rounded-xl p-6 signal-item">
237
+ <div class="flex items-center justify-between mb-4">
238
+ <div class="flex items-center space-x-3">
239
+ <span class="signal-indicator signal-buy"></span>
240
+ <div>
241
+ <h3 class="font-bold text-lg">EUR/USD</h3>
242
+ <p class="text-sm text-gray-400">5 Minute</p>
243
+ </div>
244
+ </div>
245
+ <div class="text-right">
246
+ <div class="price-ticker text-xl">1.0856</div>
247
+ <div class="text-green-400 text-sm">+0.0011</div>
248
+ </div>
249
+ </div>
250
+
251
+ <div class="mb-4">
252
+ <div class="flex justify-between items-center mb-2">
253
+ <span class="text-gray-400">Signal Type</span>
254
+ <span class="text-green-400 font-semibold">BUY</span>
255
+ </div>
256
+ <div class="flex justify-between items-center mb-2">
257
+ <span class="text-gray-400">Confidence</span>
258
+ <div class="flex items-center">
259
+ <div class="w-20 bg-gray-700 rounded-full h-2 mr-2">
260
+ <div class="bg-green-500 h-2 rounded-full" style="width: 85%"></div>
261
+ </div>
262
+ <span class="text-sm">85%</span>
263
+ </div>
264
+ </div>
265
+ <div class="flex justify-between items-center mb-2">
266
+ <span class="text-gray-400">Entry Price</span>
267
+ <span>1.0845</span>
268
+ </div>
269
+ <div class="flex justify-between items-center mb-2">
270
+ <span class="text-gray-400">Take Profit</span>
271
+ <span class="text-green-400">1.0865</span>
272
+ </div>
273
+ <div class="flex justify-between items-center">
274
+ <span class="text-gray-400">Stop Loss</span>
275
+ <span class="text-red-400">1.0835</span>
276
+ </div>
277
+ </div>
278
+
279
+ <div class="flex space-x-2">
280
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
281
+ Execute
282
+ </button>
283
+ <button class="flex-1 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
284
+ Details
285
+ </button>
286
+ </div>
287
+ </div>
288
+
289
+ <!-- Signal Card 2 -->
290
+ <div class="signal-card rounded-xl p-6 signal-item" style="animation-delay: 0.1s;">
291
+ <div class="flex items-center justify-between mb-4">
292
+ <div class="flex items-center space-x-3">
293
+ <span class="signal-indicator signal-sell"></span>
294
+ <div>
295
+ <h3 class="font-bold text-lg">GBP/USD</h3>
296
+ <p class="text-sm text-gray-400">15 Minute</p>
297
+ </div>
298
+ </div>
299
+ <div class="text-right">
300
+ <div class="price-ticker text-xl">1.2743</div>
301
+ <div class="text-red-400 text-sm">-0.0012</div>
302
+ </div>
303
+ </div>
304
+
305
+ <div class="mb-4">
306
+ <div class="flex justify-between items-center mb-2">
307
+ <span class="text-gray-400">Signal Type</span>
308
+ <span class="text-red-400 font-semibold">SELL</span>
309
+ </div>
310
+ <div class="flex justify-between items-center mb-2">
311
+ <span class="text-gray-400">Confidence</span>
312
+ <div class="flex items-center">
313
+ <div class="w-20 bg-gray-700 rounded-full h-2 mr-2">
314
+ <div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div>
315
+ </div>
316
+ <span class="text-sm">78%</span>
317
+ </div>
318
+ </div>
319
+ <div class="flex justify-between items-center mb-2">
320
+ <span class="text-gray-400">Entry Price</span>
321
+ <span>1.2755</span>
322
+ </div>
323
+ <div class="flex justify-between items-center mb-2">
324
+ <span class="text-gray-400">Take Profit</span>
325
+ <span class="text-green-400">1.2735</span>
326
+ </div>
327
+ <div class="flex justify-between items-center">
328
+ <span class="text-gray-400">Stop Loss</span>
329
+ <span class="text-red-400">1.2765</span>
330
+ </div>
331
+ </div>
332
+
333
+ <div class="flex space-x-2">
334
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
335
+ Execute
336
+ </button>
337
+ <button class="flex-1 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
338
+ Details
339
+ </button>
340
+ </div>
341
+ </div>
342
+
343
+ <!-- Signal Card 3 -->
344
+ <div class="signal-card rounded-xl p-6 signal-item" style="animation-delay: 0.2s;">
345
+ <div class="flex items-center justify-between mb-4">
346
+ <div class="flex items-center space-x-3">
347
+ <span class="signal-indicator signal-hold"></span>
348
+ <div>
349
+ <h3 class="font-bold text-lg">USD/JPY</h3>
350
+ <p class="text-sm text-gray-400">1 Hour</p>
351
+ </div>
352
+ </div>
353
+ <div class="text-right">
354
+ <div class="price-ticker text-xl">149.82</div>
355
+ <div class="text-green-400 text-sm">+0.02</div>
356
+ </div>
357
+ </div>
358
+
359
+ <div class="mb-4">
360
+ <div class="flex justify-between items-center mb-2">
361
+ <span class="text-gray-400">Signal Type</span>
362
+ <span class="text-yellow-400 font-semibold">HOLD</span>
363
+ </div>
364
+ <div class="flex justify-between items-center mb-2">
365
+ <span class="text-gray-400">Confidence</span>
366
+ <div class="flex items-center">
367
+ <div class="w-20 bg-gray-700 rounded-full h-2 mr-2">
368
+ <div class="bg-yellow-500 h-2 rounded-full" style="width: 65%"></div>
369
+ </div>
370
+ <span class="text-sm">65%</span>
371
+ </div>
372
+ </div>
373
+ <div class="flex justify-between items-center mb-2">
374
+ <span class="text-gray-400">Entry Price</span>
375
+ <span>149.80</span>
376
+ </div>
377
+ <div class="flex justify-between items-center mb-2">
378
+ <span class="text-gray-400">Take Profit</span>
379
+ <span class="text-green-400">150.20</span>
380
+ </div>
381
+ <div class="flex justify-between items-center">
382
+ <span class="text-gray-400">Stop Loss</span>
383
+ <span class="text-red-400">149.40</span>
384
+ </div>
385
+ </div>
386
+
387
+ <div class="flex space-x-2">
388
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
389
+ Execute
390
+ </button>
391
+ <button class="flex-1 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
392
+ Details
393
+ </button>
394
+ </div>
395
+ </div>
396
+ </div>
397
+
398
+ <!-- Detailed Signals Table -->
399
+ <div class="trading-card rounded-xl p-6">
400
+ <div class="flex items-center justify-between mb-6">
401
+ <h3 class="text-xl font-bold">All Signals</h3>
402
+ <div class="flex space-x-2">
403
+ <button class="quantum-button px-4 py-2 rounded-lg text-sm">
404
+ Export CSV
405
+ </button>
406
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
407
+ Auto-Trade
408
+ </button>
409
+ </div>
410
+ </div>
411
+
412
+ <div class="overflow-x-auto">
413
+ <table class="w-full">
414
+ <thead>
415
+ <tr class="border-b border-gray-700">
416
+ <th class="text-left py-3 px-4">Time</th>
417
+ <th class="text-left py-3 px-4">Symbol</th>
418
+ <th class="text-left py-3 px-4">Type</th>
419
+ <th class="text-left py-3 px-4">Entry</th>
420
+ <th class="text-left py-3 px-4">Current</th>
421
+ <th class="text-left py-3 px-4">P&L</th>
422
+ <th class="text-left py-3 px-4">Confidence</th>
423
+ <th class="text-left py-3 px-4">Status</th>
424
+ <th class="text-left py-3 px-4">Actions</th>
425
+ </tr>
426
+ </thead>
427
+ <tbody id="signalsTableBody">
428
+ <!-- Signals will be populated here -->
429
+ </tbody>
430
+ </table>
431
+ </div>
432
+
433
+ <div class="mt-6 flex justify-center">
434
+ <div class="flex space-x-2">
435
+ <button class="px-3 py-1 rounded border border-gray-600 hover:bg-gray-700">Previous</button>
436
+ <button class="px-3 py-1 rounded bg-blue-600">1</button>
437
+ <button class="px-3 py-1 rounded border border-gray-600 hover:bg-gray-700">2</button>
438
+ <button class="px-3 py-1 rounded border border-gray-600 hover:bg-gray-700">3</button>
439
+ <button class="px-3 py-1 rounded border border-gray-600 hover:bg-gray-700">Next</button>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ </main>
444
+ </div>
445
+
446
+ <script>
447
+ // Generate random signals
448
+ const symbols = ['EUR/USD', 'GBP/USD', 'USD/JPY', 'AUD/USD', 'USD/CHF', 'NZD/USD'];
449
+ const timeframes = ['1m', '5m', '15m', '1h', '4h', '1d'];
450
+ const signalTypes = ['BUY', 'SELL', 'HOLD'];
451
+
452
+ function generateSignals() {
453
+ const signals = [];
454
+ const now = new Date();
455
+
456
+ for (let i = 0; i < 20; i++) {
457
+ const time = new Date(now - i * 5 * 60 * 1000);
458
+ const symbol = symbols[Math.floor(Math.random() * symbols.length)];
459
+ const type = signalTypes[Math.floor(Math.random() * signalTypes.length)];
460
+ const entry = (1 + Math.random() * 2).toFixed(4);
461
+ const current = (parseFloat(entry) + (Math.random() - 0.5) * 0.01).toFixed(4);
462
+ const confidence = Math.floor(Math.random() * 30) + 70;
463
+ const pips = Math.floor((parseFloat(current) - parseFloat(entry)) * 10000);
464
+
465
+ signals.push({
466
+ time: time.toLocaleTimeString(),
467
+ symbol,
468
+ type,
469
+ entry,
470
+ current,
471
+ pips,
472
+ confidence,
473
+ status: Math.random() > 0.5 ? 'Active' : 'Executed'
474
+ });
475
+ }
476
+
477
+ return signals;
478
+ }
479
+
480
+ function renderSignals() {
481
+ const tbody = document.getElementById('signalsTableBody');
482
+ const signals = generateSignals();
483
+
484
+ tbody.innerHTML = signals.map(signal => `
485
+ <tr class="border-b border-gray-800 hover:bg-gray-800 signal-item">
486
+ <td class="py-3 px-4 text-gray-400">${signal.time}</td>
487
+ <td class="py-3 px-4">
488
+ <div class="flex items-center">
489
+ <span class="signal-indicator signal-${signal.type.toLowerCase()}"></span>
490
+ ${signal.symbol}
491
+ </div>
492
+ </td>
493
+ <td class="py-3 px-4">
494
+ <span class="${signal.type === 'BUY' ? 'text-green-400' : signal.type === 'SELL' ? 'text-red-400' : 'text-yellow-400'}">
495
+ ${signal.type}
496
+ </span>
497
+ </td>
498
+ <td class="py-3 px-4">${signal.entry}</td>
499
+ <td class="py-3 px-4 price-ticker">${signal.current}</td>
500
+ <td class="py-3 px-4 ${signal.pips >= 0 ? 'text-green-400' : 'text-red-400'}">
501
+ ${signal.pips >= 0 ? '+' : ''}${signal.pips} pips
502
+ </td>
503
+ <td class="py-3 px-4">
504
+ <div class="flex items-center">
505
+ <div class="w-16 bg-gray-700 rounded-full h-2 mr-2">
506
+ <div class="bg-${signal.confidence > 80 ? 'green' : signal.confidence > 60 ? 'yellow' : 'red'}-500 h-2 rounded-full" style="width: ${signal.confidence}%"></div>
507
+ </div>
508
+ <span class="text-sm">${signal.confidence}%</span>
509
+ </div>
510
+ </td>
511
+ <td class="py-3 px-4">
512
+ <span class="px-2 py-1 rounded text-xs ${signal.status === 'Active' ? 'bg-green-500 bg-opacity-20 text-green-400' : 'bg-blue-500 bg-opacity-20 text-blue-400'}">
513
+ ${signal.status}
514
+ </span>
515
+ </td>
516
+ <td class="py-3 px-4">
517
+ <button class="text-blue-400 hover:text-blue-300">
518
+ <i data-feather="more-horizontal" class="w-5 h-5"></i>
519
+ </button>
520
+ </td>
521
+ </tr>
522
+ `).join('');
523
+ }
524
+
525
+ // Initial render
526
+ renderSignals();
527
+
528
+ // Update signals every 5 seconds
529
+ setInterval(renderSignals, 5000);
530
+
531
+ // Add filter functionality
532
+ document.querySelectorAll('.filter-chip').forEach(chip => {
533
+ chip.addEventListener('click', function() {
534
+ document.querySelectorAll('.filter-chip').forEach(c => c.classList.remove('active'));
535
+ this.classList.add('active');
536
+ renderSignals();
537
+ });
538
+ });
539
+
540
+ // Animate signal cards
541
+ anime({
542
+ targets: '.signal-card',
543
+ opacity: [0, 1],
544
+ translateY: [30, 0],
545
+ delay: anime.stagger(100),
546
+ duration: 800,
547
+ easing: 'easeOutQuad'
548
+ });
549
+
550
+ // Initialize Feather icons
551
+ feather.replace();
552
+ </script>
553
+ </body>
554
+ </html>
strategies.html ADDED
@@ -0,0 +1,660 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Strategies - QuantumTrade Matrix</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://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
13
+ <style>
14
+ .glass-morphism {
15
+ background: rgba(15, 23, 42, 0.7);
16
+ backdrop-filter: blur(10px);
17
+ border: 1px solid rgba(255, 255, 255, 0.1);
18
+ }
19
+
20
+ .trading-card {
21
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
22
+ border: 1px solid rgba(59, 130, 246, 0.3);
23
+ transition: all 0.3s ease;
24
+ }
25
+
26
+ .trading-card:hover {
27
+ transform: translateY(-2px);
28
+ box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
29
+ }
30
+
31
+ .quantum-button {
32
+ background: linear-gradient(45deg, #3b82f6, #8b5cf6);
33
+ transition: all 0.3s ease;
34
+ }
35
+
36
+ .quantum-button:hover {
37
+ transform: translateY(-1px);
38
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
39
+ }
40
+
41
+ .sidebar-item {
42
+ transition: all 0.3s ease;
43
+ border-left: 3px solid transparent;
44
+ }
45
+
46
+ .sidebar-item:hover {
47
+ background: rgba(59, 130, 246, 0.1);
48
+ border-left-color: #3b82f6;
49
+ }
50
+
51
+ .sidebar-item.active {
52
+ background: rgba(59, 130, 246, 0.2);
53
+ border-left-color: #3b82f6;
54
+ }
55
+
56
+ .strategy-card {
57
+ background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
58
+ border: 1px solid rgba(255, 255, 255, 0.1);
59
+ transition: all 0.3s ease;
60
+ }
61
+
62
+ .strategy-card:hover {
63
+ transform: translateY(-3px);
64
+ box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
65
+ }
66
+
67
+ .performance-badge {
68
+ background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
69
+ border: 1px solid rgba(16, 185, 129, 0.3);
70
+ }
71
+
72
+ .chart-container {
73
+ position: relative;
74
+ height: 200px;
75
+ }
76
+
77
+ .metric-box {
78
+ background: rgba(59, 130, 246, 0.1);
79
+ border: 1px solid rgba(59, 130, 246, 0.2);
80
+ }
81
+
82
+ @keyframes fadeInUp {
83
+ from {
84
+ opacity: 0;
85
+ transform: translateY(30px);
86
+ }
87
+ to {
88
+ opacity: 1;
89
+ transform: translateY(0);
90
+ }
91
+ }
92
+
93
+ .fade-in-up {
94
+ animation: fadeInUp 0.6s ease-out;
95
+ }
96
+ </style>
97
+ </head>
98
+ <body class="bg-gray-900 text-white">
99
+ <!-- Navigation -->
100
+ <nav class="fixed top-0 w-full z-50 glass-morphism">
101
+ <div class="container mx-auto px-6 py-4">
102
+ <div class="flex items-center justify-between">
103
+ <div class="flex items-center space-x-3">
104
+ <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
105
+ <i data-feather="trending-up" class="w-6 h-6"></i>
106
+ </div>
107
+ <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent">
108
+ QuantumTrade Matrix
109
+ </h1>
110
+ </div>
111
+
112
+ <div class="flex items-center space-x-4">
113
+ <div class="hidden md:flex items-center space-x-2">
114
+ <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div>
115
+ <span class="text-sm">System Online</span>
116
+ </div>
117
+ <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center">
118
+ <i data-feather="user" class="w-5 h-5"></i>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </nav>
124
+
125
+ <!-- Main Layout -->
126
+ <div class="flex pt-20">
127
+ <!-- Sidebar -->
128
+ <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto">
129
+ <nav class="space-y-2">
130
+ <a href="dashboard.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
131
+ <i data-feather="home" class="w-5 h-5"></i>
132
+ <span>Dashboard</span>
133
+ </a>
134
+ <a href="signals.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
135
+ <i data-feather="radio" class="w-5 h-5"></i>
136
+ <span>Signals</span>
137
+ </a>
138
+ <a href="strategies.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg">
139
+ <i data-feather="target" class="w-5 h-5"></i>
140
+ <span>Strategies</span>
141
+ </a>
142
+ <a href="portfolio.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
143
+ <i data-feather="briefcase" class="w-5 h-5"></i>
144
+ <span>Portfolio</span>
145
+ </a>
146
+ <a href="settings.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg">
147
+ <i data-feather="settings" class="w-5 h-5"></i>
148
+ <span>Settings</span>
149
+ </a>
150
+ </nav>
151
+
152
+ <div class="mt-8 p-4 glass-morphism rounded-lg">
153
+ <h4 class="font-semibold mb-2">Strategy Stats</h4>
154
+ <div class="space-y-2 text-sm">
155
+ <div class="flex justify-between">
156
+ <span class="text-gray-400">Active</span>
157
+ <span class="text-green-400">8</span>
158
+ </div>
159
+ <div class="flex justify-between">
160
+ <span class="text-gray-400">Total P&L</span>
161
+ <span class="text-green-400">+$12,456</span>
162
+ </div>
163
+ <div class="flex justify-between">
164
+ <span class="text-gray-400">Avg. Win Rate</span>
165
+ <span class="text-blue-400">76.3%</span>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </aside>
170
+
171
+ <!-- Main Content -->
172
+ <main class="ml-64 flex-1 p-6">
173
+ <!-- Header -->
174
+ <div class="mb-8">
175
+ <h2 class="text-3xl font-bold mb-6">Trading Strategies</h2>
176
+
177
+ <div class="flex flex-wrap gap-3 mb-6">
178
+ <button class="quantum-button px-6 py-2 rounded-lg">
179
+ <i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
180
+ Create Strategy
181
+ </button>
182
+ <button class="px-6 py-2 rounded-lg border border-gray-600 hover:bg-gray-700">
183
+ <i data-feather="upload" class="w-4 h-4 inline mr-2"></i>
184
+ Import
185
+ </button>
186
+ <button class="px-6 py-2 rounded-lg border border-gray-600 hover:bg-gray-700">
187
+ <i data-feather="download" class="w-4 h-4 inline mr-2"></i>
188
+ Export
189
+ </button>
190
+ </div>
191
+ </div>
192
+
193
+ <!-- Strategy Overview Cards -->
194
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
195
+ <div class="metric-box rounded-xl p-6">
196
+ <div class="flex items-center justify-between mb-4">
197
+ <span class="text-gray-400">Total Strategies</span>
198
+ <i data-feather="target" class="w-5 h-5 text-blue-400"></i>
199
+ </div>
200
+ <div class="text-3xl font-bold">24</div>
201
+ <div class="text-green-400 text-sm mt-2">+3 this month</div>
202
+ </div>
203
+
204
+ <div class="metric-box rounded-xl p-6">
205
+ <div class="flex items-center justify-between mb-4">
206
+ <span class="text-gray-400">Active Today</span>
207
+ <i data-feather="activity" class="w-5 h-5 text-green-400"></i>
208
+ </div>
209
+ <div class="text-3xl font-bold">8</div>
210
+ <div class="text-gray-400 text-sm mt-2">2 pending activation</div>
211
+ </div>
212
+
213
+ <div class="metric-box rounded-xl p-6">
214
+ <div class="flex items-center justify-between mb-4">
215
+ <span class="text-gray-400">Best Performer</span>
216
+ <i data-feather="award" class="w-5 h-5 text-yellow-400"></i>
217
+ </div>
218
+ <div class="text-lg font-bold">Scalping Pro</div>
219
+ <div class="text-green-400 text-sm mt-2">+89.2% ROI</div>
220
+ </div>
221
+
222
+ <div class="metric-box rounded-xl p-6">
223
+ <div class="flex items-center justify-between mb-4">
224
+ <span class="text-gray-400">Avg. Win Rate</span>
225
+ <i data-feather="trending-up" class="w-5 h-5 text-purple-400"></i>
226
+ </div>
227
+ <div class="text-3xl font-bold">76.3%</div>
228
+ <div class="text-green-400 text-sm mt-2">+2.1% vs last month</div>
229
+ </div>
230
+ </div>
231
+
232
+ <!-- Strategy Cards -->
233
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
234
+ <!-- Scalping Strategy -->
235
+ <div class="strategy-card rounded-xl p-6 fade-in-up">
236
+ <div class="flex items-center justify-between mb-4">
237
+ <div>
238
+ <h3 class="text-xl font-bold">Scalping Pro</h3>
239
+ <p class="text-gray-400 text-sm">High-frequency trading on 1-5 minute charts</p>
240
+ </div>
241
+ <div class="performance-badge px-3 py-1 rounded-full text-sm">
242
+ +89.2% ROI
243
+ </div>
244
+ </div>
245
+
246
+ <div class="chart-container mb-4">
247
+ <canvas id="scalpingChart"></canvas>
248
+ </div>
249
+
250
+ <div class="grid grid-cols-2 gap-4 mb-4">
251
+ <div>
252
+ <p class="text-gray-400 text-sm">Win Rate</p>
253
+ <p class="text-lg font-bold text-green-400">82.5%</p>
254
+ </div>
255
+ <div>
256
+ <p class="text-gray-400 text-sm">Total Trades</p>
257
+ <p class="text-lg font-bold">1,247</p>
258
+ </div>
259
+ <div>
260
+ <p class="text-gray-400 text-sm">Avg. Trade</p>
261
+ <p class="text-lg font-bold">+12.3 pips</p>
262
+ </div>
263
+ <div>
264
+ <p class="text-gray-400 text-sm">Max DD</p>
265
+ <p class="text-lg font-bold text-red-400">-5.2%</p>
266
+ </div>
267
+ </div>
268
+
269
+ <div class="flex space-x-2">
270
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
271
+ Activate
272
+ </button>
273
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
274
+ <i data-feather="settings" class="w-4 h-4"></i>
275
+ </button>
276
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
277
+ <i data-feather="bar-chart-2" class="w-4 h-4"></i>
278
+ </button>
279
+ </div>
280
+ </div>
281
+
282
+ <!-- Day Trading Strategy -->
283
+ <div class="strategy-card rounded-xl p-6 fade-in-up" style="animation-delay: 0.1s;">
284
+ <div class="flex items-center justify-between mb-4">
285
+ <div>
286
+ <h3 class="text-xl font-bold">Day Trading Elite</h3>
287
+ <p class="text-gray-400 text-sm">Intraday momentum and breakout strategies</p>
288
+ </div>
289
+ <div class="performance-badge px-3 py-1 rounded-full text-sm">
290
+ +64.7% ROI
291
+ </div>
292
+ </div>
293
+
294
+ <div class="chart-container mb-4">
295
+ <canvas id="dayTradingChart"></canvas>
296
+ </div>
297
+
298
+ <div class="grid grid-cols-2 gap-4 mb-4">
299
+ <div>
300
+ <p class="text-gray-400 text-sm">Win Rate</p>
301
+ <p class="text-lg font-bold text-green-400">76.8%</p>
302
+ </div>
303
+ <div>
304
+ <p class="text-gray-400 text-sm">Total Trades</p>
305
+ <p class="text-lg font-bold">892</p>
306
+ </div>
307
+ <div>
308
+ <p class="text-gray-400 text-sm">Avg. Trade</p>
309
+ <p class="text-lg font-bold">+28.7 pips</p>
310
+ </div>
311
+ <div>
312
+ <p class="text-gray-400 text-sm">Max DD</p>
313
+ <p class="text-lg font-bold text-red-400">-8.1%</p>
314
+ </div>
315
+ </div>
316
+
317
+ <div class="flex space-x-2">
318
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
319
+ Activate
320
+ </button>
321
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
322
+ <i data-feather="settings" class="w-4 h-4"></i>
323
+ </button>
324
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
325
+ <i data-feather="bar-chart-2" class="w-4 h-4"></i>
326
+ </button>
327
+ </div>
328
+ </div>
329
+
330
+ <!-- Swing Trading Strategy -->
331
+ <div class="strategy-card rounded-xl p-6 fade-in-up" style="animation-delay: 0.2s;">
332
+ <div class="flex items-center justify-between mb-4">
333
+ <div>
334
+ <h3 class="text-xl font-bold">Swing Master</h3>
335
+ <p class="text-gray-400 text-sm">Multi-day trend following system</p>
336
+ </div>
337
+ <div class="performance-badge px-3 py-1 rounded-full text-sm">
338
+ +45.3% ROI
339
+ </div>
340
+ </div>
341
+
342
+ <div class="chart-container mb-4">
343
+ <canvas id="swingChart"></canvas>
344
+ </div>
345
+
346
+ <div class="grid grid-cols-2 gap-4 mb-4">
347
+ <div>
348
+ <p class="text-gray-400 text-sm">Win Rate</p>
349
+ <p class="text-lg font-bold text-green-400">71.2%</p>
350
+ </div>
351
+ <div>
352
+ <p class="text-gray-400 text-sm">Total Trades</p>
353
+ <p class="text-lg font-bold">456</p>
354
+ </div>
355
+ <div>
356
+ <p class="text-gray-400 text-sm">Avg. Trade</p>
357
+ <p class="text-lg font-bold">+87.4 pips</p>
358
+ </div>
359
+ <div>
360
+ <p class="text-gray-400 text-sm">Max DD</p>
361
+ <p class="text-lg font-bold text-red-400">-12.3%</p>
362
+ </div>
363
+ </div>
364
+
365
+ <div class="flex space-x-2">
366
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
367
+ Activate
368
+ </button>
369
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
370
+ <i data-feather="settings" class="w-4 h-4"></i>
371
+ </button>
372
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
373
+ <i data-feather="bar-chart-2" class="w-4 h-4"></i>
374
+ </button>
375
+ </div>
376
+ </div>
377
+
378
+ <!-- AI Strategy -->
379
+ <div class="strategy-card rounded-xl p-6 fade-in-up" style="animation-delay: 0.3s;">
380
+ <div class="flex items-center justify-between mb-4">
381
+ <div>
382
+ <h3 class="text-xl font-bold">AI Quantum</h3>
383
+ <p class="text-gray-400 text-sm">Machine learning adaptive strategy</p>
384
+ </div>
385
+ <div class="performance-badge px-3 py-1 rounded-full text-sm">
386
+ +92.1% ROI
387
+ </div>
388
+ </div>
389
+
390
+ <div class="chart-container mb-4">
391
+ <canvas id="aiChart"></canvas>
392
+ </div>
393
+
394
+ <div class="grid grid-cols-2 gap-4 mb-4">
395
+ <div>
396
+ <p class="text-gray-400 text-sm">Win Rate</p>
397
+ <p class="text-lg font-bold text-green-400">84.7%</p>
398
+ </div>
399
+ <div>
400
+ <p class="text-gray-400 text-sm">Total Trades</p>
401
+ <p class="text-lg font-bold">2,134</p>
402
+ </div>
403
+ <div>
404
+ <p class="text-gray-400 text-sm">Avg. Trade</p>
405
+ <p class="text-lg font-bold">+34.2 pips</p>
406
+ </div>
407
+ <div>
408
+ <p class="text-gray-400 text-sm">Max DD</p>
409
+ <p class="text-lg font-bold text-red-400">-6.8%</p>
410
+ </div>
411
+ </div>
412
+
413
+ <div class="flex space-x-2">
414
+ <button class="quantum-button flex-1 py-2 rounded-lg text-sm">
415
+ Activate
416
+ </button>
417
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
418
+ <i data-feather="settings" class="w-4 h-4"></i>
419
+ </button>
420
+ <button class="px-4 py-2 rounded-lg text-sm border border-gray-600 hover:bg-gray-700">
421
+ <i data-feather="bar-chart-2" class="w-4 h-4"></i>
422
+ </button>
423
+ </div>
424
+ </div>
425
+ </div>
426
+
427
+ <!-- Strategy Builder -->
428
+ <div class="trading-card rounded-xl p-6">
429
+ <h3 class="text-xl font-bold mb-6">Strategy Builder</h3>
430
+
431
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
432
+ <div>
433
+ <h4 class="font-semibold mb-4">Indicators</h4>
434
+ <div class="space-y-3">
435
+ <div class="flex items-center justify-between p-3 bg-gray-800 bg-opacity-50 rounded-lg">
436
+ <div class="flex items-center space-x-3">
437
+ <input type="checkbox" class="rounded" checked>
438
+ <span>Moving Average (SMA)</span>
439
+ </div>
440
+ <select class="bg-gray-700 border border-gray-600 rounded px-2 py-1 text-sm">
441
+ <option>20</option>
442
+ <option>50</option>
443
+ <option>100</option>
444
+ <option>200</option>
445
+ </select>
446
+ </div>
447
+
448
+ <div class="flex items-center justify-between p-3 bg-gray-800 bg-opacity-50 rounded-lg">
449
+ <div class="flex items-center space-x-3">
450
+ <input type="checkbox" class="rounded" checked>
451
+ <span>RSI</span>
452
+ </div>
453
+ <select class="bg-gray-700 border border-gray-600 rounded px-2 py-1 text-sm">
454
+ <option>14</option>
455
+ <option>21</option>
456
+ <option>28</option>
457
+ </select>
458
+ </div>
459
+
460
+ <div class="flex items-center justify-between p-3 bg-gray-800 bg-opacity-50 rounded-lg">
461
+ <div class="flex items-center space-x-3">
462
+ <input type="checkbox" class="rounded">
463
+ <span>MACD</span>
464
+ </div>
465
+ <select class="bg-gray-700 border border-gray-600 rounded px-2 py-1 text-sm">
466
+ <option>12,26,9</option>
467
+ <option>8,21,5</option>
468
+ </select>
469
+ </div>
470
+
471
+ <div class="flex items-center justify-between p-3 bg-gray-800 bg-opacity-50 rounded-lg">
472
+ <div class="flex items-center space-x-3">
473
+ <input type="checkbox" class="rounded" checked>
474
+ <span>Bollinger Bands</span>
475
+ </div>
476
+ <select class="bg-gray-700 border border-gray-600 rounded px-2 py-1 text-sm">
477
+ <option>20,2</option>
478
+ <option>10,1.5</option>
479
+ </select>
480
+ </div>
481
+ </div>
482
+ </div>
483
+
484
+ <div>
485
+ <h4 class="font-semibold mb-4">Risk Management</h4>
486
+ <div class="space-y-4">
487
+ <div>
488
+ <label class="block text-sm text-gray-400 mb-2">Risk per Trade (%)</label>
489
+ <input type="range" min="1" max="5" value="2" class="w-full">
490
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
491
+ <span>1%</span>
492
+ <span class="text-blue-400">2%</span>
493
+ <span>5%</span>
494
+ </div>
495
+ </div>
496
+
497
+ <div>
498
+ <label class="block text-sm text-gray-400 mb-2">Max Daily Loss (%)</label>
499
+ <input type="range" min="5" max="20" value="10" class="w-full">
500
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
501
+ <span>5%</span>
502
+ <span class="text-blue-400">10%</span>
503
+ <span>20%</span>
504
+ </div>
505
+ </div>
506
+
507
+ <div>
508
+ <label class="block text-sm text-gray-400 mb-2">Reward:Risk Ratio</label>
509
+ <select class="w-full bg-gray-800 border border-gray-600 rounded-lg px-3 py-2">
510
+ <option>1:1</option>
511
+ <option>1.5:1</option>
512
+ <option>2:1</option>
513
+ <option>3:1</option>
514
+ </select>
515
+ </div>
516
+
517
+ <div class="flex items-center space-x-2">
518
+ <input type="checkbox" class="rounded" checked>
519
+ <span class="text-sm">Use Trailing Stop</span>
520
+ </div>
521
+ </div>
522
+ </div>
523
+ </div>
524
+
525
+ <div class="mt-6 flex justify-end space-x-3">
526
+ <button class="px-6 py-2 rounded-lg border border-gray-600 hover:bg-gray-700">
527
+ Backtest
528
+ </button>
529
+ <button class="quantum-button px-6 py-2 rounded-lg">
530
+ Save Strategy
531
+ </button>
532
+ </div>
533
+ </div>
534
+ </main>
535
+ </div>
536
+
537
+ <script>
538
+ // Initialize charts
539
+ const chartOptions = {
540
+ responsive: true,
541
+ maintainAspectRatio: false,
542
+ plugins: {
543
+ legend: {
544
+ display: false
545
+ }
546
+ },
547
+ scales: {
548
+ x: {
549
+ display: false
550
+ },
551
+ y: {
552
+ display: false
553
+ }
554
+ }
555
+ };
556
+
557
+ // Scalping Chart
558
+ const scalpingCtx = document.getElementById('scalpingChart').getContext('2d');
559
+ new Chart(scalpingCtx, {
560
+ type: 'line',
561
+ data: {
562
+ labels: Array.from({length: 30}, (_, i) => i),
563
+ datasets: [{
564
+ data: Array.from({length: 30}, () => Math.random() * 50 + 50),
565
+ borderColor: '#10b981',
566
+ backgroundColor: 'rgba(16, 185, 129, 0.1)',
567
+ tension: 0.4,
568
+ fill: true
569
+ }]
570
+ },
571
+ options: chartOptions
572
+ });
573
+
574
+ // Day Trading Chart
575
+ const dayTradingCtx = document.getElementById('dayTradingChart').getContext('2d');
576
+ new Chart(dayTradingCtx, {
577
+ type: 'line',
578
+ data: {
579
+ labels: Array.from({length: 30}, (_, i) => i),
580
+ datasets: [{
581
+ data: Array.from({length: 30}, () => Math.random() * 40 + 40),
582
+ borderColor: '#3b82f6',
583
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
584
+ tension: 0.4,
585
+ fill: true
586
+ }]
587
+ },
588
+ options: chartOptions
589
+ });
590
+
591
+ // Swing Chart
592
+ const swingCtx = document.getElementById('swingChart').getContext('2d');
593
+ new Chart(swingCtx, {
594
+ type: 'line',
595
+ data: {
596
+ labels: Array.from({length: 30}, (_, i) => i),
597
+ datasets: [{
598
+ data: Array.from({length: 30}, () => Math.random() * 30 + 30),
599
+ borderColor: '#8b5cf6',
600
+ backgroundColor: 'rgba(139, 92, 246, 0.1)',
601
+ tension: 0.4,
602
+ fill: true
603
+ }]
604
+ },
605
+ options: chartOptions
606
+ });
607
+
608
+ // AI Chart
609
+ const aiCtx = document.getElementById('aiChart').getContext('2d');
610
+ new Chart(aiCtx, {
611
+ type: 'line',
612
+ data: {
613
+ labels: Array.from({length: 30}, (_, i) => i),
614
+ datasets: [{
615
+ data: Array.from({length: 30}, () => Math.random() * 60 + 60),
616
+ borderColor: '#f59e0b',
617
+ backgroundColor: 'rgba(245, 158, 11, 0.1)',
618
+ tension: 0.4,
619
+ fill: true
620
+ }]
621
+ },
622
+ options: chartOptions
623
+ });
624
+
625
+ // Animate strategy cards
626
+ anime({
627
+ targets: '.strategy-card',
628
+ opacity: [0, 1],
629
+ translateY: [30, 0],
630
+ delay: anime.stagger(100),
631
+ duration: 800,
632
+ easing: 'easeOutQuad'
633
+ });
634
+
635
+ // Add hover effects
636
+ document.querySelectorAll('.strategy-card').forEach(card => {
637
+ card.addEventListener('mouseenter', function() {
638
+ anime({
639
+ targets: this,
640
+ scale: 1.02,
641
+ duration: 300,
642
+ easing: 'easeOutQuad'
643
+ });
644
+ });
645
+
646
+ card.addEventListener('mouseleave', function() {
647
+ anime({
648
+ targets: this,
649
+ scale: 1,
650
+ duration: 300,
651
+ easing: 'easeOutQuad'
652
+ });
653
+ });
654
+ });
655
+
656
+ // Initialize Feather icons
657
+ feather.replace();
658
+ </script>
659
+ </body>
660
+ </html>