Desarrolle e implemente completamente una interfaz de usuario y experiencia UX/UI de vanguardia y futurista de m谩ximo rendimiento, full responsive para todo tipo de dispositivos, 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:
0cec5eb
verified
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>An谩lisis - QuantumTrading Nexus</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); | |
| * { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .dark { | |
| background: #0a0a0a; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .glass-effect { | |
| background: rgba(17, 25, 40, 0.75); | |
| backdrop-filter: blur(16px) saturate(180%); | |
| border: 1px solid rgba(255, 255, 255, 0.125); | |
| } | |
| .cyber-grid { | |
| background-image: | |
| linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px), | |
| linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px); | |
| background-size: 50px 50px; | |
| } | |
| .pulse-animation { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .hover-scale { | |
| transition: transform 0.3s ease; | |
| } | |
| .hover-scale:hover { | |
| transform: scale(1.05); | |
| } | |
| .text-gradient { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: rgba(0, 0, 0, 0.1); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| border-radius: 4px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-950 text-gray-100 min-h-screen cyber-grid"> | |
| <!-- Navigation Header --> | |
| <nav class="glass-effect fixed top-0 w-full z-50 px-6 py-4"> | |
| <div class="max-w-7xl mx-auto flex justify-between items-center"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="w-10 h-10 gradient-bg rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-6 h-6 text-white"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold text-gradient">QuantumTrading Nexus</h1> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-6"> | |
| <a href="index.html" class="text-gray-300 hover:text-white transition-colors">Dashboard</a> | |
| <a href="signals.html" class="text-gray-300 hover:text-white transition-colors">Se帽ales</a> | |
| <a href="strategies.html" class="text-gray-300 hover:text-white transition-colors">Estrategias</a> | |
| <a href="analytics.html" class="text-white">An谩lisis</a> | |
| <a href="settings.html" class="text-gray-300 hover:text-white transition-colors">Configuraci贸n</a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="relative p-2 glass-effect rounded-lg hover-scale"> | |
| <i data-feather="bell" class="w-5 h-5"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full pulse-animation"></span> | |
| </button> | |
| <button class="p-2 glass-effect rounded-lg hover-scale"> | |
| <i data-feather="settings" class="w-5 h-5"></i> | |
| </button> | |
| <div class="w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-pink-500"></div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <main class="pt-20 px-6 pb-10"> | |
| <div class="max-w-7xl mx-auto"> | |
| <!-- Page Header --> | |
| <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6"> | |
| <div> | |
| <h1 class="text-3xl font-bold mb-2">Centro de An谩lisis</h1> | |
| <p class="text-gray-400">An谩lisis profundo y m茅tricas de rendimiento</p> | |
| </div> | |
| <div class="flex space-x-3 mt-4 md:mt-0"> | |
| <button class="px-4 py-2 glass-effect rounded-lg hover-scale flex items-center space-x-2"> | |
| <i data-feather="calendar" class="w-4 h-4"></i> | |
| <span>Per铆odo</span> | |
| </button> | |
| <button class="px-4 py-2 gradient-bg rounded-lg hover-scale flex items-center space-x-2"> | |
| <i data-feather="download" class="w-4 h-4"></i> | |
| <span>Exportar</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Key Performance Indicators --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> | |
| <div class="glass-effect rounded-xl p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <p class="text-gray-400 text-sm">ROI Total</p> | |
| <i data-feather="trending-up" class="w-4 h-4 text-green-400"></i> | |
| </div> | |
| <p class="text-2xl font-bold text-green-400">+147.3%</p> | |
| <p class="text-xs text-gray-500 mt-1">vs. mes anterior: +12.4%</p> | |
| </div> | |
| <div class="glass-effect rounded-xl p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <p class="text-gray-400 text-sm">Win Rate</p> | |
| <i data-feather="target" class="w-4 h-4 text-blue-400"></i> | |
| </div> | |
| <p class="text-2xl font-bold">89.2%</p> | |
| <p class="text-xs text-gray-500 mt-1">vs. mes anterior: +2.1%</p> | |
| </div> | |
| <div class="glass-effect rounded-xl p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <p class="text-gray-400 text-sm">Profit Factor</p> | |
| <i data-feather="bar-chart-2" class="w-4 h-4 text-purple-400"></i> | |
| </div> | |
| <p class="text-2xl font-bold">2.84</p> | |
| <p class="text-xs text-gray-500 mt-1">vs. mes anterior: +0.3</p> | |
| </div> | |
| <div class="glass-effect rounded-xl p-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <p class="text-gray-400 text-sm">Max DD</p> | |
| <i data-feather="alert-triangle" class="w-4 h-4 text-orange-400"></i> | |
| </div> | |
| <p class="text-2xl font-bold text-red-400">-8.7%</p> | |
| <p class="text-xs text-gray-500 mt-1">vs. mes anterior: -1.2%</p> | |
| </div> | |
| </div> | |
| <!-- Analytics Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> | |
| <!-- Profit & Loss Chart --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-xl font-semibold mb-4">An谩lisis P&L Diario</h2> | |
| <canvas id="pnlChart"></canvas> | |
| </div> | |
| <!-- Win Rate Distribution --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-xl font-semibold mb-4">Distribuci贸n de 脡xito</h2> | |
| <canvas id="winRateChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Risk Analysis --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Drawdown Analysis --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-lg font-semibold mb-4">An谩lisis de Drawdown</h2> | |
| <div class="space-y-3"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="text-gray-400">Drawdown Actual</span> | |
| <span class="text-red-400">-2.3%</span> | |
| </div> | |
| <div class="w-full bg-gray-800 rounded-full h-2"> | |
| <div class="h-2 rounded-full bg-red-500" style="width: 23%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="text-gray-400">M谩ximo Hist贸rico</span> | |
| <span class="text-orange-400">-8.7%</span> | |
| </div> | |
| <div class="w-full bg-gray-800 rounded-full h-2"> | |
| <div class="h-2 rounded-full bg-orange-500" style="width: 87%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="text-gray-400">Promedio Mensual</span> | |
| <span class="text-yellow-400">-4.2%</span> | |
| </div> | |
| <div class="w-full bg-gray-800 rounded-full h-2"> | |
| <div class="h-2 rounded-full bg-yellow-500" style="width: 42%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-4 p-3 bg-blue-500/10 rounded-lg"> | |
| <p class="text-sm text-blue-400">Recomendaci贸n: Considerar reducir tama帽o de posici贸n un 15%</p> | |
| </div> | |
| </div> | |
| <!-- Risk Metrics --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-lg font-semibold mb-4">M茅tricas de Riesgo</h2> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Sharpe Ratio</span> | |
| <span class="font-semibold">2.84</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Sortino Ratio</span> | |
| <span class="font-semibold">3.92</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Calmar Ratio</span> | |
| <span class="font-semibold">1.76</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">VaR (95%)</span> | |
| <span class="font-semibold text-red-400">-$2,847</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">CVaR (95%)</span> | |
| <span class="font-semibold text-red-400">-$4,192</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Trade Statistics --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-lg font-semibold mb-4">Estad铆sticas de Trading</h2> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Total de Trades</span> | |
| <span class="font-semibold">1,247</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Trades Ganadores</span> | |
| <span class="font-semibold text-green-400">1,112</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Trades Perdedores</span> | |
| <span class="font-semibold text-red-400">135</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Prom. Ganancia</span> | |
| <span class="font-semibold text-green-400">+$324</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-gray-400 text-sm">Prom. P茅rdida</span> | |
| <span class="font-semibold text-red-400">-$187</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Performance by Asset --> | |
| <div class="glass-effect rounded-xl p-6"> | |
| <h2 class="text-xl font-semibold mb-6">Rendimiento por Activo</h2> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-gray-800"> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">Activo</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">Trades</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">Win Rate</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">P&L Total</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">P&L Promedio</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">Factor</th> | |
| <th class="text-left py-3 px-4 text-gray-400 font-medium">Tendencia</th> | |
| </tr> | |
| </thead> | |
| <tbody id="assetPerformance"> | |
| <!-- Dynamic content --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // P&L Chart | |
| const pnlCtx = document.getElementById('pnlChart').getContext('2d'); | |
| new Chart(pnlCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Lun', 'Mar', 'Mi茅', 'Jue', 'Vie', 'S谩b', 'Dom'], | |
| datasets: [{ | |
| label: 'P&L Diario', | |
| data: [1240, 890, 1560, -320, 2100, 1450, 980], | |
| borderColor: '#10b981', | |
| backgroundColor: 'rgba(16, 185, 129, 0.1)', | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| x: { | |
| grid: { color: 'rgba(255, 255, 255, 0.05)' }, | |
| ticks: { color: '#9ca3af' } | |
| }, | |
| y: { | |
| grid: { color: 'rgba(255, 255, 255, 0.05)' }, | |
| ticks: { | |
| color: '#9ca3af', | |
| callback: function(value) { | |
| return '$' + value.toLocaleString(); | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Win Rate Chart | |
| const winRateCtx = document.getElementById('winRateChart').getContext('2d'); | |
| new Chart(winRateCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Ganadores', 'Perdedores'], | |
| datasets: [{ | |
| data: [89.2, 10.8], | |
| backgroundColor: ['#10b981', '#ef4444'], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| labels: { color: '#9ca3af' } | |
| } | |
| } | |
| } | |
| }); | |
| // Asset Performance Data | |
| const assetData = [ | |
| { asset: 'EURUSD', trades: 342, winRate: 91.2, pl: '+$12,450', avgPl: '+$364', factor: 3.24, trend: 'up' }, | |
| { asset: 'GBPUSD', trades: 287, winRate: 88.7, pl: '+$9,820', avgPl: '+$342', factor: 2.87, trend: 'up' }, | |
| { asset: 'USDJPY', trades: 256, winRate: 89.4, pl: '+$8,760', avgPl: '+$342', factor: 2.94, trend: 'stable' }, | |
| { asset: 'AUDUSD', trades: 198, winRate: 87.3, pl: '+$5,430', avgPl: '+$274', factor: 2.31, trend: 'down' }, | |
| { asset: 'USDCAD', trades: 164, winRate: 90.2, pl: '+$6,210', avgPl: '+$379', factor: 3.12, trend: 'up' } | |
| ]; | |
| // Populate asset performance table | |
| const assetTable = document.getElementById('assetPerformance'); | |
| assetData.forEach(asset => { | |
| const row = document.createElement('tr'); | |
| row.className = 'border-b border-gray-800 hover:bg-gray-900/50 transition-colors'; | |
| const trendIcon = asset.trend === 'up' ? 'trending-up text-green-400' : | |
| asset.trend === 'down' ? 'trending-down text-red-400' : | |
| 'minus text-yellow-400'; | |
| row.innerHTML = ` | |
| <td class="py-3 px-4 font-semibold">${asset.asset}</td> | |
| <td class="py-3 px-4">${asset.trades}</td> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-16 bg-gray-800 rounded-full h-2"> | |
| <div class="h-2 rounded-full bg-gradient-to-r from-purple-500 to-pink-500" style="width: ${asset.winRate}%"></div> | |
| </div> | |
| <span class="text-sm">${asset.winRate}%</span> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 font-semibold text-green-400">${asset.pl}</td> | |
| <td class="py-3 px-4">${asset.avgPl}</td> | |
| <td class="py-3 px-4">${asset.factor}</td> | |
| <td class="py-3 px-4"> | |
| <i data-feather="${trendIcon.split(' ')[0]}" class="w-4 h-4 ${trendIcon.split(' ')[1]}"></i> | |
| </td> | |
| `; | |
| assetTable.appendChild(row); | |
| }); | |
| // Re-initialize feather icons for dynamically added content | |
| feather.replace(); | |
| // Add animations | |
| anime({ | |
| targets: '.glass-effect', | |
| translateY: [20, 0], | |
| opacity: [0, 1], | |
| delay: anime.stagger(100), | |
| duration: 600, | |
| easing: 'easeOutQuad' | |
| }); | |
| </script> | |
| </body> | |
| </html> | |