Algorithmic Trading System

White Light

Risk-managed returns through composite signal analysis

A 7-signal momentum system that reads trend, momentum, volatility, and mean reversion — then positions accordingly. No emotion. No discretion. Just signals.

39.2%
Equity CAGR
TQQQ/BIL rotation
1.868
BlackLight Sharpe
best risk-adjusted crypto
15.4%
BlackLight Max DD
lowest of all strategies
7
Signals
composite sub-strategies
System Design

How It Works

Seven independent sub-strategies each answer a different question about the market. Their weighted composite score drives allocation decisions — no single indicator can fool the system.

SignalNameWeightQuestion It Answers
S1Primary Trend25%Where are we in the big picture? (SMA 50/250)
S2Intermediate Trend15%Is the medium-term confirming? (SMA 20/100)
S3Short-Term Trend10%What's happening right now? (SMA 5/20)
S4Trend Strength10%How strong is the current move? (60d regression slope)
S5Momentum Velocity15%Is momentum accelerating or decelerating? (ROC derivative)
S6Bollinger Mean Reversion15%Are we stretched too far? (Bollinger %B + macro filter)
S7Volatility Regime10%Is the environment safe for leverage? (Vol ratio 20d/60d)
> +0.15
Buy TQQQ / Long BTC
Multiple signals confirm bullish conditions — deploy leverage
-0.15 to +0.15
Hold Cash / Flat
Mixed signals — earn risk-free rate, wait for clarity
< -0.15
Short / Exit
Multiple signals confirm bearish — protect capital

Volatility-Targeted Sizing

Position size scales inversely with realized volatility. When BTC vol is 80%, size down. When it's 40%, size up. This ensures consistent risk exposure regardless of market regime.

position_size = target_vol / realized_vol × base_allocation
Equity Strategy

TQQQ / BIL Rotation

Leveraged NASDAQ exposure managed by momentum signals. Rotates between 3× long (TQQQ), 3× short (SQQQ), and T-Bills (BIL) based on NDX composite score. Daily execution at 3:35 PM ET.

Optimized Thresholds
Bull Entry
+0.25
Bear Entry
-0.15

Grid search across 42 threshold combinations. Optimized for Sharpe ratio.

Instruments
TQQQ3× leveraged NASDAQ-100
SQQQ3× inverse NASDAQ-100
BIL1-3 Month T-Bills (~5%)

Backtest Performance

PeriodTotal ReturnCAGRMax DDSharpeSortinoWin Rate
15yr (2011–2026)11,752%37.5%-52.1%0.820.7874.2%
5yr (2021–2026)447%39.4%-51.1%0.820.7962.3%
3.5yr (2022–2026)168%31.9%-51.5%0.720.6957.4%
1yr (2025–2026)15.4%15.6%-43.5%0.460.4248.4%
Optimized Configuration (Bull +0.25 / Bear -0.15)
0.897
Sharpe Ratio
39.2%
CAGR
36.0%
Max Drawdown

Monte Carlo Simulation — 500 Random Windows

Holding PeriodMedian CAGR5th Pctl95th PctlMedian Max DDMedian Sharpe
Overall32.9%18.9%47.4%-38.1%0.95
1–2 years35.3%-10.6%92.4%-27.5%0.96
3–5 years32.5%21.5%46.6%-34.7%0.94
5–8 years34.3%26.3%42.3%-38.1%0.99
8–12 years32.5%28.6%37.9%-38.1%0.94

Wins 91% of random time windows vs. unmanaged TQQQ. Returns narrow with longer holding periods — the system is consistent, not lucky.

Crypto Strategy

BTC & ETH — Vol-Targeted

The same 7-signal framework applied to crypto markets with volatility-targeted position sizing. 4-hour execution cycle, 24/7. Trades CAGR for dramatically better risk-adjusted returns.

Bitcoin

White Light BTC (2014–2026)
Sharpe
1.544
CAGR
26.1%
Max DD
19.3%
Sortino
1.802
Total Return
12.2×
Thresholds
+0.30 / -0.30
BTC Buy & Hold (Same Period)
Sharpe
1.122
CAGR
68.8%
Max DD
83.4%

Buy & hold delivers higher CAGR but with 83.4% max drawdown. White Light cuts drawdown by 77% while maintaining a superior Sharpe ratio.

ΞEthereum

White Light ETH (2017–2026)
Sharpe
1.236
CAGR
16.9%
Max DD
21.2%
Sortino
1.315
Total Return
3.3×
Thresholds
+0.05 / -0.05
ETH Buy & Hold (Same Period)
Sharpe
0.638
CAGR
19.8%
Max DD
83.2%

ETH White Light nearly doubles the Sharpe (1.24 vs 0.64) while cutting max drawdown from 83% to 21%.

Monte Carlo — 1,000 Simulations

MetricBTC White LightBTC Buy & HoldETH White LightETH Buy & Hold
Median CAGR27.0%73.9%18.3%54.9%
Median Sharpe1.5681.1561.2790.952
Median Max DD19.3%83.4%18.4%79.4%
Beats B&H Sharpe89.0%93.9%
Beats B&H MaxDD100.0%100.0%

