108 lines
3.2 KiB
YAML
Executable File
108 lines
3.2 KiB
YAML
Executable File
# Global trading-loop settings.
|
|
poll_interval_seconds: 60 # how often prices are refreshed and strategies checked
|
|
snapshot_interval_seconds: 300 # how often equity history is recorded
|
|
fee_rate: 0.004 # taker fee applied to paper trades (Kraken's base tier is 0.40%)
|
|
slippage: 0.0005 # simulated slippage for paper trades
|
|
min_trade_fraction: 0.01 # skip rebalances smaller than 1% of a strategy's equity
|
|
|
|
# Each strategy gets its own virtual slice of capital and is tracked independently.
|
|
# type: a name registered with @register(...) in kraken_trader/strategies/
|
|
# mode: paper (simulated fills on live prices) or live (real Kraken orders)
|
|
# pairs: Kraken pair names, e.g. XBTUSD, ETHUSD, SOLUSD
|
|
# interval: candle size in minutes (1, 5, 15, 30, 60, 240, 1440, 10080, 21600)
|
|
#
|
|
# Test any change first with: python -m kraken_trader.backtest
|
|
# Fees dominate short timeframes, so the research-backed strategies use daily candles.
|
|
|
|
# Liquid USD pairs shared by the multi-asset strategies (YAML anchor, ignored by the app).
|
|
_universe: &universe [XBTUSD, ETHUSD, SOLUSD, XRPUSD, ADAUSD, XDGUSD, LINKUSD, AVAXUSD, LTCUSD, DOTUSD]
|
|
|
|
strategies:
|
|
# ---- Benchmarks: every strategy should beat these on risk-adjusted return ----
|
|
- id: hodl-btc
|
|
type: buy_and_hold
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD]
|
|
interval: 1440
|
|
|
|
- id: hodl-basket
|
|
type: buy_and_hold
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
|
|
# ---- Research-backed ----
|
|
- id: tsmom-btc-eth
|
|
type: time_series_momentum
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD, ETHUSD]
|
|
interval: 1440
|
|
|
|
- id: tsmom-basket
|
|
type: time_series_momentum
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
|
|
- id: turtle-btc-eth
|
|
type: donchian_breakout
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD, ETHUSD]
|
|
interval: 1440
|
|
params: {entry: 55, exit: 20}
|
|
|
|
- id: turtle-fast-basket
|
|
type: donchian_breakout
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
params: {entry: 20, exit: 10}
|
|
|
|
- id: xsmom-top3
|
|
type: cross_sectional_momentum
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
params: {lookback: 21, top_k: 3, rebalance_every: 7}
|
|
|
|
- id: faber-risk-parity
|
|
type: trend_risk_parity
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
params: {sma: 150}
|
|
|
|
# ---- Novel (unproven; watch these in paper mode) ----
|
|
- id: adaptive-regime
|
|
type: adaptive_regime
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD, ETHUSD, SOLUSD]
|
|
interval: 1440
|
|
|
|
- id: squeeze-breakout
|
|
type: squeeze_breakout
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
|
|
- id: btc-regime-rotation
|
|
type: btc_regime_rotation
|
|
starting_capital: 1000
|
|
pairs: *universe
|
|
interval: 1440
|
|
|
|
# ---- Original simple examples ----
|
|
- id: sma-20-50-btc
|
|
type: sma_crossover
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD]
|
|
interval: 1440
|
|
params: {fast: 20, slow: 50}
|
|
|
|
- id: rsi-btc
|
|
type: rsi_mean_reversion
|
|
starting_capital: 1000
|
|
pairs: [XBTUSD]
|
|
interval: 1440
|
|
params: {period: 14, oversold: 30, overbought: 70}
|