feat: institutional agentic ui redesign - purge fake smc canvas, fix header layout voids, 1-click tradingview fullscreen, hermes quant agentic copilot hud

This commit is contained in:
2026-10-23 00:51:24 +06:00
parent 358fdaad3c
commit 64cb59eaae
6 changed files with 614 additions and 353 deletions
@@ -23,6 +23,7 @@ interface TitanOrderTerminalProps {
confluenceDirection: string;
accountEquity: number;
onExecuteTrade: (trade: any) => Promise<void>;
externalSetup?: { lot: number; sl: number; tp: number; orderType: "BUY" | "SELL" } | null;
}
export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
@@ -32,6 +33,7 @@ export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
confluenceDirection,
accountEquity,
onExecuteTrade,
externalSetup,
}) => {
const [orderType, setOrderType] = useState<"BUY" | "SELL">("BUY");
const [lot, setLot] = useState<number>(0.01);
@@ -42,6 +44,16 @@ export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
const [tp3Price, setTp3Price] = useState<number>(2757.40); // 1:4.0 RR
const [isSubmitting, setIsSubmitting] = useState<boolean>(false);
// Apply external setup from Agentic Copilot
useEffect(() => {
if (externalSetup) {
setLot(externalSetup.lot);
setSlPrice(externalSetup.sl);
setTp2Price(externalSetup.tp);
setOrderType(externalSetup.orderType);
}
}, [externalSetup]);
// Sync entry and calculate default TP/SL whenever price changes
useEffect(() => {
if (currentPrice > 0) {