Spaces:
Sleeping
Sleeping
Download frontend/index.html from PROSTLE/StockSense-AI: direct link, hf CLI and curl.
- Browser
- Download file 25.6 kB
-
https://huggingface.co/spaces/PROSTLE/StockSense-AI/resolve/main/frontend/index.html
- Command line
-
hf download hf://spaces/PROSTLE/StockSense-AI/frontend/index.html
-
curl -L -o index.html https://huggingface.co/spaces/PROSTLE/StockSense-AI/resolve/main/frontend/index.html
25.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>StockSense-AI β Live Trading Dashboard</title> | |
| <link rel="stylesheet" href="style.css?v=6" /> | |
| <!-- Razorpay Checkout Script --> | |
| <script src="https://checkout.razorpay.com/v1/checkout.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link rel="stylesheet" href="dashboard.css"> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link | |
| href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap" | |
| rel="stylesheet"> | |
| </head> | |
| <body> | |
| <!-- Intro Layer --> | |
| <div class="intro-layer" id="introLayer"> | |
| <!-- Background FX --> | |
| <div class="intro-orb orb-1"></div> | |
| <div class="intro-orb orb-2"></div> | |
| <div class="intro-grid"></div> | |
| <div class="intro-content"> | |
| <div class="intro-badge">AI-Powered Trading</div> | |
| <h1 class="intro-title"> | |
| <span class="intro-welcome">Welcome to</span><br /> | |
| <span class="intro-brand">StockSense-AI</span> | |
| </h1> | |
| <p class="intro-subtitle">Venture into the future of market intelligence.</p> | |
| <div class="scroll-prompt" id="scrollPrompt"> | |
| <div class="mouse-icon"> | |
| <div class="wheel"></div> | |
| </div> | |
| <span>Scroll to Dive In</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Static Fibonacci/Mesh Watermark --> | |
| <div | |
| style="position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; opacity: 0.03;"> | |
| <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"> | |
| <defs> | |
| <pattern id="fibonacciGrid" width="100" height="100" patternUnits="userSpaceOnUse"> | |
| <path d="M 100 0 L 0 0 0 100" fill="none" stroke="#ffffff" stroke-width="0.5" /> | |
| <path d="M 0 38.2 L 100 38.2 M 0 61.8 L 100 61.8 M 38.2 0 L 38.2 100 M 61.8 0 L 61.8 100" fill="none" | |
| stroke="#ffffff" stroke-width="0.2" /> | |
| </pattern> | |
| </defs> | |
| <rect width="100%" height="100%" fill="url(#fibonacciGrid)" /> | |
| </svg> | |
| </div> | |
| <!-- Wallet Panel β Premium Slide-in --> | |
| <div id="walletPanel" class="wallet-panel hidden"> | |
| <div class="wallet-panel-content"> | |
| <span class="wallet-close" onclick="closeWallet()">×</span> | |
| <!-- Header --> | |
| <div class="wallet-header"> | |
| <div class="wallet-header-icon"></div> | |
| <h2>My Wallet</h2> | |
| <p class="wallet-subtitle">Synced with AutoBot Balance</p> | |
| </div> | |
| <!-- Balance Card --> | |
| <div class="wallet-balance-card"> | |
| <div class="wallet-balance-label">Available Balance</div> | |
| <div class="wallet-balance-amount" id="walletBalance">βΉ10,00,000.00</div> | |
| <div class="wallet-balance-bar"></div> | |
| </div> | |
| <!-- Quick Add Buttons --> | |
| <div class="wallet-quick-add"> | |
| <span class="wallet-quick-label">Quick Add</span> | |
| <div class="wallet-quick-btns"> | |
| <button onclick="quickAdd(500)">βΉ500</button> | |
| <button onclick="quickAdd(1000)">βΉ1,000</button> | |
| <button onclick="quickAdd(5000)">βΉ5,000</button> | |
| <button onclick="quickAdd(10000)">βΉ10,000</button> | |
| </div> | |
| </div> | |
| <!-- Action Buttons --> | |
| <div class="wallet-actions"> | |
| <button class="wallet-action-btn add" onclick="showAddMoney()"> | |
| <span class="action-icon">οΌ</span> Add Money | |
| </button> | |
| <button class="wallet-action-btn withdraw" onclick="showWithdrawMoney()"> | |
| <span class="action-icon">β</span> Withdraw | |
| </button> | |
| </div> | |
| <!-- Dynamic Form Area --> | |
| <div id="walletActionArea"></div> | |
| <!-- Status Message --> | |
| <div id="walletMessage" class="wallet-message hidden"></div> | |
| <!-- Transaction History --> | |
| <div class="wallet-txn-section"> | |
| <h4>Recent Transactions</h4> | |
| <div id="walletTxnList" class="wallet-txn-list"> | |
| <div class="wallet-txn-empty">No transactions yet</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="topbar"> | |
| <div class="brand"> <span>StockSense-AI</span></div> | |
| <div class="search-area"> | |
| <div class="search-wrapper"> | |
| <i class="fa-solid fa-magnifying-glass search-icon"></i> | |
| <input id="tickerInput" type="text" placeholder="Enter name or ticker... (e.g. Tata, HDFC)" spellcheck="false" | |
| autocomplete="off" /> | |
| <div class="search-dropdown hidden" id="searchDropdown"></div> | |
| </div> | |
| <button id="analyzeBtn" onclick="loadTicker()">Analyze</button> | |
| </div> | |
| <div class="nav-tabs"> | |
| <button class="nav-tab active" onclick="switchTab('charts')">Charts</button> | |
| <button class="nav-tab" onclick="switchTab('trading')">Auto Trade</button> | |
| <button class="nav-tab" onclick="switchTab('dashboard')">Company Dashboard</button> | |
| <button class="nav-tab" onclick="switchTab('engine')">AI Engine</button> | |
| <button class="btn-wallet nav-btn" onclick="showWallet()">Wallet</button> | |
| <button class="btn-trade nav-btn" onclick="executeManualTrade()">Trade</button> | |
| </div> | |
| </nav> | |
| <div class="market-bar" id="marketBar"> | |
| <div class="market-bar-inner"> | |
| <div class="market-item" id="mktStock"> | |
| <span class="mkt-label" id="mktStockLabel">STOCK</span> | |
| <span class="mkt-price" id="mktStockPrice">β</span> | |
| <span class="mkt-change" id="mktStockChange">β</span> | |
| </div> | |
| <div class="market-sep">β</div> | |
| <div class="market-item"> | |
| <span class="mkt-label">NIFTY 50</span> | |
| <span class="mkt-price" id="mktNiftyPrice">β</span> | |
| <span class="mkt-change" id="mktNiftyChange">β</span> | |
| </div> | |
| <div class="market-sep">β</div> | |
| <div class="market-item"> | |
| <span class="mkt-label">SENSEX</span> | |
| <span class="mkt-price" id="mktSensexPrice">β</span> | |
| <span class="mkt-change" id="mktSensexChange">β</span> | |
| </div> | |
| </div> | |
| </div> | |
| <section class="price-banner hidden" id="priceBanner"> | |
| <div class="price-main"> | |
| <h1 id="bannerName">β</h1> | |
| <span class="price-value" id="bannerPrice">0.00</span> | |
| <span class="price-change" id="bannerChange">0.00 (0.00%)</span> | |
| </div> | |
| <div class="price-stats"> | |
| <div><label>Open</label><span id="statOpen">β</span></div> | |
| <div><label>High</label><span id="statHigh">β</span></div> | |
| <div><label>Low</label><span id="statLow">β</span></div> | |
| <div><label>Vol</label><span id="statVol">β</span></div> | |
| <div><label>52W H</label><span id="stat52H">β</span></div> | |
| <div><label>52W L</label><span id="stat52L">β</span></div> | |
| </div> | |
| </section> | |
| <div id="chartsTab" class="tab-content"> | |
| <div class="dashboard"> | |
| <div class="chart-area"> | |
| <div class="timeframe-bar"> | |
| <button class="tf-btn active" data-tf="1d">1D</button> | |
| <button class="tf-btn" data-tf="5d">5D</button> | |
| <button class="tf-btn" data-tf="1mo">1M</button> | |
| <button class="tf-btn" data-tf="3mo">3M</button> | |
| <button class="tf-btn" data-tf="1y">1Y</button> | |
| <button class="tf-btn" data-tf="2y">2Y</button> | |
| </div> | |
| <div class="chart-container" id="mainChartWrap"> | |
| <canvas id="mainChart"></canvas> | |
| <div class="chart-empty-state" id="chartEmptyState"> | |
| <div class="empty-icon">π</div> | |
| <h3>Explore Any Stock</h3> | |
| <p>Search for a stock above or pick one from <strong>High Potential Stocks</strong> to view charts, analysis | |
| & AI insights.</p> | |
| <div class="empty-hint">Try: <span | |
| onclick="document.getElementById('tickerInput').focus()">RELIANCE.NS</span> Β· <span | |
| onclick="document.getElementById('tickerInput').focus()">TCS.NS</span> Β· <span | |
| onclick="document.getElementById('tickerInput').focus()">TATAMOTORS.NS</span></div> | |
| </div> | |
| </div> | |
| <div class="chart-container volume-chart"><canvas id="volumeChart"></canvas></div> | |
| <div class="prediction-section hidden" id="predSection"> | |
| <h3>Next 5-Day Price Forecast</h3> | |
| <div class="pred-loader" id="predLoader"> | |
| <div class="pred-loader-inner"> | |
| <div class="neural-dots"> | |
| <span></span><span></span><span></span><span></span><span></span> | |
| </div> | |
| <div class="loader-brain">π§ </div> | |
| <p class="loader-title">AI Model Training</p> | |
| <p class="loader-sub" id="predLoaderMsg">Analyzing patterns with 10-feature LSTM...</p> | |
| <div class="loader-bar"> | |
| <div class="loader-bar-fill"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="chart-container" id="predChartWrap"><canvas id="predChart"></canvas></div> | |
| <div class="pred-metrics"> | |
| <div class="metric-card"> | |
| <span class="m-label">Confidence</span> | |
| <span class="m-value" id="predConf">β</span> | |
| </div> | |
| <div class="metric-card"> | |
| <span class="m-label">Risk Level</span> | |
| <span class="m-value" id="predRisk">β</span> | |
| </div> | |
| <div class="metric-card"> | |
| <span class="m-label">Day 1 Forecast</span> | |
| <span class="m-value" id="predDay1">β</span> | |
| </div> | |
| <div class="metric-card"> | |
| <span class="m-label">Day 5 Forecast</span> | |
| <span class="m-value" id="predDay5">β</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <aside class="sidebar"> | |
| <div class="panel"> | |
| <h3>High Potential Stocks</h3> | |
| <p class="panel-sub">Ranked by momentum + indicators</p> | |
| <div id="hpLoader" class="mini-loader">Loading scanner...</div> | |
| <div id="hpList" class="hp-list"></div> | |
| </div> | |
| <div class="panel hidden" id="sentPanel"> | |
| <h3>π° News Sentiment</h3> | |
| <div class="sent-gauge"> | |
| <div class="gauge-circle" id="gaugeCircle"><span id="gaugeText">β</span></div> | |
| <span class="gauge-label" id="gaugeLabel">Neutral</span> | |
| </div> | |
| <ul id="sentList" class="sent-list"></ul> | |
| </div> | |
| <div class="panel hidden" id="indPanel"> | |
| <h3>π Technical Indicators</h3> | |
| <table class="ind-table"> | |
| <tbody id="indBody"></tbody> | |
| </table> | |
| </div> | |
| </aside> | |
| </div> | |
| </div> | |
| <div id="tradingTab" class="tab-content hidden"> | |
| <!-- Existing trading content --> | |
| <div class="trading-dashboard"> | |
| <div class="trade-grid"> | |
| <div class="portfolio-header"> | |
| <div class="port-card balance"> | |
| <span class="pc-label">Portfolio Value</span> | |
| <span class="pc-value" id="portValue">βΉ10,00,000.00</span> | |
| </div> | |
| <div class="port-card"> | |
| <span class="pc-label">Cash Balance</span> | |
| <span class="pc-value" id="portBalance">βΉ10,00,000.00</span> | |
| </div> | |
| <div class="port-card"> | |
| <span class="pc-label">Unrealized P&L</span> | |
| <span class="pc-value" id="portUnrealized">βΉ0.00</span> | |
| </div> | |
| <div class="port-card"> | |
| <span class="pc-label">Realized P&L</span> | |
| <span class="pc-value" id="portRealized">βΉ0.00</span> | |
| </div> | |
| <div class="port-card"> | |
| <span class="pc-label">Win Rate</span> | |
| <span class="pc-value" id="portWinRate">0%</span> | |
| </div> | |
| <div class="port-card"> | |
| <span class="pc-label">Total Trades</span> | |
| <span class="pc-value" id="portTrades">0</span> | |
| </div> | |
| </div> | |
| <div class="bot-controls"> | |
| <div class="bot-status"> | |
| <span class="bot-dot" id="botDot"></span> | |
| <span id="botStatus">Bot: OFF</span> | |
| </div> | |
| <div class="bot-buttons"> | |
| <button class="btn-bot" id="toggleBotBtn" onclick="toggleBot()">Auto Bot</button> | |
| <button class="btn-scan" onclick="runAutoScan()">Auto Scan</button> | |
| <button class="btn-reset" onclick="resetPortfolio()">Reset</button> | |
| </div> | |
| </div> | |
| <div class="trade-panel"> | |
| <h3>π Open Positions</h3> | |
| <div class="positions-table-wrap"> | |
| <table class="positions-table"> | |
| <thead> | |
| <tr> | |
| <th>Ticker</th> | |
| <th>Shares</th> | |
| <th>Buy Price</th> | |
| <th>Current</th> | |
| <th>P&L</th> | |
| <th>P&L %</th> | |
| <th>Stop Loss</th> | |
| <th>Take Profit</th> | |
| <th>Action</th> | |
| </tr> | |
| </thead> | |
| <tbody id="positionsBody"> | |
| <tr> | |
| <td colspan="9" class="empty-msg">No open positions</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <div class="trade-panel"> | |
| <h3>π Trade History</h3> | |
| <div class="trade-log" id="tradeLog"> | |
| <div class="empty-msg">No trades yet. Activate the bot or execute a trade.</div> | |
| </div> | |
| </div> | |
| <div class="trade-panel"> | |
| <h3>β‘ Live Trade Feed</h3> | |
| <div class="trade-feed" id="tradeFeed"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- New Unified Company Dashboard Tab --> | |
| <div id="dashboardTab" class="tab-content hidden"> | |
| <div class="dashboard-search-bar" style="display:flex; gap: 0.5rem; justify-content: flex-end; margin-bottom: 1rem; padding-right: 1rem;"> | |
| <input type="text" id="dashboardSearchInput" placeholder="Analyze specific ticker (e.g. INFY.NS)" style="background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-bright); padding: 0.5rem 1rem; border-radius: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; width: 280px;" onkeydown="if(event.key === 'Enter') document.getElementById('dashboardLoadBtn').click()"> | |
| <button id="dashboardLoadBtn" onclick="renderUnifiedDashboard(document.getElementById('dashboardSearchInput').value.trim() || document.getElementById('tickerInput').value.trim())" style="background: var(--accent); color: #000; font-weight: bold; border: none; padding: 0.5rem 1.25rem; border-radius: 0.5rem; font-family: 'Inter', sans-serif; cursor: pointer; transition: 0.2s;">Fetch Data</button> | |
| </div> | |
| <div class="dashboard-grid" id="dashboardContentGrid"> | |
| <!-- Zone 1: Header Panel (Top Row) --> | |
| <header class="zone-header"> | |
| <div class="header-left"> | |
| <div class="company-logo"> | |
| <i class="fa-solid fa-code-compare"></i> | |
| </div> | |
| <div class="company-info"> | |
| <h1 class="company-name" id="hdr-name">--</h1> | |
| <span class="company-ticker" id="hdr-ticker">--</span> | |
| </div> | |
| </div> | |
| <div class="header-center"> | |
| <div class="real-time-metric"> | |
| <span class="metric-label">Current Price</span> | |
| <span class="metric-value" id="hdr-price">--</span> | |
| </div> | |
| <div class="real-time-metric" id="hdr-change-box"> | |
| <span class="metric-label">24h Change</span> | |
| <span class="metric-value" id="hdr-change">--</span> | |
| </div> | |
| <div class="real-time-metric"> | |
| <span class="metric-label">Market Cap</span> | |
| <span class="metric-value" id="hdr-mcap">--</span> | |
| </div> | |
| </div> | |
| <div class="header-right"> | |
| <div class="reliability-label">Reliability Score</div> | |
| <div class="circular-progress" id="reliabilityScoreRing"> | |
| <svg viewBox="0 0 36 36" class="circular-chart"> | |
| <path class="circle-bg" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" /> | |
| <path class="circle" id="ringPath" stroke-dasharray="0, 100" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" /> | |
| <text x="18" y="20.35" class="percentage" id="ringText">--</text> | |
| </svg> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Zone 2: News & Sentiment Feed --> | |
| <section class="zone-news bento-card"> | |
| <h2>News & Sentiment Feed</h2> | |
| <div class="news-list" id="newsList"> | |
| </div> | |
| </section> | |
| <!-- Zone 3: Core Parameters --> | |
| <section class="zone-parameters bento-card"> | |
| <h2>Core Parameters</h2> | |
| <div class="params-grid" id="paramsGrid"> | |
| </div> | |
| </section> | |
| <!-- Zone 4: Company Profile --> | |
| <section class="zone-profile bento-card"> | |
| <h2>Company Overview</h2> | |
| <p id="companyOverviewText" class="company-desc"> | |
| Loading profile information... | |
| </p> | |
| </section> | |
| <!-- Zone 5: Price Action & Forecast Graph --> | |
| <section class="zone-chart bento-card"> | |
| <div class="chart-header"> | |
| <h2>Price Action & AI Forecast</h2> | |
| <button class="generate-btn" id="generateAnalysisBtn"> | |
| Run AI Analysis | |
| </button> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="priceForecastChart"></canvas> | |
| </div> | |
| </section> | |
| </div> | |
| </div> | |
| <!-- AI Brain / Engine Tab --> | |
| <div id="engineTab" class="tab-content hidden"> | |
| <div class="engine-dashboard"> | |
| <header class="engine-header bento-card"> | |
| <div class="engine-header-left"> | |
| <div class="engine-icon"></div> | |
| <div> | |
| <h1>AI Self-Correction Engine</h1> | |
| <p></p> | |
| </div> | |
| </div> | |
| <div class="engine-header-right"> | |
| <button class="engine-btn primary" onclick="runOptimization()"> | |
| <i class="fa-solid fa-wand-magic-sparkles"></i> Optimize Now | |
| </button> | |
| <button class="engine-btn secondary" onclick="resolvePredictions()"> | |
| <i class="fa-solid fa-arrows-rotate"></i> Resolve Accuracy | |
| </button> | |
| </div> | |
| </header> | |
| <div class="engine-grid"> | |
| <!-- Accuracy Overview --> | |
| <section class="engine-card accuracy bento-card"> | |
| <h2>Predictive Accuracy (7D)</h2> | |
| <div id="accuracyStats" class="accuracy-stats"> | |
| <div class="mini-loader">Fetching brain stats...</div> | |
| </div> | |
| </section> | |
| <!-- Dynamic Parameters --> | |
| <section class="engine-card params bento-card"> | |
| <h2>Dynamic Parameters</h2> | |
| <div class="params-table-wrap"> | |
| <table class="params-table"> | |
| <thead> | |
| <tr> | |
| <th>Parameter</th> | |
| <th>Current Value</th> | |
| <th>Description</th> | |
| </tr> | |
| </thead> | |
| <tbody id="engineParamsBody"> | |
| <tr> | |
| <td colspan="3" class="empty-msg">Loading engine brain...</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </section> | |
| <!-- Vision Analysis Log --> | |
| <section class="engine-card vision bento-card"> | |
| <h2>Multimodal Graph Interpretation</h2> | |
| <div class="vision-control"> | |
| <i class="fa-solid fa-magnifying-glass"></i> | |
| <input type="text" id="visionTicker" placeholder="Ticker (e.g. INFY.NS)" /> | |
| <button onclick="runVisionAnalysis()">Run Vision Check</button> | |
| </div> | |
| <div id="visionResult" class="vision-result"> | |
| <p class="empty-msg">Perform a visual analysis of any stock chart using Gemini 2.0 Flash.</p> | |
| </div> | |
| </section> | |
| </div> | |
| </div> | |
| </div> | |
| <section class="insights-section"> | |
| <h2 class="section-title">π AI Γ Finance β Did You Know?</h2> | |
| <div class="insights-grid"> | |
| <div class="insight-card"> | |
| <div class="insight-icon">π€</div> | |
| <h4>AI Handles 60-70% of Trades</h4> | |
| <p>Algorithmic and AI-driven systems now execute the majority of trades on major stock exchanges worldwide.</p> | |
| </div> | |
| <div class="insight-card"> | |
| <div class="insight-icon">π§ </div> | |
| <h4>LSTM Remembers Patterns</h4> | |
| <p>Long Short-Term Memory networks can learn patterns across 60+ trading days, capturing trends that humans | |
| easily miss.</p> | |
| </div> | |
| <div class="insight-card"> | |
| <div class="insight-icon">π°</div> | |
| <h4>News Moves Markets</h4> | |
| <p>Studies show that news sentiment can predict short-term stock movements with up to 70% accuracy when combined | |
| with technical analysis.</p> | |
| </div> | |
| <div class="insight-card"> | |
| <div class="insight-icon">π</div> | |
| <h4>Bollinger Bands</h4> | |
| <p>When Bollinger Band width contracts, a big price move is coming. Our model uses this "squeeze" signal in its | |
| 10-feature pipeline.</p> | |
| </div> | |
| <div class="insight-card"> | |
| <div class="insight-icon">β‘</div> | |
| <h4>Sub-Second Decisions</h4> | |
| <p>Once trained, our LSTM model generates 5-day forecasts in under 50ms β faster than any human analyst could | |
| process a single chart.</p> | |
| </div> | |
| <div class="insight-card"> | |
| <div class="insight-icon">π‘οΈ</div> | |
| <h4>Risk Management is Key</h4> | |
| <p>Professional trading firms never risk more than 2% per trade. Our bot uses stop-loss, take-profit, and | |
| trailing stops for protection.</p> | |
| </div> | |
| </div> | |
| </section> | |
| <section class="pipeline-section"> | |
| <h2 class="section-title">βοΈ How StockSense AI Works</h2> | |
| <div class="pipeline"> | |
| <div class="pipe-step"> | |
| <div class="pipe-num">01</div> | |
| <div class="pipe-icon">π₯</div> | |
| <h4>Data Ingestion</h4> | |
| <p>2 years of OHLCV data fetched from Yahoo Finance in real-time for any stock ticker.</p> | |
| </div> | |
| <div class="pipe-arrow">β</div> | |
| <div class="pipe-step"> | |
| <div class="pipe-num">02</div> | |
| <div class="pipe-icon">π</div> | |
| <h4>Feature Engineering</h4> | |
| <p>10 technical indicators computed: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, and Volume.</p> | |
| </div> | |
| <div class="pipe-arrow">β</div> | |
| <div class="pipe-step"> | |
| <div class="pipe-num">03</div> | |
| <div class="pipe-icon">π§ </div> | |
| <h4>AI Prediction</h4> | |
| <p>3-layer LSTM neural network trained on 60-day windows predicts next 5 business days' prices.</p> | |
| </div> | |
| <div class="pipe-arrow">β</div> | |
| <div class="pipe-step"> | |
| <div class="pipe-num">04</div> | |
| <div class="pipe-icon">πΉ</div> | |
| <h4>Smart Trading</h4> | |
| <p>Composite score (LSTM + Technical + Sentiment) adapts to market regime for auto BUY/SELL.</p> | |
| </div> | |
| </div> | |
| </section> | |
| <footer class="app-footer"> | |
| <div class="footer-content"> | |
| <div class="footer-brand"> | |
| <span class="footer-logo">π StockSense AI</span> | |
| <span class="footer-tagline">Where Machine Learning Meets Market Intelligence</span> | |
| </div> | |
| <div class="footer-tech"> | |
| <span>Built with</span> | |
| <span class="tech-badge">Python</span> | |
| <span class="tech-badge">PyTorch</span> | |
| <span class="tech-badge">FastAPI</span> | |
| <span class="tech-badge">FinBERT</span> | |
| <span class="tech-badge">Chart.js</span> | |
| </div> | |
| </div> | |
| </footer> | |
| <script src="app.js?v=6"></script> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const introLayer = document.getElementById('introLayer'); | |
| if (introLayer) { | |
| document.body.style.overflow = 'hidden'; // Lock scroll until they scroll past | |
| let isHidden = false; | |
| const hideIntro = () => { | |
| if (isHidden) return; | |
| isHidden = true; | |
| introLayer.classList.add('hidden-up'); | |
| document.body.style.overflow = 'auto'; // Unlock scroll | |
| }; | |
| const handleScroll = (e) => { | |
| // If user scrolls mouse wheel down | |
| if (e.deltaY > 0) { | |
| hideIntro(); | |
| } | |
| }; | |
| // Listen for wheel scroll or touch swipe | |
| window.addEventListener('wheel', handleScroll); | |
| let touchStartY = 0; | |
| window.addEventListener('touchstart', e => { | |
| touchStartY = e.changedTouches[0].screenY; | |
| }); | |
| window.addEventListener('touchend', e => { | |
| const touchEndY = e.changedTouches[0].screenY; | |
| if (touchStartY - touchEndY > 20) { // Swiped up | |
| hideIntro(); | |
| } | |
| }); | |
| // Click on "Scroll to Trade" text also works | |
| const scrollPrompt = document.getElementById('scrollPrompt'); | |
| if (scrollPrompt) { | |
| scrollPrompt.addEventListener('click', hideIntro); | |
| } | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |