File size: 17,144 Bytes
b190b45 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
<!DOCTYPE html>
<html lang="en" dir="ltr" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Permissions-Policy" content="accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()">
<meta name="description" content="Professional Technical Analysis - Real-time Market Data & Advanced Indicators">
<title>Technical Analysis | Crypto Intelligence Hub</title>
<link rel="icon" type="image/svg+xml" href="../../assets/icons/favicon.svg">
<!-- Shared Styles -->
<link rel="stylesheet" href="/static/shared/css/design-system.css">
<link rel="stylesheet" href="/static/shared/css/global.css">
<link rel="stylesheet" href="/static/shared/css/components.css">
<link rel="stylesheet" href="/static/shared/css/layout.css">
<link rel="stylesheet" href="/static/shared/css/utilities.css">
<!-- Page Styles -->
<link rel="stylesheet" href="/static/pages/technical-analysis/technical-analysis.css">
<link rel="stylesheet" href="/static/pages/technical-analysis/technical-analysis-enhanced.css">
<!-- TradingView Lightweight Charts -->
<script src="https://unpkg.com/[email protected]/dist/lightweight-charts.standalone.production.js"></script>
<style>
.analysis-card {
background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(59, 130, 246, 0.05));
border: 1px solid rgba(45, 212, 191, 0.2);
border-radius: 16px;
padding: 2rem;
margin-top: 2rem;
}
.analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.analysis-header h3 {
margin: 0;
font-size: 1.25rem;
color: var(--text-primary);
}
.badge {
padding: 0.5rem 1rem;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
}
.badge-buy { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.badge-sell { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-hold { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.analysis-section {
margin-bottom: 1.5rem;
}
.analysis-section h4 {
font-size: 1rem;
color: var(--accent-cyan);
margin-bottom: 0.75rem;
}
.indicator-list {
list-style: none;
padding: 0;
margin: 0;
}
.indicator-list li {
padding: 0.75rem;
margin-bottom: 0.5rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.indicator-name {
font-weight: 600;
color: var(--text-secondary);
}
.indicator-value {
font-weight: 700;
font-size: 1.1rem;
}
.indicator-value.bullish,
.indicator-value.oversold {
color: #22c55e;
}
.indicator-value.bearish,
.indicator-value.overbought {
color: #ef4444;
}
.indicator-value.neutral {
color: #fbbf24;
}
.indicator-signal {
font-size: 0.875rem;
color: var(--text-muted);
}
.recommendation {
background: rgba(59, 130, 246, 0.1);
border-left: 4px solid #3b82f6;
padding: 1rem;
border-radius: 8px;
color: var(--text-secondary);
line-height: 1.6;
}
.risk-bar {
height: 24px;
background: rgba(0, 0, 0, 0.3);
border-radius: 12px;
overflow: hidden;
margin-bottom: 0.5rem;
}
.risk-fill {
height: 100%;
transition: width 0.5s ease;
}
.risk-fill.risk-low {
background: linear-gradient(90deg, #22c55e, #4ade80);
}
.risk-fill.risk-medium {
background: linear-gradient(90deg, #fbbf24, #fcd34d);
}
.risk-fill.risk-high {
background: linear-gradient(90deg, #ef4444, #f87171);
}
.risk-text {
font-size: 0.875rem;
color: var(--text-muted);
}
.trend-bullish {
color: #22c55e;
font-weight: 600;
}
.trend-bearish {
color: #ef4444;
font-weight: 600;
}
.trend-neutral {
color: #fbbf24;
font-weight: 600;
}
.error-state {
text-align: center;
padding: 3rem;
color: var(--text-muted);
}
.error-state svg {
color: #ef4444;
margin-bottom: 1rem;
}
.error-state h3 {
color: var(--text-primary);
margin: 1rem 0;
}
.price-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.price-info-card {
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 12px;
padding: 1rem;
}
.price-info-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.price-info-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
}
#loading-spinner {
display: none;
text-align: center;
padding: 2rem;
}
.spinner {
border: 3px solid rgba(45, 212, 191, 0.1);
border-top: 3px solid #2dd4bf;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
</style>
<!-- API Configuration - Smart Fallback System -->
<script src="/static/js/api-config.js"></script>
<script>
// Initialize API client
window.apiReady = new Promise((resolve) => {
if (window.apiClient) {
console.log('✅ API Client ready');
resolve(window.apiClient);
} else {
console.error('❌ API Client not loaded');
}
});
</script>
</head>
<body>
<div class="app-container">
<aside id="sidebar-container"></aside>
<main class="main-content">
<header id="header-container"></header>
<div class="page-content">
<!-- Page Header -->
<div class="page-header">
<div class="page-title">
<h1>
<span class="page-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 3v18h18"></path>
<path d="M19 9l-5 5-4-4-3 3"></path>
</svg>
</span>
Professional Technical Analysis
</h1>
<p class="page-subtitle">Real-time market data, advanced indicators, and professional trading tools</p>
</div>
<div class="page-actions">
<button id="refresh-data" class="btn btn-secondary">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="23 4 23 10 17 10"></polyline>
<path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>
</svg>
Refresh
</button>
<button id="export-analysis" class="btn btn-secondary">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Export
</button>
</div>
</div>
<!-- Controls -->
<div class="controls-panel" style="background: rgba(0,0,0,0.2); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem;">
<div style="display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;">
<div style="flex: 1; min-width: 200px;">
<label style="display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem;">Symbol</label>
<select id="symbol-select" class="form-select" style="width: 100%;">
<option value="BTC">Bitcoin (BTC)</option>
<option value="ETH">Ethereum (ETH)</option>
<option value="BNB">Binance Coin (BNB)</option>
<option value="SOL">Solana (SOL)</option>
<option value="ADA">Cardano (ADA)</option>
<option value="XRP">Ripple (XRP)</option>
<option value="DOT">Polkadot (DOT)</option>
<option value="DOGE">Dogecoin (DOGE)</option>
<option value="AVAX">Avalanche (AVAX)</option>
<option value="MATIC">Polygon (MATIC)</option>
</select>
</div>
<div style="flex: 2; min-width: 300px;">
<label style="display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem;">Timeframe</label>
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">
<button class="btn btn-sm btn-secondary" data-timeframe="1m">1m</button>
<button class="btn btn-sm btn-secondary" data-timeframe="5m">5m</button>
<button class="btn btn-sm btn-secondary" data-timeframe="15m">15m</button>
<button class="btn btn-sm btn-secondary" data-timeframe="1h">1h</button>
<button class="btn btn-sm btn-secondary active" data-timeframe="4h">4h</button>
<button class="btn btn-sm btn-secondary" data-timeframe="1d">1D</button>
<button class="btn btn-sm btn-secondary" data-timeframe="1w">1W</button>
</div>
</div>
<div style="flex: 0 0 auto;">
<label style="display: block; font-size: 0.875rem; color: transparent; margin-bottom: 0.5rem;">Action</label>
<button id="analyze-btn" class="btn btn-primary">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>
</svg>
Analyze
</button>
</div>
</div>
</div>
<!-- Price Information -->
<div class="price-info-grid">
<div class="price-info-card">
<div class="price-info-label">Current Price</div>
<div class="price-info-value" id="current-price">--</div>
</div>
<div class="price-info-card">
<div class="price-info-label">24h Change</div>
<div class="price-info-value" id="price-change">--</div>
</div>
<div class="price-info-card">
<div class="price-info-label">24h High</div>
<div class="price-info-value" id="24h-high">--</div>
</div>
<div class="price-info-card">
<div class="price-info-label">24h Low</div>
<div class="price-info-value" id="24h-low">--</div>
</div>
<div class="price-info-card">
<div class="price-info-label">24h Volume</div>
<div class="price-info-value" id="24h-volume">--</div>
</div>
</div>
<!-- Chart -->
<div style="background: rgba(0,0,0,0.2); border-radius: 16px; padding: 1rem; margin-bottom: 1.5rem;">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;">
<h3 style="margin: 0; font-size: 1.125rem;">Price Chart</h3>
<div style="display: flex; gap: 1rem; font-size: 0.875rem; color: var(--text-muted);">
<span id="last-update">--</span>
<span id="data-source">--</span>
</div>
</div>
<div id="tradingview-chart" style="width: 100%; height: 500px;"></div>
</div>
<!-- Indicators -->
<div style="background: rgba(0,0,0,0.2); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem;">
<h3 style="margin: 0 0 1rem 0; font-size: 1.125rem;">Key Indicators</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;">
<div style="background: rgba(0,0,0,0.2); border-radius: 8px; padding: 1rem;">
<div style="font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;">RSI (14)</div>
<div id="rsi-value" style="font-size: 1.5rem; font-weight: 700;">--</div>
</div>
<div style="background: rgba(0,0,0,0.2); border-radius: 8px; padding: 1rem;">
<div style="font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;">MACD</div>
<div id="macd-value" style="font-size: 1.5rem; font-weight: 700;">--</div>
</div>
<div style="background: rgba(0,0,0,0.2); border-radius: 8px; padding: 1rem;">
<div style="font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;">EMA (20)</div>
<div id="ema-value" style="font-size: 1.5rem; font-weight: 700;">--</div>
</div>
</div>
</div>
<!-- Loading Spinner -->
<div id="loading-spinner">
<div class="spinner"></div>
<p style="margin-top: 1rem; color: var(--text-muted);">Loading market data...</p>
</div>
<!-- Analysis Results -->
<div id="analysis-results"></div>
</div>
</main>
</div>
<!-- Toast Container -->
<div id="toast-container"></div>
<!-- Shared Scripts -->
<script type="module" src="../../shared/js/layouts/sidebar.js"></script>
<script type="module" src="../../shared/js/layouts/header.js"></script>
<script type="module" src="../../shared/js/components/toast.js"></script>
<script type="module" src="../../shared/js/utils/sanitizer.js"></script>
<!-- Page Script -->
<script type="module" src="/static/pages/technical-analysis/technical-analysis-professional.js"></script>
</body>
</html>
|