mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
config: update schedule config with back-test settings
This commit is contained in:
parent
ea4efccd89
commit
6dc73f9096
21
config/schedule-USDTTWD.yaml
Normal file
21
config/schedule-USDTTWD.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
exchangeStrategies:
|
||||||
|
- on: max
|
||||||
|
schedule:
|
||||||
|
interval: 1m
|
||||||
|
symbol: USDTTWD
|
||||||
|
side: buy
|
||||||
|
quantity: 10
|
||||||
|
|
||||||
|
aboveMovingAverage:
|
||||||
|
type: EWMA
|
||||||
|
interval: 1h
|
||||||
|
window: 99
|
||||||
|
side: sell
|
||||||
|
|
||||||
|
belowMovingAverage:
|
||||||
|
type: EWMA
|
||||||
|
interval: 1h
|
||||||
|
window: 99
|
||||||
|
side: buy
|
||||||
|
|
|
@ -1,29 +1,23 @@
|
||||||
---
|
---
|
||||||
riskControls:
|
backtest:
|
||||||
# This is the session-based risk controller, which let you configure different risk controller by session.
|
sessions:
|
||||||
sessionBased:
|
- binance
|
||||||
# "max" is the session name that you want to configure the risk control
|
startTime: "2022-01-01"
|
||||||
max:
|
endTime: "2022-06-18"
|
||||||
# orderExecutor is one of the risk control
|
symbols:
|
||||||
orderExecutor:
|
- ETHUSDT
|
||||||
# symbol-routed order executor
|
accounts:
|
||||||
bySymbol:
|
binance:
|
||||||
USDTTWD:
|
balances:
|
||||||
# basic risk control order executor
|
USDT: 20_000.0
|
||||||
basic:
|
|
||||||
minQuoteBalance: 100.0
|
|
||||||
maxBaseAssetBalance: 30_000.0
|
|
||||||
minBaseAssetBalance: 0.0
|
|
||||||
maxOrderAmount: 1_000.0
|
|
||||||
|
|
||||||
exchangeStrategies:
|
exchangeStrategies:
|
||||||
|
- on: binance
|
||||||
- on: max
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: 1m
|
interval: 1h
|
||||||
symbol: USDTTWD
|
symbol: ETHUSDT
|
||||||
side: buy
|
side: buy
|
||||||
quantity: 10
|
amount: 20
|
||||||
|
|
||||||
aboveMovingAverage:
|
aboveMovingAverage:
|
||||||
type: EWMA
|
type: EWMA
|
||||||
|
|
Loading…
Reference in New Issue
Block a user