bbgo_origin/config/trendtrader.yaml

51 lines
897 B
YAML

persistence:
json:
directory: var/data
redis:
host: 127.0.0.1
port: 6379
db: 0
sessions:
binance:
exchange: binance
envVarPrefix: binance
# futures: true
exchangeStrategies:
- on: binance
trendtrader:
symbol: BTCUSDT
trendLine:
interval: 30m
pivotRightWindow: 40
quantity: 1
exits:
- trailingStop:
callbackRate: 1%
activationRatio: 1%
closePosition: 100%
minProfit: 15%
interval: 1m
side: buy
- trailingStop:
callbackRate: 1%
activationRatio: 1%
closePosition: 100%
minProfit: 15%
interval: 1m
side: sell
backtest:
sessions:
- binance
startTime: "2022-01-01"
endTime: "2023-04-01"
symbols:
- BTCUSDT
accounts:
binance:
balances:
BTC: 1.0
USDT: 50_000.0