Emotional Trading Mistake Detector

Emotional Trading Mistake Detector

Answer the following questions to help identify potential emotional trading mistakes.

Error: Could not generate PDF. Please ensure all required fields are filled and analyze results first.

'; return; } // Options for html2pdf const opt = { margin: 0.5, filename: 'Emotional_Trading_Report.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, logging: true, dpi: 192, letterRendering: true }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }, pagebreak: { avoid: ['TABLE', 'H3'] } // Avoid breaking tables or headers across pages }; // Generate the PDF html2pdf().from(element).set(opt).save(); } // --- Event Listeners --- tabButtons.forEach(button => { button.addEventListener('click', function() { const tabName = this.dataset.tab; if (!this.disabled) { // Only activate if the button is not disabled activateTab(tabName); } }); }); analyzeMistakesBtn.addEventListener('click', function() { const analysis = analyzeMistakes(); displayResults(analysis); }); downloadMistakesPdfBtn.addEventListener('click', generatePdfReport); previousTabBtn.addEventListener('click', function() { activateTab('questions'); }); // Initialize with the first tab active and results tab disabled activateTab('questions'); tabResultsBtn.disabled = true; // Explicitly ensure results tab is disabled initially });
Scroll to Top