- Added stop loss and take profit parameters to TradeParams interface
- Implemented conditional order placement in executeTrade method
- Added ZERO import and closePosition method to DriftTradingService
- Enhanced trade API to handle stop loss/take profit parameters
- Added position fetching and closing functionality to AdvancedTradingPanel
- Added open positions display with close buttons
- Implemented risk management calculations and UI
- Added conditional order tracking in TradeResult interface
- Updated AccountBalance interface to include netUsdValue and unrealizedPnl
- Enhanced getAccountBalance() to calculate Net USD Value (collateral + unrealized PnL)
- Added Net USD Value calculation from all position unrealized PnL
- Updated Dashboard.tsx to display Net USD Value as primary metric
- Added new stats card with emerald styling for Net USD Value
- Reorganized stats grid to 6 columns to accommodate new metric
- Net USD Value = Total Collateral + Total Unrealized PnL from all positions
- Updated Dashboard.tsx to remove demo data fallbacks
- Updated TradingHistory.tsx to use new Drift trading history endpoint
- Added getTradingHistory method to DriftTradingService
- Created new /api/drift/trading-history endpoint
- Removed fallback demo positions from getPositions method
- All UI components now show only real Drift account data or empty states
- No more hardcoded mock trades or positions
- Add tailwind.config.ts with proper content paths and theme config
- Add postcss.config.js for Tailwind and autoprefixer processing
- Downgrade tailwindcss to v3.4.17 and add missing PostCSS dependencies
- Update Dockerfile to clarify build process
- Fix UI styling issues in Docker environment
- Added comprehensive layout menu item detection with multiple selectors
- Implemented debug screenshots for layout menu and after layout changes
- Added better error handling and logging for layout selection
- Improved text matching with exact and partial match strategies
- Added fallback comprehensive search with direct click functionality
- Fixed TypeScript issues with element handle clicking
- Add settings manager to persist symbol, timeframe, and layouts
- Support multiple layouts for comprehensive chart analysis
- Remove debug screenshots for cleaner logs
- Update AI analysis with professional trading prompt
- Add multi-screenshot analysis for better trading insights
- Update analyze API to use saved settings and multiple layouts