The key insight: White Light beats buy-and-hold on Sharpe ratio in 89–94% of random windows and beats on max drawdown in 100% of simulations. You trade raw upside for the ability to sleep at night.

Primary Crypto Strategy

BlackLightMC v2

The evolution of Market Cipher — a 5-strategy composite system with Money Flow as the master filter. BlackLight achieves the highest Sharpe ratio (1.868) and lowest drawdown (15.4%) of any strategy tested.

The key edge: Money Flow as a master filter suppresses 70% of counter-trend signals, while EMA ribbon confirmation provides adaptive regime detection.

ChampionBTC Daily · 2014–2026 · 4,181 bars · 0.25% fees
1.868
Sharpe Ratio
27.8%
CAGR
15.4%
Max Drawdown
14.1×
Total Return
+0.38
Sharpe Edge

Five Entry Strategies

White Line Cut on Trigger Wave

25%

Primary momentum trigger — EMA crossover on the trigger wave oscillator. The highest-confidence entry signal.

VWAP Strong Curve Cross

20%

Volume-weighted average price deviation crossover. Confirms institutional participation in the move.

Money Flow Zero-Line Cross

20%

Capital flow direction change. When money flow crosses zero, institutional conviction has shifted.

Multi-Timeframe Alignment

20%

Confirms signals across multiple timeframes. Prevents entering on noise — requires structural agreement.

Divergence + Volume

15%

Price-momentum divergence confirmed by volume spike. Catches bottoms and tops with high precision.

Money Flow Master Filter

Overrides all entry signals when capital flow opposes the trade. Suppresses 70% of counter-trend false signals before they execute.

System Configuration

Composite Weights
Trigger Wave
25%
VWAP Cross
20%
Money Flow
20%
Multi-TF
20%
Divergence
15%
Key Parameters
Bull Threshold+0.20
Bear Threshold-0.10
EMA Ribbon Boost±20%
Vol-RegimeAdaptive
Master FilterMoney Flow

Asymmetric thresholds: +0.20 bull / -0.10 bear — faster to exit risk, slower to enter. EMA ribbon alignment provides ±20% signal boost.

Crypto Backtesting

Three-Way BTC Comparison

Head-to-head backtest on BTC daily data from 2014–2026. 4,181 bars, 0.25% trading fees, volatility-targeted position sizing.

BlackLight (MC v2) wins decisively on risk-adjusted returns with a +0.38 Sharpe margin over both competitors and the lowest max drawdown.

MetricWhite LightMarket Cipher v1⚡ BlackLight (MC v2)
Sharpe Ratio1.4901.4851.868
CAGR25.0%31.8%27.8%
Max Drawdown20.4%29.6%15.4%
Total Return11.1×19.5×14.1×
Total Trades255119

White Light

Pure price-based 7-signal system. Conservative, reliable. Sharpe 1.490 with 20.4% max drawdown.

Strength: Simplicity & interpretability

Market Cipher v1

Volume-weighted signals. Highest raw return (19.5×) but with 29.6% drawdown and fewest trades.

Strength: Raw return maximization

BlackLight (MC v2)

Winner

Best of both worlds. Sharpe 1.868 — 25% better than either competitor. Lowest drawdown at 15.4%.

Best risk-adjusted returns across all metrics

Why BlackLight wins: The Money Flow master filter eliminates 70% of false signals before they execute. Combined with adaptive vol-regime thresholds and EMA ribbon confirmation, BlackLight achieves +0.38 Sharpe improvement over both White Light and MC v1 — while simultaneously delivering the lowest drawdown of any strategy tested.

Under the Hood

Architecture

Signal Engine

Python-based signal computation on NDX/BTC/ETH price data. 7 sub-strategies produce continuous scores from -1.0 to +1.0, combined via weighted composite.

📊

Data Pipeline

Polygon.io for historical daily data (cached as Parquet). Alpaca for live quotes and crypto OHLCV. Intraday NDX via yfinance for pre-close signals.

🔧

Execution

Alpaca brokerage for both equity and crypto. Market orders near close. Sells before buys. 5% rebalance threshold prevents over-trading (~1 trade per 16 days).

Risk Management

RuleLimitRationale
Max TQQQ allocation50%Caps maximum leveraged exposure
Max SQQQ allocation30%Inverse ETFs decay faster
SQQQ time limit15 trading daysPrevents leverage decay erosion
No direct flip1 day cash bufferPrevents catastrophic whipsaw on 3× leverage
Execution window3:30–3:59 PM ETSkips entirely if delayed — no stale signals
ATR trailing stop2.5× ATRDynamic stop-loss that adapts to volatility

Equity Execution

FrequencyDaily
Time3:35 PM ET
MarketNASDAQ
Avg Trades~1 per 16 days

Crypto Execution

FrequencyEvery 4 hours
Schedule24/7
MarketsBTC/USD, ETH/USD
SizingVol-targeted