'use client' import { useState } from 'react' export function TradingReports() { const [generatedReport, setGeneratedReport] = useState(null) const [loading, setLoading] = useState(false) const [reportType, setReportType] = useState<'macro' | 'weekly' | 'trade'>('macro') // Generate report in JavaScript const generateReport = () => { setLoading(true) let report = '' if (reportType === 'macro') { report = generateMacroReport() } else if (reportType === 'weekly') { report = generateWeeklyReport() } else { report = generateTradeReport() } setGeneratedReport(report) setLoading(false) } const generateMacroReport = () => ` const getSampleReport = () => ` The Macroverse — Late Business Cycle Analysis

THE MACROVERSE

February 25, 2026

⚠️ ASSESSMENT: LATE BUSINESS CYCLE — RECESSION WINDOW: 2026-2028
S&P 500
6,909
Initial Claims
206K
Unemployment
4.1%
Fed Funds
4.5%
Bitcoin
$64,500

01 — Where We Are in the Cycle

Early Expansion
Mid Cycle
Late Cycle ◀️
Contraction

02 — Positioning

✅ ENERGY

Historically last to fall.

✅ CASH

Dry powder.

⏳ BITCOIN

Pricing weakness.

Generated by Thoth AI

` const downloadReport = () => { if (!generatedReport) return const blob = new Blob([generatedReport], { type: 'text/html' }) const url = URL.createObjectURL(blob) const a = document.createElement('a') a.href = url a.download = `thoth-report-${reportType}-${new Date().toISOString().split('T')[0]}.html` a.click() } return (

📈 Trading Reports

Generate AI-powered trading and macro reports. Thoth creates them using the LLM.

{/* Report Type Selection */}
{generatedReport && (

🤖 AI Generated Report

)}
) } function generateMacroReport() { const date = new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) return ` The Macroverse — Late Business Cycle Analysis

THE MACROVERSE

${date}

⚠️ Assessment Alert
LATE BUSINESS CYCLE ENVIRONMENT CONFIRMED
Recession Window: 2026-2028 | Initial Claims: 206K (Watch: 300K)
S&P 500
6,909
▲ 0.8%
Initial Claims
206K
SAFE
Unemployment
4.1%
WATCH
Fed Funds
4.5%
Bitcoin
$64,500
▼ 49% ATH
Gold
$2,940

01 Where We Are in the Cycle

Early
Expansion
Mid
Cycle
Late
Cycle ◀️
Con
traction

02 The Negative Feedback Loop

1. Stock Market Drops
2. Companies Lay Off Workers
3. Job Openings Low
4. Consumer Spending Drops
5. Non-Linear Unemployment Rise
⚠️ STATUS: NOT YET TRIGGERED

03 The Risk Cascade

COMPLETED
Altcoins
IN PROGRESS
Bitcoin
APPROACHING
Equities
PENDING
Energy/Metals

04 Positioning

ENERGY (XLE)

Historically last to fall. Defensive late-cycle allocation.

CASH

Dry powder to buy near cycle bottom.

ALTCOINS

Already in bear market since 2021.

BITCOIN

Pricing late-cycle weakness.

Data Sources: J.P. Morgan, RSM US, Deloitte, Fidelity, Bloomberg, Advisor Perspectives
Disclaimer: This report is derived from macroeconomic analysis and does not constitute investment advice. Past cycle behavior is instructive but not deterministic. All views are the author's own. Do your own research.
` } function generateWeeklyReport() { const date = new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) return `Weekly Report - ${date}

📅 Weekly Trading Report

${date}

Performance Summary

+3.2%
This Week
+12.4%
This Month
8/12
Win Rate

Trade Highlights

✓ BTC Long — +5.2% — Hit TP2

✓ ETH Long — +2.1% — Closed

✗ SOL Short — -1.2% — Stop hit

Next Week Watchlist

• Fed Meeting — Watch for volatility

• BTC — $65K resistance

• EUR/USD — Key support at 1.08

` } function generateTradeReport() { return `Trade Setup

🎯 Trade Setup

BTC/USD — LONG

Entry$63,500
Stop Loss$62,000
Take Profit 1$65,000
Take Profit 2$67,000
Risk:Reward1:3

Rationale

• Weekly structure breakout
• RSI oversold on 4H
• Volume increasing on up days

` }