2022-07-01 10:38:25 +00:00
|
|
|
---
|
2022-07-20 10:49:56 +00:00
|
|
|
persistence:
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
|
2022-07-01 10:38:25 +00:00
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
2022-07-20 10:49:56 +00:00
|
|
|
futures: false
|
2022-07-01 10:38:25 +00:00
|
|
|
envVarPrefix: binance
|
|
|
|
heikinAshi: false
|
|
|
|
|
2022-08-02 05:49:09 +00:00
|
|
|
# Drift strategy intends to place buy/sell orders as much value mas it could be. To exchanges that requires to
|
|
|
|
# calculate fees before placing limit orders (e.g. FTX Pro), make sure the fee rate is configured correctly and
|
|
|
|
# enable modifyOrderAmountForFee to prevent order rejection.
|
|
|
|
makerFeeRate: 0.0002
|
|
|
|
takerFeeRate: 0.0007
|
|
|
|
modifyOrderAmountForFee: false
|
|
|
|
|
2022-07-01 10:38:25 +00:00
|
|
|
exchangeStrategies:
|
|
|
|
|
|
|
|
- on: binance
|
|
|
|
drift:
|
2022-07-13 08:08:57 +00:00
|
|
|
canvasPath: "./output.png"
|
2022-07-28 10:34:12 +00:00
|
|
|
symbol: ETHBUSD
|
2022-07-01 10:38:25 +00:00
|
|
|
# kline interval for indicators
|
|
|
|
interval: 15m
|
2022-07-14 05:50:37 +00:00
|
|
|
window: 2
|
2022-07-25 10:36:22 +00:00
|
|
|
stoploss: 0.3%
|
2022-07-15 03:30:04 +00:00
|
|
|
source: close
|
2022-07-25 10:36:22 +00:00
|
|
|
predictOffset: 2
|
2022-07-28 10:34:12 +00:00
|
|
|
noTrailingStopLoss: false
|
2022-08-02 11:21:44 +00:00
|
|
|
trailingStopLossType: kline
|
2022-07-19 09:38:42 +00:00
|
|
|
# stddev on high/low-source
|
2022-08-02 11:21:44 +00:00
|
|
|
hlVarianceMultiplier: 0.23
|
2022-07-28 10:34:12 +00:00
|
|
|
hlRangeWindow: 5
|
2022-08-15 11:50:34 +00:00
|
|
|
window1m: 24
|
|
|
|
smootherWindow1m: 24
|
|
|
|
fisherTransformWindow1m: 162
|
2022-07-29 06:55:23 +00:00
|
|
|
smootherWindow: 1
|
|
|
|
fisherTransformWindow: 9
|
2022-07-28 10:34:12 +00:00
|
|
|
atrWindow: 14
|
2022-07-29 06:55:23 +00:00
|
|
|
# orders not been traded will be canceled after `pendingMinutes` minutes
|
2022-08-15 11:50:34 +00:00
|
|
|
pendingMinutes: 3
|
2022-08-02 11:21:44 +00:00
|
|
|
noRebalance: true
|
|
|
|
trendWindow: 12
|
|
|
|
rebalanceFilter: 1.5
|
|
|
|
|
2022-08-15 11:50:34 +00:00
|
|
|
trailingActivationRatio: [0.004]
|
|
|
|
trailingCallbackRate: [0.001]
|
2022-07-15 10:59:37 +00:00
|
|
|
|
|
|
|
generateGraph: true
|
2022-07-28 10:34:12 +00:00
|
|
|
graphPNLDeductFee: true
|
2022-07-15 10:59:37 +00:00
|
|
|
graphPNLPath: "./pnl.png"
|
|
|
|
graphCumPNLPath: "./cumpnl.png"
|
2022-07-12 10:14:57 +00:00
|
|
|
#exits:
|
|
|
|
#- roiStopLoss:
|
|
|
|
# percentage: 0.8%
|
|
|
|
#- roiTakeProfit:
|
|
|
|
# percentage: 35%
|
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 0.6%
|
|
|
|
# stopLossRatio: 0.1%
|
|
|
|
# placeStopOrder: false
|
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 5%
|
|
|
|
# stopLossRatio: 1%
|
|
|
|
# placeStopOrder: false
|
|
|
|
#- cumulatedVolumeTakeProfit:
|
|
|
|
# interval: 5m
|
|
|
|
# window: 2
|
|
|
|
# minQuoteVolume: 200_000_000
|
2022-07-05 11:43:05 +00:00
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 2%
|
|
|
|
# stopLossRatio: 1%
|
|
|
|
# placeStopOrder: false
|
2022-07-01 10:38:25 +00:00
|
|
|
|
|
|
|
sync:
|
|
|
|
userDataStream:
|
|
|
|
trades: true
|
|
|
|
filledOrders: true
|
|
|
|
sessions:
|
|
|
|
- binance
|
|
|
|
symbols:
|
2022-07-28 10:34:12 +00:00
|
|
|
- ETHBUSD
|
2022-07-01 10:38:25 +00:00
|
|
|
|
|
|
|
backtest:
|
2022-07-14 03:46:19 +00:00
|
|
|
startTime: "2022-01-01"
|
2022-08-15 11:50:34 +00:00
|
|
|
endTime: "2022-08-30"
|
2022-07-01 10:38:25 +00:00
|
|
|
symbols:
|
2022-07-28 10:34:12 +00:00
|
|
|
- ETHBUSD
|
2022-07-01 10:38:25 +00:00
|
|
|
sessions: [binance]
|
|
|
|
accounts:
|
|
|
|
binance:
|
2022-07-28 10:34:12 +00:00
|
|
|
makerFeeRate: 0.0000
|
2022-07-12 10:14:57 +00:00
|
|
|
#takerFeeRate: 0.00001
|
2022-07-01 10:38:25 +00:00
|
|
|
balances:
|
2022-07-15 03:30:04 +00:00
|
|
|
ETH: 10
|
2022-07-28 10:34:12 +00:00
|
|
|
BUSD: 5000.0
|