# Handoff: Prop-firm fee mispricing project (Lucid Trading, LucidPro 50K) Snapshot v2: 26 Nov 2026. This replaces v1. - Give the next session this file plus the `code/` folder. - Upload the data separately (section 6): `NQ.tar`, `CL.tar`, `GC.tar`, `NG.tar`, plus the CSVs for VIX, VIX9D, VXN, OVX and GVZ. --- ## 1. Project and how to work with this user **Goal.** Find out whether Lucid's $150 evaluation fee is mispriced. That is, does it produce more than $150 of expected value across the account lifecycle (evaluation → funded → payouts → live/buyout)? The question is then how to play it best, including at the level of a whole book of accounts. **User.** - An aspiring algorithmic trader with a background in programming and finance. - Wants objective, concise answers with no flattery. - Has a lot of local compute and can run heavy jobs. - This session's machine had **2 cores**. The user stopped long runs twice to ask how long they'd take, so **give a runtime estimate before any run over ~1 minute**. **Why this is a fresh start.** Earlier chats grew long, drifted, and kept "reaffirming" a strategy edge the user doubts. - Treat every edge claim as a hypothesis to test against a random-entry baseline. - Nothing from those earlier chats is carried over except what's in this document. **User's strategies.** Simple mean-reversion strategies. They use the full drawdown as the stop and aim for the whole target ("bold play"). **They have not been shared or tested yet.** That's the next step once the user sends them. **Prior research the user has already done** (don't repeat it): - **LucidPro 50K is the best plan.** They compared other sizes, plans and firms. - **DLL on vs off:** DLL-on gives more value per account; DLL-off gives more value over time because accounts cycle faster. They use **DLL off**. - **NG and currencies don't have enough volatility to close brackets reliably.** Confirmed here for NG (section 8.3). - **Rule changes are out of scope.** If Lucid penalises the approach, the user will move to another firm. --- ## 2. Account rules: LucidPro 50K, daily loss limit OFF Sources: Lucid's help pages (articles 12890029 evaluation, 12890069 funded, 12890092 payouts, 12890109 consistency, 12890136 drawdown, 11508978 commissions), plus points the user confirmed directly with Lucid. | Item | Rule | |---|---| | Fee | About $150. **Resets cost the same as a new account**, so a fail means a new purchase. | | Start | $50,000, floor $48,000. The evaluation and the funded account both start fresh this way. | | Evaluation target | Balance reaches $53,000. No minimum days, no consistency rule. Passing becomes funded the next session. | | Drawdown | $2,000 end-of-day trailing: floor = max(floor, EOD balance − $2,000). **Locks at $50,100 for good once an EOD close is above $52,100**; it stays locked after payouts. | | Intraday enforcement | Breach if the balance (including open P&L) touches the floor intraday. The floor used is the previous evening's (user confirmed). | | Max size | 4 minis or 40 micros. | | Flat time | 16:45 ET (auto-close, not a breach). On holiday early closes, flat before the market's actual close. | | Payout conditions (checked per cycle; all reset after each payout) | Cycle profit ≥ $500; largest day ≤ 40% of cycle profit; withdrawal only from above the $52,100 buffer. | | Caps | Payout 1: $2,000 (needs balance $54,100). Payouts 2–5: $2,500 (needs $54,600). Minimum request $500. 90/10 split. Paid 2 business days after approval. | | **Payout 5 → move to live** | See below. | | **Hedging (user-confirmed)** | You may not be long and short at the same time **within an instrument group**: equities, metals, energies, currencies. Long GC + short NQ is allowed. Long ES + short NQ is not, and long GC + short SI is not. So all NQ accounts share one direction, all GC accounts one, and **CL and NG share one** (same group). | | Other prohibitions | Copying trades between different people; microscalping (>50% of profit from trades held ≤5 s); HFT. Copiers across your own accounts are allowed. | | Limits | 10 accounts per household (evaluations + funded + passed-in-reserve), at most 5 funded. | **What happens at payout 5 (from Lucid's FAQ and the user):** - Hitting payout 5 on **any** funded account moves the trader to live, or offers a buyout. - Every funded account with **at least 1 payout** gets one live account or a buyout. The buyout is 50% of the drawdown = $1,000, at 90/10 = **$900** to the trader. - **All evaluations are closed** (forfeited). - Funded accounts with 0 payouts close. Their fee is refunded only if ≥50% of the drawdown remains (from the user's notes). - **Then a 14-day lock with no evaluation purchases.** Modelled as 10 trading sessions. - The trader chooses when to request a payout. **Requesting payout 5 is the trigger**, so its timing is a decision, not something automatic. Unverified, not modelled: the live account rules themselves (start $0, $2k EOD drawdown, daily payouts, live bonus), LucidMaxx, and the 14-day cooldown after blowing a live account. --- ## 3. Cost model (user-specified) The user specified market orders only (limit fills on the sim are poor), **1.5 ticks of slippage per side per contract**, and Lucid's per-side commissions. | Instrument | Tick (value per contract) | Commission per side | Round trip, 1 contract | Round trip, 4 contracts | |---|---|---|---|---| | NQ | 0.25 ($5) | $1.75 | $18.50 | $74 | | GC | 0.10 ($10) | $2.30 | $34.60 | $138 | | CL | 0.01 ($10) | $2.00 | $34.00 | $136 | | NG | 0.001 ($10) | $2.00 | $34.00 | $136 | | MNQ (×10 = one NQ) | 0.25 ($0.50) | $0.50 | – | $25 per NQ-equivalent, so worse than NQ | When the floor is the stop, slippage past the floor costs nothing: the account is gone and Lucid absorbs the loss. --- ## 4. Theory established 1. **Martingale identity** (zero edge, no costs): E[total withdrawals] = starting balance − E[balance when the account ends]. - Payout size and the consistency rule change variance and the number of trading days, not expected value. - Example: from the locked state, $500 withdrawals and $2,500 withdrawals both give $2,000 expected. 2. **Evaluation: bold, one-day play is right because of the trailing floor, not because the game is unfavourable.** Costs are only about 1 percentage point of pass rate. - P(pass) = (50,000 − E[balance at failure]) / (53,000 − E[balance at failure]). - Fair-game P(pass) is 40%; about 39% after costs. 3. **Funded, before the lock:** fair-game P(lock) = 2,000/4,100 = 48.8%. - The $2,100 gap between the $48k floor and the $50,100 lock is the "price of locking". - **Aiming above the lock level on lock day dilutes that price.** This is the source of the +$100 overshoot gain (section 8.2). 4. **Costs make bold play right after the lock too.** With zero edge, total cost scales with 1/size, and the consistency rule needs at least 3 days per payout. - **With a real edge this reverses:** smaller sizing and more trades. - So validate the edge before choosing a sizing policy. 5. **Break-even edge** for a bracket with target T, stop R and round-trip cost c: a win-rate uplift greater than c/(T+R). - On 4 NQ: about 1.5 percentage points for a $5,000 bracket, about 4.4 for $1,700, about 18.5 for $400. - **Measure edges as pass-rate and lock-rate uplift against a random-entry baseline, not Sharpe.** - 10 years ≈ 2,500 sessions, so a 95% CI is about ±2.5 points. 6. **Jumps and gaps help.** If the account ends with an undershoot u past the floor and an overshoot o past the target: P(pass) = (2,000 + u)/(5,000 + o + u). - Big jumps push P(pass) towards 50%, because the 3:2 target/stop imbalance stops mattering. - In the funded phase, loss past the floor adds to the trader's expected value dollar for dollar. Lucid is effectively short a put at the floor. - **Untested on events** (CPI, jobs reports, the Fed). Entries at 09:30 showed no jump benefit. 7. **Fewer contracts mean lower costs**, because the same dollar bracket becomes wider in points. The limit is resolving the bracket within the day. - In the evaluation and before the lock, an unresolved day lets the floor ratchet, so high resolution matters there. - After the lock, an unresolved day only costs time and one round trip. 8. **Skew (untested idea):** NQ's negative skew should favour long-only, since down-jumps past the floor are free. That's a single cheap test. --- ## 5. Research protocol - **Development sample: 2020–2024.** - **Stress sample: 2015–2019** (low NQ volatility). - **Holdout: 2025–2026, never touched.** Use it once, for the final test of a fully specified strategy. - **Log every strategy variant tested.** Strategies tested so far: **0**. Only zero-edge, random-direction policies have been run. - **Re-test top results on fresh random seeds.** The search's top policy scored $942 but $888 on fresh seeds. --- ## 6. Data The code hardcodes the data root as `/home/claude/data`. Recreate this layout, or search-and-replace the path: ``` /home/claude/data/nq_raw/NQ/{2015..2026}_1min_bars_data0.parquet (from NQ.tar) /home/claude/data/raw_CL/CL/... raw_GC/GC/... raw_NG/NG/... (from CL/GC/NG.tar) /home/claude/data/vix/VIX.csv VIX9D.csv VXN.csv (DATE,OPEN,HIGH,LOW,CLOSE; dates MM/DD/YYYY) /home/claude/data/vix/OVX.csv GVZ.csv (DATE,; close only) ``` Run `python -I code/build_sessions.py` once (~40 s). It builds `sessions_multi.pkl`, the per-instrument session cache with forecasts, which everything else loads. **Parquet columns:** `ts` (UTC), `ts_et` (naive ET, correct across daylight saving), `session_date` (Python `date`), OHLC, `volume`, `instrument_id`, `is_roll`, `roll_gap`, `adj_add`, `adj_mult`. Prices are raw contract prices. **Data quality (all 4 instruments, all years):** no NaNs, no duplicates, no malformed bars, every price on its tick grid. **Quirks the loader handles:** - Files aren't sorted, so the loader sorts by `ts`. - Rolls happen mid-session on Sundays; the loader keeps only the new contract's bars. - Holiday early closes: the loader exits one bar early. - Exit is at the close of the 16:43 bar. - Sessions with no US cash-session hours are skipped. - Truncated final sessions (NQ and GC 2026, ending 12 Nov 04:17 ET) are dropped. - CL never goes negative in April 2020, because the series rolled before the May contract expired. **Volatility indices:** daily CBOE data. Only the previous day's close is used, to avoid look-ahead. VIX9D is missing 33 US holidays after 2022; the code uses the latest date where both indices exist. **Price level:** NQ was about 4,400 in 2015 and about 28,000 in 2026. Its median session range in 2020–24 was 210–340 points (60 points in 2015). --- ## 7. Code (`code/`) | File | Purpose | |---|---| | `sim/data.py` | Loads and cleans bars; `session_list(df, entry_min)`. | | `sim/bracket.py` | `Instrument` specs (NQ, GC, CL, NG; `INST` dict) and the reference bar-loop `resolve()`. | | `sim/fast.py` | `resolve_fast()` (binary search on running max/min; **verified identical to `resolve()` on 40k cases**), the volatility sizing rule `n_contracts`, and parametric `run_eval` / `run_funded`. | | `sim/lucid.py` | Rule constants, `eod_floor`, and the original reference lifecycle. | | `sim/forecast.py` | Session-range forecast known at entry. Walk-forward (each year fitted on the previous 3) or a single fixed fit. Per-instrument features in `INST_COLS`. | | `sim/portfolio.py` | Account classes `Eval` / `Funded` (stepped versions; **verified identical to `run_eval` / `run_funded`**). `run_book` (single instrument) and `run_book_multi` (instrument-fixed slots, one direction per group, purchase rules `all` / `usable` / `cash`, `lock_days`, `live='keep'/'close'`, `gate`). | | `build_sessions.py` | Builds the multi-instrument cache. Entries: NQ 09:30, CL/NG 09:00, GC 08:20 ET. | | `policy_lib.py`, `t_base.py` | NQ single-account evaluation helpers. `t_base` reproduces +$343 / +$430. | | `search.py`, `confirm.py` | Staged policy search (~75 s) and fresh-seed re-test with paired bootstrap CIs (`confirm.py dev\|stress`). | | `per_instrument.py` | Zero-edge value per instrument and policy. | | `book_sweep.py` | NQ-only book: bankroll × concurrent evaluations. | | `book_multi.py`, `book_cash.py`, `book_lock.py`, `book_live.py` | Multi-instrument book sweeps (each `dev\|stress`, ~1.5–2.5 min on 2 cores). | | `check_multi.py`, `verify_fast.py`, `verify_book.py`, `diag_book.py` | Consistency checks; all pass. | | `vol_forecast.py`, `vol_robust.py`, `vol_dow.py` | Forecast model comparisons (section 8.1). | | `lifecycle.py`, `baseline_random.py`, `size_probe.py`, `qa.py` | Closed-form model, first real-data baseline, fixed-size probe, data QA (`qa.py [tick]`). | **Policy parameters** (dict): `n_eval/k_eval`, `n_pre/k_pre`, `n_post/k_post`, `overshoot`, `f_post`. - `n_*` = fixed contract count. - `k_*` = volatility rule: use the fewest contracts with bracket width (points) ≤ k × forecast range, clipped to 1–4. - **Recommended policy:** `dict(k_eval=0.7, k_pre=0.7, k_post=0.7, overshoot=1000)`. **Fills:** - Entry at the open of the entry bar, plus 1.5 ticks against you. - Target: market exit at the trigger price − 1.5 ticks; if the bar gaps through the target, fill at the open. - Stop = account floor, with P&L = −room. - If stop and target hit in the same bar, the stop is assumed first (never occurred at these bracket sizes). - End of day: flat at the 16:43 bar's close, minus slippage. - One trade per day. **Funded-account target logic:** - Before the lock: target = $52,101 + overshoot − balance. - After the lock: target balance B* = max(cycle start + largest day/0.4, $52,100 + cap). Daily target = max(min(B* − balance, f × 0.4 × (B* − cycle start)), $50). - Withdraw the full cap as soon as eligible. --- ## 8. Results (all zero edge: random direction, user's cost model) ### 8.1 Range forecasting (session range from entry to 16:44) - Walk-forward 2018–24. Improvement in squared error over realised ranges alone (recent 1/5/22-day ranges + overnight range), with significance tests: - **NQ:** + VXN + VIX9D/VIX ratio: +4.6% (t = 3.5). + weekday: +2.0% (t = 2.5). - **GC:** weekday +5.9% (t = 5.1; Mondays about 18% quieter). GVZ +3.4% (t = 2.0). - **NG:** weekday +4.1% (t = 3.4; Thursday storage report). OVX useless. - **CL:** nothing significant. - **Implied volatility never substitutes for realised ranges.** VXN alone is worse than VIX9D alone (horizon matters more than the index). - Typical forecast error is 0.38–0.45 in log terms, so the 95% floor is about half the forecast. Forecast refinements barely change contract counts. - **CVOL data isn't worth buying.** An event calendar is the most promising next feature. ### 8.2 Single-account policy (NQ, net per funded account; fresh seeds) | Policy | 2020–24 | 2015–19 | |---|---|---| | 4 NQ, no overshoot | +$342 | +$267 | | Fixed 2 NQ, no overshoot | +$405 | +$191 (pass rate 32.6%, 16 days) | | Fixed 2 NQ, overshoot $1,000 | +$509 (+$103 vs fixed 2 NQ, CI +63 to +145) | +$237 | | **Volatility k = 0.7, overshoot $1,000** | **+$507** | **+$312** | - Overshoots of $1,000–2,000 perform about the same. - Smaller post-lock targets (f < 1) are worse. - Volatility sizing matches fixed 2 NQ in 2020–24 and is clearly best in quiet regimes. ### 8.3 Per instrument (net per funded account; old policy vs recommended) | | NQ | CL | GC | NG | |---|---|---|---|---| | 2020–24 | $323 → **$485** | $280 → $388 | $212 → $271 | $157 → $204 | | 2015–19 | $287 → $328 | $240 → $331 | $191 → $161 | −$52 → **−$60** | **NG has been dropped.** ### 8.4 Book-level results Setup: 12-month windows, 208 windows × 3 seeds, 10 slots, ≤5 funded, $150 fees upfront, payouts arrive 2 sessions after approval, ruin = cash + pending < $150 with no open accounts. - **NQ-only books are highly correlated.** Fresh evaluations with the same direction pass or fail together. One sample run burned $10k in 21 days. - **The user's current setup** (10 slots: 4 NQ, 3 GC, 2 CL, 1 NG; buys into every empty slot): - 2020–24 P(ruin): 66% / 42% / 25% / 16% at $5k / 10k / 15k / 20k. - The same rule with 10 NQ: 76% / 55% / 42% / 31%. - **Cash-scaled buying** (`fill='cash', m_cash=20`): one evaluation is always allowed while cash ≥ $150; each additional concurrent evaluation needs cash ≥ 20 × $150 × (running evaluations + 1). Slots are filled alternately across instruments. - This cuts ruin sharply **and** raises mean profit. - Allocation 4 NQ / 3 GC / 3 CL (CL replaces NG; slightly better than 4/3/2/1 in both periods). - **Final realistic model** (cash rule m = 20, 14-day lock, payout 5 closes the whole book, $900 buyouts, payout 5 requested at once): | Bankroll | 2020–24: P(ruin), mean $/yr | 2015–19: P(ruin), mean $/yr | |---|---|---| | $5k | 33%, $48k | 11%, $48k | | $10k | 16%, $65k | 0.3%, $64k | | $15k | 8%, $74k | 0%, $73k | | $20k | 4%, $79k | 0%, $78k | - Compared with "other accounts keep trading at payout 5", the whole-book closure costs about 20% of yearly profit, with ruin almost unchanged. - The 14-day lock alone costs about 10%. - **Gating the payout-5 request** (stop buying once any account has 4 payouts; request payout 5 only when no evaluations are open) adds only about $1–2k/yr. It's nearly break-even. - m = 40 cuts ruin further (4.2% → 1.1% at $20k) but lowers profit by about $12–16k/yr. - **Outcomes are bimodal:** P(loss) ≈ P(ruin). ### 8.5 Recommendations given to the user 1. Use the volatility-sized policy (k = 0.7) with a $1,000 lock-day overshoot. 2. Allocate 4 NQ / 3 GC / 3 CL (no NG). 3. Use cash-scaled evaluation buying (about $3,000 of cash per concurrent evaluation, never fewer than one). 4. Hold a bankroll of at least $15–20k; $5k is too small under any rule. 5. When to request payout 5 depends on whether a live account is worth more than $900. If it is, request at once; if the user would take the buyout anyway, gating helps slightly. 6. Log real fills to check the 1.5-tick assumption. The gain from trading fewer contracts depends on it. --- ## 9. Open items / next steps - **Test the user's strategies** against the random baseline, by pass-rate, lock-rate and survival uplift, with every variant logged. Implement a strategy as a direction function per instrument and day, honouring one direction per group. - **Value a live account** (start $0, $2k EOD drawdown, daily payouts, bonus) to settle the payout-5 timing decision. Try a smarter gate that also waits for new funded accounts to reach their first payout. - **Add an event calendar** (CPI, jobs reports, Fed, EIA, storage) for forecasting and for the jump idea (section 4.6). - **Run the long-only skew test** (section 4.8). - **Decorrelation.** Staggered entry times within an instrument, so opposite directions are never held at the same time: confirm with Lucid whether that counts as hedging. - **Not modelled:** the 30-day inactivity rule, microscalping/HFT checks, live-phase trading, taxes, the operational load of about 800 evaluations a year, correlation between the user's strategy directions across groups, and the value of accounts still open at the end of a window (conservative). - **Possible next steps on the user's hardware:** a full DP or wider policy search, a bootstrap by year, and slippage sweeps.