PSX COMMAND Center

Equity: PKR {{ formatMoney(portfolio.total_equity || memory.balance) }} P&L: {{ (portfolio.realized_pnl||0)>=0?'+':'' }}{{ formatMoney(portfolio.realized_pnl || 0) }} Win Rate: {{ portfolio.win_rate || 0 }}% Trades: {{ portfolio.trades || 0 }} {{ stocks.length }} stocks loaded
PKR {{ formatMoney(memory.balance) }}
⚠️ SYSTEM ALERTS (ADMIN ONLY)
{{ alert }}
The PSX website HTML layout changed. The AI successfully self-repaired the parse, but regex code needs permanent updating in main.py.
Pulse {{ sentiment.mood }} Avg:{{ sentiment.signal_avg > 0 ? '+' : '' }}{{ sentiment.signal_avg }}
▲{{ (sentiment.counts && sentiment.counts.bullish) || 0 }} ━{{ (sentiment.counts && sentiment.counts.neutral) || 0 }} ▼{{ (sentiment.counts && sentiment.counts.bearish) || 0 }}
{{ sec.slice(0,4) }}:{{ val > 0 ? '+' : '' }}{{ val }}
🧠 {{ selected.psychology }}
VWAP: {{ selected.vwap }} {{ selected.price_action }}
🧠
Select a stock or ask the AI anything
Try: "What's the best setup right now?" • "Analyze OGDC for swing trade" • "Compare banking stocks" • "Review my notes on EFERT"
Analyzing...
Select a stock to view its chart
Loading chart...
No chart data
Open{{ selected.open || '—' }}
High{{ selected.high || '—' }}
Low{{ selected.low || '—' }}
VWAP{{ selected.vwap || '—' }}
SMA20{{ selected.sma20 }}
Support{{ selected.support }}
Resist{{ selected.resistance }}
ATR{{ selected.atr }}
Earnings (EPS) {{ selected.fundamentals.eps || 'N/A' }}
PAT {{ selected.fundamentals.pat || 'N/A' }}
Next Board Meeting {{ selected.fundamentals.next_meeting || 'None Scheduled' }}
Avg ROI
{{ simResult.avg_roi > 0 ? '+' : '' }}{{ simResult.avg_roi }}%
Win Prob
{{ simResult.win_probability }}%
Max DD
{{ simResult.avg_max_drawdown }}%
Final
{{ Math.round(simResult.avg_final_capital / 1000) }}k
Best: +{{ simResult.best_roi }}% | Worst: {{ simResult.worst_roi }}% | Cost Drag: PKR {{ simResult.avg_cost_drag ? simResult.avg_cost_drag.toLocaleString() : 0 }} | ATR: {{ simResult.ticker_atr_pct }}%
Monte Carlo Chart
Select a stock to trade
Select a stock to see agent analysis
🤖 AI Fund Manager
{{ builderResult.agent_message }}
⚠️ Rejected Requested Tickers
  • {{ rt.ticker }}: {{ rt.reason }}
Yield Projection ({{ builderHorizon }})
AI Optimal Selection +{{ builderResult.projected_yield_ai || 0 }}%
Forced User Preference +{{ builderResult.projected_yield_user }}%
Portfolio Composition
{{ alloc.ticker }} {{ Math.round((alloc.allocated_pkr / builderResult.total_allocated) * 100) }}%
Strategy Summary
{{ builderResult.strategy_summary }}
Total Allocated: {{ builderResult.total_allocated.toLocaleString() }} PKR | Cash Remaining: {{ builderResult.cash_remaining.toLocaleString() }} PKR
Asset Shares Capital (PKR) AI Rationale
{{ alloc.ticker }} {{ alloc.shares.toLocaleString() }} {{ alloc.allocated_pkr.toLocaleString() }} {{ alloc.rationale }}
Projected Scenario Paths
{{ ms.name }}
{{ ms.projected_return_pct > 0 ? '+' : ''}}{{ ms.projected_return_pct }}%

{{ ms.description }}

📊 {{ ms.evidence }}
🌍{{ ms.geopolitics_impact }}
💰{{ ms.fdi_impact }}
🏛️{{ ms.policy_impact }}
Refine Strategy
{{ msg.msg }}