Trading Logic
How Quant Lucid generates signals, when trades are authorized, and how risk controls interact with execution.
Design principles
- No day trading — all signals use end-of-day closes; no intraday or same-session round trips.
- Position trading — minimum 21 calendar days holding before discretionary sells (stops and halts excepted).
- Trend exits are daily; entries are weekly — MA200 below-trend redirects happen every session; full rebalances execute on Mondays only.
- Dual webhook gates — scheduled Monday rebalances plus conditional defensive risk alerts on any business day.
Trend filter (exit logic)
Applies to Growth, Quant Lucid Momentum, Factor, and Alpha portfolios.
| Rule | Detail |
|---|---|
| Filter | 200-day simple moving average per holding |
| Below MA | Weight redirects to SHY (1–3 yr Treasuries) |
| Re-entry | Next weekly Monday rebalance when drift exceeds 5% |
Rebalance schedule
| Setting | Default |
|---|---|
| Schedule | Every Monday (UTC) |
| Drift gate | 5% from target weight |
| Min holding | 21 calendar days |
Set REBALANCE_SCHEDULE=monthly to use first-Monday-monthly instead.
Webhook dispatch
Daily cron ├── regime = defensive → portfolio.risk_alert (any business day) ├── Monday rebalance → portfolio.rebalance └── otherwise → monitor-only (API still readable)
Defensive triggers include VIX spike (>30), elevated portfolio drawdown, high average risk score, or projected volatility above threshold.
Backtest metrics on portfolio pages
Trend-filter portfolios show MA200-filtered Sharpe, return, and max drawdown — matching live signal behavior rather than static buy-and-hold. Template portfolios (Conservative, Balanced, Dividend) use buy-and-hold at optimized weights.
Research only. Not financial advice. For educational and informational purposes only. Past performance does not indicate future results.