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-09-22 04:01:26 +00:00
|
|
|
limitOrder: false
|
2022-07-01 10:38:25 +00:00
|
|
|
# kline interval for indicators
|
2022-09-22 04:01:26 +00:00
|
|
|
interval: 2m
|
|
|
|
window: 6
|
|
|
|
stoploss: 0.23%
|
|
|
|
source: ohlc4
|
2022-07-25 10:36:22 +00:00
|
|
|
predictOffset: 2
|
2022-09-22 04:01:26 +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-09-22 04:01:26 +00:00
|
|
|
hlVarianceMultiplier: 0.03
|
|
|
|
hlRangeWindow: 4
|
2022-08-23 08:22:45 +00:00
|
|
|
smootherWindow: 3
|
2022-09-22 04:01:26 +00:00
|
|
|
fisherTransformWindow: 117
|
|
|
|
window1m: 42
|
|
|
|
smootherWindow1m: 118
|
|
|
|
fisherTransformWindow1m: 319
|
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-09-22 04:01:26 +00:00
|
|
|
pendingMinutes: 3
|
2022-08-02 11:21:44 +00:00
|
|
|
noRebalance: true
|
|
|
|
trendWindow: 12
|
2022-09-22 04:01:26 +00:00
|
|
|
rebalanceFilter: 2
|
2022-08-02 11:21:44 +00:00
|
|
|
|
2022-09-22 04:01:26 +00:00
|
|
|
trailingActivationRatio: [0.0015, 0.002, 0.004, 0.01]
|
|
|
|
trailingCallbackRate: [0.0001, 0.00012, 0.001, 0.002]
|
|
|
|
#driftFilterPos: 0.4
|
|
|
|
#driftFilterNeg: -0.42
|
|
|
|
#ddriftFilterPos: 0
|
|
|
|
#ddriftFilterNeg: 0
|
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-09-22 04:01:26 +00:00
|
|
|
startTime: "2022-09-01"
|
|
|
|
endTime: "2022-09-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-09-22 04:01:26 +00:00
|
|
|
takerFeeRate: 0.0000
|
2022-07-01 10:38:25 +00:00
|
|
|
balances:
|
2022-09-22 04:01:26 +00:00
|
|
|
ETH: 0
|
|
|
|
BUSD: 1000.0
|