Download index.html from laochende/celue: direct link, hf CLI and curl.
- Browser
- Download file 21.2 kB
-
https://huggingface.co/spaces/laochende/celue/resolve/main/index.html
- Command line
-
hf download hf://spaces/laochende/celue/index.html
-
curl -L -o index.html https://huggingface.co/spaces/laochende/celue/resolve/main/index.html
21.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QuantAlpha | Advanced Trading Strategies</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); | |
| } | |
| .strategy-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .chart-container { | |
| height: 400px; | |
| background-color: #f8fafc; | |
| border-radius: 0.5rem; | |
| } | |
| .backtest-result { | |
| transition: all 0.3s ease; | |
| } | |
| .backtest-result:hover { | |
| background-color: #f0f4f8; | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link:after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -2px; | |
| left: 0; | |
| background-color: #3b82f6; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover:after { | |
| width: 100%; | |
| } | |
| .tradingview-widget-container { | |
| height: 100%; | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans antialiased"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i class="fas fa-chart-line text-blue-500 text-2xl mr-2"></i> | |
| <span class="text-xl font-bold text-gray-900">QuantAlpha</span> | |
| </div> | |
| <div class="hidden sm:ml-6 sm:flex sm:space-x-8"> | |
| <a href="#" class="nav-link border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Dashboard</a> | |
| <a href="#" class="nav-link border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Strategies</a> | |
| <a href="#" class="nav-link border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Backtesting</a> | |
| <a href="#" class="nav-link border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Optimization</a> | |
| </div> | |
| </div> | |
| <div class="hidden sm:ml-6 sm:flex sm:items-center"> | |
| <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> New Strategy | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Strategy Header --> | |
| <div class="gradient-bg rounded-xl p-6 text-white mb-8"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h1 class="text-3xl font-bold">Mean Reversion Strategy</h1> | |
| <p class="mt-2 opacity-90">Capitalizes on price deviations from historical averages with Bollinger Bands and RSI indicators</p> | |
| <div class="mt-4 flex flex-wrap gap-2"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">Bollinger Bands</span> | |
| <span class="bg-green-100 text-green-800 text-xs font-semibold px-2.5 py-0.5 rounded">RSI</span> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-semibold px-2.5 py-0.5 rounded">Mean Reversion</span> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-semibold px-2.5 py-0.5 rounded">Equities</span> | |
| </div> | |
| </div> | |
| <div class="bg-white bg-opacity-10 p-4 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="mr-4"> | |
| <p class="text-sm opacity-80">Sharpe Ratio</p> | |
| <p class="text-2xl font-bold">1.87</p> | |
| </div> | |
| <div class="mr-4"> | |
| <p class="text-sm opacity-80">Max Drawdown</p> | |
| <p class="text-2xl font-bold">-12.4%</p> | |
| </div> | |
| <div> | |
| <p class="text-sm opacity-80">Win Rate</p> | |
| <p class="text-2xl font-bold">63.2%</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Strategy Content --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Left Column --> | |
| <div class="lg:col-span-2 space-y-6"> | |
| <!-- Performance Chart --> | |
| <div class="bg-white shadow rounded-xl overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Strategy Performance</h2> | |
| </div> | |
| <div class="chart-container p-4"> | |
| <!-- TradingView Widget --> | |
| <div class="tradingview-widget-container"> | |
| <div class="tradingview-widget-container__widget"></div> | |
| <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js" async> | |
| { | |
| "autosize": true, | |
| "symbol": "NASDAQ:AAPL", | |
| "interval": "D", | |
| "timezone": "Etc/UTC", | |
| "theme": "light", | |
| "style": "1", | |
| "locale": "en", | |
| "enable_publishing": false, | |
| "allow_symbol_change": true, | |
| "studies": [ | |
| "BB@tv-basicstudies", | |
| "RSI@tv-basicstudies" | |
| ], | |
| "support_host": "https://www.tradingview.com" | |
| } | |
| </script> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Strategy Logic --> | |
| <div class="bg-white shadow rounded-xl overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Strategy Logic</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Entry Conditions</h3> | |
| <ul class="mt-2 list-disc list-inside text-gray-600 space-y-1"> | |
| <li>Price crosses below lower Bollinger Band (2 std dev)</li> | |
| <li>RSI below 30 (oversold condition)</li> | |
| <li>Volume is above 20-day average</li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Exit Conditions</h3> | |
| <ul class="mt-2 list-disc list-inside text-gray-600 space-y-1"> | |
| <li>Price crosses above middle Bollinger Band (20-day SMA)</li> | |
| <li>RSI above 70 (overbought condition)</li> | |
| <li>Stop loss at 5% below entry price</li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Position Sizing</h3> | |
| <p class="mt-2 text-gray-600">Fixed fractional position sizing with 2% risk per trade</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right Column --> | |
| <div class="space-y-6"> | |
| <!-- Quick Actions --> | |
| <div class="bg-white shadow rounded-xl overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Quick Actions</h2> | |
| </div> | |
| <div class="p-4 space-y-3"> | |
| <button class="w-full flex items-center justify-between px-4 py-3 bg-blue-50 text-blue-700 rounded-lg hover:bg-blue-100 transition"> | |
| <span class="font-medium">Run Backtest</span> | |
| <i class="fas fa-play-circle"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between px-4 py-3 bg-green-50 text-green-700 rounded-lg hover:bg-green-100 transition"> | |
| <span class="font-medium">Optimize Parameters</span> | |
| <i class="fas fa-cogs"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between px-4 py-3 bg-purple-50 text-purple-700 rounded-lg hover:bg-purple-100 transition"> | |
| <span class="font-medium">Deploy Live</span> | |
| <i class="fas fa-rocket"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between px-4 py-3 bg-gray-50 text-gray-700 rounded-lg hover:bg-gray-100 transition"> | |
| <span class="font-medium">Export Strategy</span> | |
| <i class="fas fa-file-export"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Parameters --> | |
| <div class="bg-white shadow rounded-xl overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Strategy Parameters</h2> | |
| </div> | |
| <div class="p-4 space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Bollinger Band Period</label> | |
| <input type="number" value="20" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Standard Deviations</label> | |
| <input type="number" value="2" step="0.1" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">RSI Period</label> | |
| <input type="number" value="14" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Stop Loss (%)</label> | |
| <input type="number" value="5" step="0.5" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-md font-medium transition"> | |
| Update Parameters | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Recent Backtests --> | |
| <div class="bg-white shadow rounded-xl overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <h2 class="text-lg font-semibold text-gray-900">Recent Backtests</h2> | |
| <button class="text-blue-500 text-sm font-medium">View All</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="backtest-result p-4 hover:cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="font-medium">2023-10-15</p> | |
| <p class="text-sm text-gray-500">S&P 500 Universe</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-medium text-green-500">+8.2%</p> | |
| <p class="text-sm text-gray-500">Sharpe: 1.65</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="backtest-result p-4 hover:cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="font-medium">2023-09-28</p> | |
| <p class="text-sm text-gray-500">NASDAQ 100</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-medium text-green-500">+5.7%</p> | |
| <p class="text-sm text-gray-500">Sharpe: 1.42</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="backtest-result p-4 hover:cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="font-medium">2023-09-10</p> | |
| <p class="text-sm text-gray-500">Russell 2000</p> | |
| </div> | |
| <div class="text-right"> | |
| <p class="font-medium text-red-500">-2.1%</p> | |
| <p class="text-sm text-gray-500">Sharpe: 0.87</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-white border-t border-gray-200 mt-12"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <div class="md:flex md:justify-between"> | |
| <div class="mb-8 md:mb-0"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-chart-line text-blue-500 text-xl mr-2"></i> | |
| <span class="text-lg font-bold text-gray-900">QuantAlpha</span> | |
| </div> | |
| <p class="mt-2 text-sm text-gray-500">Advanced quantitative trading strategies for institutional and retail investors.</p> | |
| </div> | |
| <div class="grid grid-cols-2 gap-8 sm:grid-cols-3"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">Resources</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Documentation</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">API Reference</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Tutorials</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">Company</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">About</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Careers</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">Legal</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Privacy</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Terms</a></li> | |
| <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Disclaimer</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8 border-t border-gray-200 pt-8 flex items-center justify-between"> | |
| <p class="text-sm text-gray-500">© 2023 QuantAlpha. All rights reserved.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i class="fab fa-github"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i class="fab fa-linkedin"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Interactive elements would go here | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Example: Toggle parameter editing | |
| const paramInputs = document.querySelectorAll('input[type="number"]'); | |
| paramInputs.forEach(input => { | |
| input.addEventListener('focus', function() { | |
| this.parentElement.classList.add('ring-2', 'ring-blue-200'); | |
| }); | |
| input.addEventListener('blur', function() { | |
| this.parentElement.classList.remove('ring-2', 'ring-blue-200'); | |
| }); | |
| }); | |
| // Example: Backtest result click handler | |
| const backtestResults = document.querySelectorAll('.backtest-result'); | |
| backtestResults.forEach(result => { | |
| result.addEventListener('click', function() { | |
| alert('Loading backtest details...'); | |
| // In a real app, this would load the backtest details | |
| }); | |
| }); | |
| // Example: Quick action buttons | |
| const quickActions = document.querySelectorAll('.bg-blue-50, .bg-green-50, .bg-purple-50, .bg-gray-50'); | |
| quickActions.forEach(button => { | |
| button.addEventListener('click', function() { | |
| const action = this.querySelector('span').textContent; | |
| alert(`Initiating ${action}...`); | |
| // In a real app, this would trigger the respective action | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=laochende/celue" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |