-
Notifications
You must be signed in to change notification settings - Fork 0
/
support.yaml
82 lines (70 loc) · 1.63 KB
/
support.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
notifications:
slack:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
"^BNB": "bnb"
# object routing rules
routing:
trade: "$symbol"
order: "$symbol"
submitOrder: "$session" # not supported yet
pnL: "bbgo-pnl"
sessions:
binance:
exchange: binance
riskControls:
# This is the session-based risk controller, which let you configure different risk controller by session.
sessionBased:
max:
orderExecutor:
bySymbol:
BTCUSDT:
basic:
minQuoteBalance: 100.0
maxBaseAssetBalance: 3.0
minBaseAssetBalance: 0.0
maxOrderAmount: 1000.0
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-09-04"
endTime: "2020-09-14"
symbols:
- BTCUSDT
- ETHUSDT
account:
binance:
balances:
BTC: 0.0
USDT: 10000.0
exchangeStrategies:
- on: binance
support:
symbol: LINKUSDT
interval: 1m
minVolume: 1_000
triggerMovingAverage:
interval: 5m
window: 99
longTermMovingAverage:
interval: 1h
window: 99
scaleQuantity:
byVolume:
exp:
domain: [ 1_000, 200_000 ]
range: [ 0.5, 1.0 ]
maxBaseAssetBalance: 1000.0
minQuoteAssetBalance: 2000.0
#trailingStopTarget:
# callbackRatio: 0.015
# minimumProfitPercentage: 0.02
targets:
- profitPercentage: 0.02
quantityPercentage: 0.5