mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 01:23:51 +00:00
69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
---
|
|
imports:
|
|
- github.com/c9s/bbgo/pkg/strategy/buyandhold
|
|
- github.com/c9s/bbgo/pkg/strategy/xpuremaker
|
|
|
|
notifications:
|
|
slack:
|
|
defaultChannel: "dev-bbgo"
|
|
errorChannel: "bbgo-error"
|
|
|
|
# if you want to route channel by symbol
|
|
symbolChannels:
|
|
"^BTC": "btc"
|
|
"^ETH": "eth"
|
|
|
|
# if you want to route channel by exchange session
|
|
sessionChannels:
|
|
max: "bbgo-max"
|
|
binance: "bbgo-binance"
|
|
|
|
# routing rules
|
|
routing:
|
|
trade: "$symbol"
|
|
order: "$symbol"
|
|
submitOrder: "$session"
|
|
pnL: "bbgo-pnl"
|
|
|
|
reportPnL:
|
|
- averageCostBySymbols:
|
|
- "BTCUSDT"
|
|
- "BNBUSDT"
|
|
of: binance
|
|
when:
|
|
- "@daily"
|
|
- "@hourly"
|
|
|
|
sessions:
|
|
max:
|
|
exchange: max
|
|
envVarPrefix: max
|
|
|
|
binance:
|
|
exchange: binance
|
|
envVarPrefix: binance
|
|
|
|
backtest:
|
|
# for testing max draw down (MDD) at 03-12
|
|
# see here for more details
|
|
# https://www.investopedia.com/terms/m/maximum-drawdown-mdd.asp
|
|
startTime: "2020-01-01"
|
|
symbols:
|
|
- BTCUSDT
|
|
account:
|
|
makerCommission: 15
|
|
takerCommission: 15
|
|
buyerCommission: 0
|
|
sellerCommission: 0
|
|
balances:
|
|
BTC: 1.0
|
|
USDT: 5000.0
|
|
|
|
exchangeStrategies:
|
|
- on: max
|
|
buyandhold:
|
|
symbol: "BTCUSDT"
|
|
interval: "1m"
|
|
baseQuantity: 0.01
|
|
minDropPercentage: -0.02
|