Add Macro Report Generator to Trading tab
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { TradingChart } from './TradingChart'
|
||||
import { TradingTools } from './TradingTools'
|
||||
import { MacroReportGenerator } from './MacroReportGenerator'
|
||||
|
||||
type TradingTab = 'research' | 'strategies' | 'execution' | 'journal' | 'tools'
|
||||
|
||||
@@ -275,6 +276,7 @@ export function TradingPanel() {
|
||||
{ id: 'execution', label: '⚡ Execution', count: trades.filter(t => t.status === 'open').length },
|
||||
{ id: 'journal', label: '📔 Journal', count: trades.length },
|
||||
{ id: 'tools', label: '🧮 Tools', count: 3 },
|
||||
{ id: 'macro', label: '📊 Macro Report', count: 0 },
|
||||
]
|
||||
|
||||
const filteredTrades = trades.filter(t => {
|
||||
@@ -564,6 +566,11 @@ export function TradingPanel() {
|
||||
<TradingTools />
|
||||
)}
|
||||
|
||||
{/* Macro Report Tab */}
|
||||
{activeTab === 'macro' && (
|
||||
<MacroReportGenerator />
|
||||
)}
|
||||
|
||||
{/* Full Analysis Modal */}
|
||||
{showFullAnalysis && (
|
||||
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm z-50 flex items-center justify-center p-4">
|
||||
|
||||
Reference in New Issue
Block a user