A per‑contribution splitter that targets a BTC weight, tilts by drift and recent 2‑week BTC return, and maps to a smooth, bounded BTC fraction with a logistic function.
For an investment amount M this run:
BTC = f · M
VOOG = (1 − f) · M
Signals:
w_cur = btc_value / (btc_value + voog_value)
e = w_tgt − w_cur # drift (deadbanded)
# Either derive from prices or pass directly:
r_2w = (price_today / price_14d_ago) − 1 # two‑week return
z = a + c·e − (r_2w / k)
σ = 1 / (1 + exp(−z))
f = f_min + (f_max − f_min) · σ
Choose a so that steady state equals b when on‑target and flat:
σ0 = (b − f_min) / (f_max − f_min)
a = log(σ0 / (1 − σ0))
Deadband: if |e| < band, set e = 0.
Safeguards
f_min ≤ f ≤ f_max.r_2w < severe_drop, cap f ≤ throttle_cap.w_max (spill the rest to VOOG).| Name | What it controls | Typical |
|---|---|---|
M | Dollars to invest this run | 500–1500 |
w_tgt | Target BTC portfolio weight | 0.40–0.60 |
w_max | Max BTC weight after this contribution | e.g., 0.60 |
b | Steady split when on‑target & flat | e.g., 0.50 |
f_min, f_max | BTC fraction bounds per run | 0.10 to 0.90 |
band | Ignore small drift within ±band | 0.02–0.03 |
c | Drift sensitivity (pull toward target) | 2.0–4.0 |
k | Momentum scale (smaller = stronger tilt) | 0.08–0.12 |
severe_drop | Crash threshold for two‑week return | −0.25 |
throttle_cap | Max f during crash | 0.70–0.85 |
Tuning tips. Faster pull to target → raise c. Stronger buy‑the‑dip/fade‑the‑rip → lower k. Smoother cashflow → narrow [f_min, f_max] or increase band. Limit BTC risk → lower w_max and set crash throttle.
M, btc_value, voog_value.
price_today & price_14d_ago or provide r_2w directly.
w_tgt, w_max, b, band, f_min, f_max, c, k, severe_drop, throttle_cap.
f (shows bounds)w_maxButtons: Save/Load preset (browser localStorage) and Download CSV (one row with inputs & results).
© You. Static page; no network calls. View‑source to audit.