Spaces:
Running
Running
Download dashboard.html from Waaryaabdul1/undefined: direct link, hf CLI and curl.
- Browser
- Download file 27.8 kB
-
https://huggingface.co/spaces/Waaryaabdul1/undefined/resolve/main/dashboard.html
- Command line
-
hf download hf://spaces/Waaryaabdul1/undefined/dashboard.html
-
curl -L -o dashboard.html https://huggingface.co/spaces/Waaryaabdul1/undefined/resolve/main/dashboard.html
27.8 kB
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Analysis Dashboard | Pinky Forecasters</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/luxon@3.0.1/build/global/luxon.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@1.2.0/dist/chartjs-adapter-luxon.min.js"></script> | |
| <style> | |
| .score-cell { | |
| width: 100px; | |
| } | |
| .positive-score { | |
| background-color: rgba(16, 185, 129, 0.2); | |
| } | |
| .negative-score { | |
| background-color: rgba(239, 68, 68, 0.2); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-white font-sans antialiased"> | |
| <div id="app" class="min-h-screen flex flex-col"> | |
| <!-- Navigation --> | |
| <nav class="bg-white border-b border-pink-100 sticky top-0 z-50"> | |
| <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 data-feather="trending-up" class="h-8 w-8 text-primary-500"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-900">Pinky Forecasters</span> | |
| </div> | |
| </div> | |
| <div class="hidden sm:ml-6 sm:flex sm:items-center"> | |
| <a href="dashboard.html" class="px-3 py-2 rounded-md text-sm font-medium text-primary-600 bg-pink-50">Dashboard</a> | |
| <a href="fundamentals.html" class="px-3 py-2 rounded-md text-sm font-medium text-gray-500 hover:text-gray-700 ml-4">Fundamentals</a> | |
| <a href="analysis.html" class="px-3 py-2 rounded-md text-sm font-medium text-gray-500 hover:text-gray-700 ml-4">Analysis</a> | |
| <button class="ml-4 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none"> | |
| <i data-feather="user" class="mr-2 h-4 w-4"></i> Sign In | |
| </button> | |
| </div> | |
| <div class="-mr-2 flex items-center sm:hidden"> | |
| <button @click="mobileMenuOpen = !mobileMenuOpen" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none"> | |
| <i :data-feather="mobileMenuOpen ? 'x' : 'menu'" class="h-6 w-6"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile menu --> | |
| <div v-show="mobileMenuOpen" class="sm:hidden border-t border-pink-100"> | |
| <div class="pt-2 pb-3 space-y-1"> | |
| <a href="dashboard.html" class="block px-3 py-2 rounded-md text-base font-medium text-primary-600 bg-pink-50">Dashboard</a> | |
| <a href="fundamentals.html" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700">Fundamentals</a> | |
| <a href="analysis.html" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700">Analysis</a> | |
| <button class="w-full mt-2 inline-flex justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none"> | |
| <i data-feather="user" class="mr-2 h-4 w-4"></i> Sign In | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <main class="flex-grow"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <div class="text-center mb-12"> | |
| <h1 class="text-4xl font-extrabold text-gray-900 sm:text-5xl"> | |
| <span class="text-primary-500">Fundamental</span> Bias Dashboard | |
| </h1> | |
| <p class="mt-3 max-w-2xl mx-auto text-xl text-gray-500"> | |
| Comprehensive view of market biases across assets and timeframes | |
| </p> | |
| </div> | |
| <!-- Timeframe Selector --> | |
| <div class="flex justify-end mb-6"> | |
| <div class="flex space-x-2"> | |
| <button @click="setTimeframe('1w')" class="px-3 py-1 text-sm rounded" :class="timeframe === '1w' ? 'bg-primary-100 text-primary-600' : 'text-gray-500 hover:bg-gray-100'"> | |
| 1W | |
| </button> | |
| <button @click="setTimeframe('1m')" class="px-3 py-1 text-sm rounded" :class="timeframe === '1m' ? 'bg-primary-100 text-primary-600' : 'text-gray-500 hover:bg-gray-100'"> | |
| 1M | |
| </button> | |
| <button @click="setTimeframe('3m')" class="px-3 py-1 text-sm rounded" :class="timeframe === '3m' ? 'bg-primary-100 text-primary-600' : 'text-gray-500 hover:bg-gray-100'"> | |
| 3M | |
| </button> | |
| <button @click="setTimeframe('1y')" class="px-3 py-1 text-sm rounded" :class="timeframe === '1y' ? 'bg-primary-100 text-primary-600' : 'text-gray-500 hover:bg-gray-100'"> | |
| 1Y | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Heatmap View --> | |
| <div class="bg-white shadow rounded-lg p-6 mb-8"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Bias Heatmap</h3> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full"> | |
| <thead> | |
| <tr> | |
| <th class="text-left py-2 px-3">Asset</th> | |
| <th v-for="factor in factors" :key="factor.key" class="text-center py-2 px-3"> | |
| <div class="flex flex-col items-center"> | |
| <i :data-feather="factor.icon" class="h-4 w-4 text-primary-500"></i> | |
| <span class="text-xs mt-1">{{ factor.name }}</span> | |
| </div> | |
| </th> | |
| <th class="text-center py-2 px-3">Overall</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr v-for="asset in assets" :key="asset.symbol" class="border-t border-gray-100 hover:bg-gray-50"> | |
| <td class="py-3 px-3 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-8 w-8 bg-pink-100 rounded-full flex items-center justify-center"> | |
| <i :data-feather="asset.icon" class="h-4 w-4 text-primary-500"></i> | |
| </div> | |
| <div class="ml-2"> | |
| <div class="text-sm font-medium">{{ asset.symbol }}</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td v-for="factor in factors" :key="factor.key" class="text-center py-3 px-3" :class="getScoreClass(asset.scores[factor.key])"> | |
| {{ formatScore(asset.scores[factor.key]) }} | |
| </td> | |
| <td class="text-center py-3 px-3 font-medium" :class="getScoreClass(asset.overallScore)"> | |
| {{ formatScore(asset.overallScore) }} | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Trend Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <!-- Macro Trends --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Macro Trends</h3> | |
| <div class="h-80"> | |
| <canvas ref="macroChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- COT Trends --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">COT Positioning</h3> | |
| <div class="h-80"> | |
| <canvas ref="cotChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Detailed Analysis --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Detailed Analysis</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Bullish Factors --> | |
| <div class="bg-green-50 rounded-lg p-4"> | |
| <div class="flex items-center mb-3"> | |
| <div class="rounded-full p-2 mr-3 bg-green-100"> | |
| <i data-feather="arrow-up" class="h-5 w-5 text-green-600"></i> | |
| </div> | |
| <h4 class="text-md font-medium">Bullish Factors</h4> | |
| </div> | |
| <ul class="space-y-2"> | |
| <li v-for="factor in bullishFactors" :key="factor" class="text-sm flex items-center"> | |
| <i data-feather="check-circle" class="h-4 w-4 text-green-500 mr-2"></i> | |
| {{ factor }} | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Bearish Factors --> | |
| <div class="bg-red-50 rounded-lg p-4"> | |
| <div class="flex items-center mb-3"> | |
| <div class="rounded-full p-2 mr-3 bg-red-100"> | |
| <i data-feather="arrow-down" class="h-5 w-5 text-red-600"></i> | |
| </div> | |
| <h4 class="text-md font-medium">Bearish Factors</h4> | |
| </div> | |
| <ul class="space-y-2"> | |
| <li v-for="factor in bearishFactors" :key="factor" class="text-sm flex items-center"> | |
| <i data-feather="alert-circle" class="h-4 w-4 text-red-500 mr-2"></i> | |
| {{ factor }} | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Neutral Factors --> | |
| <div class="bg-yellow-50 rounded-lg p-4"> | |
| <div class="flex items-center mb-3"> | |
| <div class="rounded-full p-2 mr-3 bg-yellow-100"> | |
| <i data-feather="minus" class="h-5 w-5 text-yellow-600"></i> | |
| </div> | |
| <h4 class="text-md font-medium">Neutral Factors</h4> | |
| </div> | |
| <ul class="space-y-2"> | |
| <li v-for="factor in neutralFactors" :key="factor" class="text-sm flex items-center"> | |
| <i data-feather="info" class="h-4 w-4 text-yellow-500 mr-2"></i> | |
| {{ factor }} | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-white border-t border-pink-100 mt-auto"> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="xl:grid xl:grid-cols-3 xl:gap-8"> | |
| <div class="space-y-8 xl:col-span-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="trending-up" class="h-8 w-8 text-primary-500"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-900">Pinky Forecasters</span> | |
| </div> | |
| <p class="text-gray-500 text-base"> | |
| Making financial forecasting fun and accessible. | |
| </p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i data-feather="twitter" class="h-6 w-6"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i data-feather="facebook" class="h-6 w-6"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i data-feather="instagram" class="h-6 w-6"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-gray-500"> | |
| <i data-feather="linkedin" class="h-6 w-6"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2"> | |
| <div class="md:grid md:grid-cols-2 md:gap-8"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase"> | |
| Products | |
| </h3> | |
| <div class="mt-4 space-y-4"> | |
| <a href="dashboard.html" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Market Dashboard | |
| </a> | |
| <a href="fundamentals.html" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Fundamental Analysis | |
| </a> | |
| <a href="analysis.html" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Advanced Tools | |
| </a> | |
| </div> | |
| </div> | |
| <div class="mt-12 md:mt-0"> | |
| <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase"> | |
| Resources | |
| </h3> | |
| <div class="mt-4 space-y-4"> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Documentation | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Guides | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Blog | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="md:grid md:grid-cols-2 md:gap-8"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase"> | |
| Company | |
| </h3> | |
| <div class="mt-4 space-y-4"> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| About | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Careers | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Contact | |
| </a> | |
| </div> | |
| </div> | |
| <div class="mt-12 md:mt-0"> | |
| <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase"> | |
| Legal | |
| </h3> | |
| <div class="mt-4 space-y-4"> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Privacy | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Terms | |
| </a> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900 block"> | |
| Compliance | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 border-t border-gray-200 pt-8"> | |
| <p class="text-base text-gray-400 text-center"> | |
| © 2023 Pinky Finance Forecasters. All rights reserved. | |
| </p> | |
| </div> | |
| </div> | |
| </footer> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| const { createApp, ref, onMounted, watch, computed } = Vue; | |
| createApp({ | |
| setup() { | |
| const mobileMenuOpen = ref(false); | |
| const timeframe = ref('1m'); | |
| const macroChart = ref(null); | |
| const cotChart = ref(null); | |
| let macroChartInstance = null; | |
| let cotChartInstance = null; | |
| const factors = ref([ | |
| { key: 'macro', name: 'Macro', icon: 'globe' }, | |
| { key: 'micro', name: 'Micro', icon: 'layers' }, | |
| { key: 'seasonal', name: 'Seasonal', icon: 'calendar' }, | |
| { key: 'cot', name: 'COT', icon: 'users' }, | |
| { key: 'options', name: 'Options', icon: 'trending-up' } | |
| ]); | |
| const assets = ref([ | |
| { symbol: 'EURUSD', name: 'Euro/Dollar', icon: 'dollar-sign', scores: { macro: 65, micro: 55, seasonal: 70, cot: 60, options: 58 }, overallScore: 62 }, | |
| { symbol: 'USDJPY', name: 'Dollar/Yen', icon: 'dollar-sign', scores: { macro: 45, micro: 52, seasonal: 48, cot: 40, options: 50 }, overallScore: 47 }, | |
| { symbol: 'XAUUSD', name: 'Gold', icon: 'award', scores: { macro: 72, micro: 68, seasonal: 75, cot: 70, options: 65 }, overallScore: 70 }, | |
| { symbol: 'SPX500', name: 'S&P 500', icon: 'bar-chart-2', scores: { macro: 58, micro: 62, seasonal: 60, cot: 55, options: 65 }, overallScore: 60 }, | |
| { symbol: 'CL1!', name: 'Crude Oil', icon: 'droplet', scores: { macro: 40, micro: 38, seasonal: 42, cot: 35, options: 45 }, overallScore: 40 }, | |
| { symbol: 'NDX', name: 'Nasdaq 100', icon: 'bar-chart-2', scores: { macro: 62, micro: 65, seasonal: 60, cot: 58, options: 70 }, overallScore: 63 } | |
| ]); | |
| const bullishFactors = ref([ | |
| "Strong GDP growth in Q3", | |
| "Declining unemployment rates", | |
| "Positive earnings surprises", | |
| "Seasonal tailwinds for commodities" | |
| ]); | |
| const bearishFactors = ref([ | |
| "Rising inflation concerns", | |
| "Fed tightening expectations", | |
| "Weak retail sales data", | |
| "Technical resistance levels" | |
| ]); | |
| const neutralFactors = ref([ | |
| "Mixed economic data from Europe", | |
| "Stable but elevated valuations", | |
| "Balanced options positioning", | |
| "Neutral COT positioning" | |
| ]); | |
| const formatScore = (score) => { | |
| return score > 0 ? `+${score}` : score; | |
| }; | |
| const getScoreClass = (score) => { | |
| if (score > 60) return 'positive-score'; | |
| if (score < 40) return 'negative-score'; | |
| return ''; | |
| }; | |
| const setTimeframe = (tf) => { | |
| timeframe.value = tf; | |
| updateCharts(); | |
| }; | |
| const updateCharts = () => { | |
| // Destroy existing charts if they exist | |
| if (macroChartInstance) macroChartInstance.destroy(); | |
| if (cotChartInstance) cotChartInstance.destroy(); | |
| // Create new macro chart | |
| const macroCtx = macroChart.value.getContext('2d'); | |
| macroChartInstance = new Chart(macroCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'], | |
| datasets: [ | |
| { | |
| label: 'GDP Growth', | |
| data: [2.1, 2.3, 2.5, 2.7], | |
| borderColor: '#3b82f6', | |
| backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
| borderWidth: 2, | |
| tension: 0.3, | |
| fill: true | |
| }, | |
| { | |
| label: 'Inflation', | |
| data: [3.2, 3.4, 3.6, 3.8], | |
| borderColor: '#8b5cf6', | |
| backgroundColor: 'rgba(139, 92, 246, 0.1)', | |
| borderWidth: 2, | |
| tension: 0.3, | |
| fill: true | |
| }, | |
| { | |
| label: 'Unemployment', | |
| data: [5.8, 5.6, 5.4, 5.2], | |
| borderColor: '#10b981', | |
| backgroundColor: 'rgba(16, 185, 129, 0.1)', | |
| borderWidth: 2, | |
| tension: 0.3, | |
| fill: true | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| title: { | |
| display: true, | |
| text: 'Macro Economic Trends', | |
| font: { | |
| size: 16 | |
| } | |
| }, | |
| tooltip: { | |
| mode: 'index', | |
| intersect: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: false | |
| } | |
| } | |
| } | |
| }); | |
| // Create new COT chart | |
| const cotCtx = cotChart.value.getContext('2d'); | |
| cotChartInstance = new Chart(cotCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Commercial', 'Non-Commercial', 'Non-Reportable'], | |
| datasets: [ | |
| { | |
| label: 'Long Positions', | |
| data: [120000, 80000, 20000], | |
| backgroundColor: 'rgba(16, 185, 129, 0.7)' | |
| }, | |
| { | |
| label: 'Short Positions', | |
| data: [90000, 110000, 25000], | |
| backgroundColor: 'rgba(239, 68, 68, 0.7)' | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| title: { | |
| display: true, | |
| text: 'COT Positioning (Net Contracts)', | |
| font: { | |
| size: 16 | |
| } | |
| } | |
| }, | |
| scales: { | |
| x: { | |
| stacked: true | |
| }, | |
| y: { | |
| stacked: false | |
| } | |
| } | |
| } | |
| }); | |
| }; | |
| // Initial load | |
| onMounted(() => { | |
| updateCharts(); | |
| }); | |
| return { | |
| mobileMenuOpen, | |
| timeframe, | |
| factors, | |
| assets, | |
| bullishFactors, | |
| bearishFactors, | |
| neutralFactors, | |
| macroChart, | |
| cotChart, | |
| formatScore, | |
| getScoreClass, | |
| setTimeframe | |
| }; | |
| } | |
| }).mount('#app'); | |
| </script> | |
| </body> | |
| </html> |