import { useEffect, useState } from 'react'; import type { ExitPolicy } from '../../lib/types'; import { useExitPolicy, useUpdateExitPolicy } from '../../hooks/usePaperTrades'; import { SkeletonCard } from '../ui/Skeleton'; export function ExitPolicySettings() { const { data, isLoading } = useExitPolicy(); const update = useUpdateExitPolicy(); const [mode, setMode] = useState('trailing'); const [pct, setPct] = useState(12); useEffect(() => { if (data) { setMode(data.mode); setPct(data.trailing_pct); } }, [data]); if (isLoading) return ; return (

Paper-Trade Exit

How open paper trades auto-close (in the nightly/intraday outcome job).{' '} Trailing rides a trailing stop — the backtest's best exit, it lets winners run; Target / stop closes at the setup's target or stop. The setup's initial stop is always the floor.

); }