app | Lion Trader 📊 Dashboard Real-Time
Monitora le tue posizioni e performance in tempo reale con grafici interattivi e metriche avanzate.
📈 Analisi Avanzate
Equity curve, heatmap performance, win/loss streaks e metriche di risk management professionali.
🤖 AI Assistant
Assistente AI per analisi dati trading e supporto decisionale basato su intelligenza artificiale.
💹 Market Prices
Quotazioni live di Forex e Commodities con aggiornamenti in tempo reale.
📱 Mobile Friendly
Interfaccia ottimizzata per smartphone e tablet. Installabile come app nativa.
🔒 Sicuro & Privato
Autenticazione sicura, dati criptati e privacy garantita. Supporto multi-account.
× 📲 Come Installare l'App
`; } else if (device.isAndroid) { html = `
📱 Android
- Apri questa pagina in Chrome
- Tocca i tre puntini (⋮) in alto a destra
- Seleziona "Installa app" o "Aggiungi a schermata Home"
- Conferma l'installazione
- L'app apparirà sulla tua schermata home!
`; } else { html = `
💻 Desktop (Chrome/Edge)
- Clicca sull'icona di installazione (⊕) nella barra degli indirizzi
- Oppure clicca i tre puntini → "Installa Lion Trader"
- Conferma l'installazione
- L'app si aprirà in una finestra separata!
`; } html += `
✅ Dopo l'Installazione
- L'app funzionerà come un'applicazione nativa
- Si aprirà in modalità fullscreen (senza barra del browser)
- Funzionerà anche offline dopo la prima visita
- Riceverai notifiche push (se abilitate)
`; return html; } let deferredPrompt; const installButton = document.getElementById('installButton'); const statusMessage = document.getElementById('statusMessage'); const modal = document.getElementById('instructionsModal'); const modalInstructions = document.getElementById('modalInstructions'); const closeBtn = document.getElementsByClassName('close')[0]; showDeviceInfo(); window.addEventListener('beforeinstallprompt', (e) => { e.preventDefault(); deferredPrompt = e; }); installButton.addEventListener('click', async () => { const device = detectDevice(); if (device.isIOS || !deferredPrompt) { modalInstructions.innerHTML = getInstructions(); modal.style.display = 'block'; return; } deferredPrompt.prompt(); const { outcome } = await deferredPrompt.userChoice; if (outcome === 'accepted') { showStatus('✅ App installata con successo!', 'success'); } else { showStatus('ℹ️ Installazione annullata', 'info'); } deferredPrompt = null; }); closeBtn.onclick = function() { modal.style.display = 'none'; } window.onclick = function(event) { if (event.target == modal) { modal.style.display = 'none'; } } window.addEventListener('appinstalled', () => { showStatus('✅ App installata! Puoi trovarla nella tua schermata home', 'success'); }); function showStatus(message, type) { statusMessage.textContent = message; statusMessage.style.display = 'block'; if (type === 'success') { statusMessage.style.background = 'rgba(16, 185, 129, 0.1)'; statusMessage.style.borderColor = 'rgba(16, 185, 129, 0.3)'; statusMessage.style.color = '#10b981'; } else { statusMessage.style.background = 'rgba(59, 130, 246, 0.1)'; statusMessage.style.borderColor = 'rgba(59, 130, 246, 0.3)'; statusMessage.style.color = '#3b82f6'; } setTimeout(() => { statusMessage.style.display = 'none'; }, 5000); } if (window.matchMedia('(display-mode: standalone)').matches) { showStatus('✅ App già installata!', 'success'); }