TIA-ML Strategy
LightGBM 3-Class Classifier with Smart Money (TIA) Features & Confidence-Scaled Position Sizing
Technical Documentation · 2026-06-19 21:51 UTC · BTC/USDT 4H (Binance Perpetual) · 573 Trades
+$25,670
$10K → $35,670+256.7%
2.5 years69.5%
398W / 175L5.60
Avg W: +1.93% | Avg L: -0.91%4.21
Sortino: 3.153.8%
Calmar: 67.5573
~1.5 trades/week+$44.74
Per trade averageExecutive Summary
The TIA-ML Strategy combines Machine Learning (LightGBM) with "Smart Money" principles from The Investor Accelerator (TIA) methodology to trade BTC/USDT on Binance Perpetual futures. The strategy achieved +$25,670 (+256.7% total PnL) on a $10,000 starting balance across 573 trades with a 69.5% win rate and 5.60 profit factor during the backtest period (Jan 2023 – Dec 2025).
Key Innovation: Regime-Aware Labels + TIA Smart Money + Confidence-Scaling
Unlike naive directional prediction, labels are only generated when the market regime supports the trade direction. Long labels appear exclusively in bull trends, short labels in bear trends. Combined with 45 TIA features (VSA, 50% retracement, distribution detection) and confidence-scaled position sizing ($2,000-$5,000), the strategy concentrates capital on highest-conviction signals while maintaining strict risk control.
Strategy Architecture
TIA Methodology
TIA is a "Smart Money" methodology based on 18+ years of market data analysis. It identifies institutional accumulation and distribution patterns.
VSA (Volume Spread Analysis)
- CLV (Close Location Value): Close position within bar range
- Body Ratio: |body| / |range| — conviction strength
- Volume Intensity: Current vol / SMA(20)
- Smart Money Signal: CLV × Volume Intensity
- Effort vs Result: Divergence between volume and price
50% Retracement
- Position in Range: Price relative to 50/100/200-bar high-low
- Distance from 50%: How far from midpoint
- Above/Below Binary: 1 if above 50%, 0 if below
- Bull/Bear Bias: Above 50% = bullish bias zone
- Multi-timeframe: 50, 100, and 200-bar lookback periods
Distribution Detection
- Higher Highs (HH): Uptrend continuation signal
- Lower Lows (LL): Downtrend continuation signal
- CHoCH: Change of Character — trend reversal detection
- 6-bar Distribution Score: Counts HH/HL/LH/LL sequences
- Chop Score: Market choppiness indicator
Additional Features
- Fibonacci Extensions: 0.382, 0.5, 0.618, 0.786 levels
- Volume Profile: POC, Value Area High/Low
- Volatility Regime: ATR percentile classification
- Momentum Divergence: RSI/MACD divergence at extremes
TIA Trading Rules
Rule |
Description |
Implementation |
|---|---|---|
| 1 | Only longs above 50% | if pos_50 > 0.5: allow_long |
| 2 | Only shorts below 50% | if pos_50 < 0.5: allow_short |
| 3 | Avoid distribution zones | if dist_score > 1.5: suppress |
| 4 | Confirm with VSA | if smart_money > 0: confirm |
| 5 | Regime filter | regime_mult = 1.2 if aligned |
Feature Engineering
The strategy uses 142 unique features in two layers:
Base Features (97)
TIA Features (45)
Pipeline
Raw OHLCV → Base Features (97) → TIA Features (45) → Combined (142) → StandardScaler → LightGBM
All operations use pure numpy. Feature matrix: ml_predictions_tia.csv (shape: [6306, 142]).
Model Training
Parameter |
Value |
|---|---|
| Algorithm | LightGBM (Gradient Boosting Decision Tree) |
| Objective | Multiclass (3 classes) |
| Classes | Short (0), No Trade (1), Long (2) |
| Num Leaves | 31 |
| Learning Rate | 0.02 |
| Feature Fraction | 0.6 |
| Bagging Fraction | 0.7 |
| Min Child Samples | 50 |
| Regularization | L1=1.0, L2=1.0 |
| Max Boost Rounds | 500 (early stopping at 30) |
| Training Samples | ~5,045 (80% of 6,306) |
High-Confidence Stats (>0.60)
91.2%
High-confidence only42.90
Annualized24.41
Extreme selectivitySignal Generation
Position Sizing
| Confidence | Scale | Size |
|---|---|---|
| 0.50 | 0.00 | $2,000 |
| 0.60 | 0.20 | $2,600 |
| 0.70 | 0.40 | $3,200 |
| 0.80 | 0.60 | $3,800 |
| 0.90 | 0.80 | $4,400 |
| 1.00 | 1.00 | $5,000 |
Risk Management
Stop Loss
- Fixed: 1.5% from entry
- Checked on each bar close
Time Exit
- Max hold: 12 bars (48h on 4H)
- Forces exit even if stop not hit
Backtest Results
Metric |
Value |
|---|---|
| Total PnL | +$25,670 (+256.7%) |
| Total Trades | 573 |
| Winning | 398 (69.5%) — Avg +1.93% |
| Losing | 175 (30.5%) — Avg -0.91% |
| Profit Factor | 5.60 (W:L = 2.27:1) |
| Total Won | +$31,246 |
| Total Lost | -$5,576 |
| Expectancy | +$44.74 per trade |
Monthly Breakdown
Data & Assets
Technical Implementation
Known Issues & Next Steps
Known Issues
positions.total = 0 in NT — orders tracked (1146 closed)
Next Steps
- Grav CMS deployment (this document)
- Binance testnet paper trading
- L2 order book data integration
- Multi-exchange (Bitfinex spot)
- ETH/USDT expansion
TIA-ML Strategy White Paper · Generated by OWL · 2026-06-19 21:51 UTC