2022-07-25 10:36:22 +00:00
|
|
|
---
|
|
|
|
persistence:
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
|
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
2022-09-22 04:01:26 +00:00
|
|
|
#futures: true
|
|
|
|
#margin: true
|
|
|
|
#isolatedMargin: true
|
|
|
|
#isolatedMarginSymbol: BTCUSDT
|
2022-07-25 10:36:22 +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.
|
2022-10-06 05:52:06 +00:00
|
|
|
makerFeeRate: 0.02%
|
|
|
|
takerFeeRate: 0.07%
|
2022-08-02 05:49:09 +00:00
|
|
|
modifyOrderAmountForFee: false
|
|
|
|
|
2022-07-25 10:36:22 +00:00
|
|
|
exchangeStrategies:
|
|
|
|
|
|
|
|
- on: binance
|
|
|
|
drift:
|
2022-10-20 11:03:10 +00:00
|
|
|
debug: false
|
2022-10-19 04:17:44 +00:00
|
|
|
minInterval: 1s
|
2022-10-03 05:00:18 +00:00
|
|
|
limitOrder: true
|
2022-09-29 11:15:10 +00:00
|
|
|
#quantity: 0.0012
|
2022-07-25 10:36:22 +00:00
|
|
|
canvasPath: "./output.png"
|
2022-08-02 11:21:44 +00:00
|
|
|
symbol: BTCUSDT
|
2022-07-25 10:36:22 +00:00
|
|
|
# kline interval for indicators
|
2022-10-19 04:17:44 +00:00
|
|
|
interval: 1s
|
2022-10-20 11:03:10 +00:00
|
|
|
window: 2
|
2022-09-29 11:15:10 +00:00
|
|
|
useAtr: true
|
2022-10-03 05:00:18 +00:00
|
|
|
useStopLoss: true
|
2022-10-20 11:03:10 +00:00
|
|
|
stoploss: 0.01%
|
2022-09-28 11:06:37 +00:00
|
|
|
source: hl2
|
2022-07-25 10:36:22 +00:00
|
|
|
predictOffset: 2
|
2022-10-20 11:03:10 +00:00
|
|
|
noTrailingStopLoss: true
|
2022-07-25 10:36:22 +00:00
|
|
|
# stddev on high/low-source
|
2022-10-20 11:03:10 +00:00
|
|
|
hlVarianceMultiplier: 0.7
|
|
|
|
hlRangeWindow: 6
|
|
|
|
smootherWindow: 10
|
|
|
|
fisherTransformWindow: 45
|
2022-09-29 11:15:10 +00:00
|
|
|
atrWindow: 24
|
2022-07-29 06:55:23 +00:00
|
|
|
# orders not been traded will be canceled after `pendingMinutes` minutes
|
2022-10-20 11:03:10 +00:00
|
|
|
pendingMinInterval: 6
|
2022-08-02 11:21:44 +00:00
|
|
|
noRebalance: true
|
2022-10-20 11:03:10 +00:00
|
|
|
trendWindow: 4
|
|
|
|
rebalanceFilter: 2
|
2022-08-02 11:21:44 +00:00
|
|
|
|
|
|
|
# ActivationRatio should be increasing order
|
|
|
|
# when farest price from entry goes over that ratio, start using the callback ratio accordingly to do trailingstop
|
2022-08-16 03:30:29 +00:00
|
|
|
#trailingActivationRatio: [0.01, 0.016, 0.05]
|
2022-08-23 08:22:45 +00:00
|
|
|
#trailingActivationRatio: [0.001, 0.0081, 0.022]
|
2022-10-03 05:00:18 +00:00
|
|
|
trailingActivationRatio: [0.0008, 0.002, 0.01]
|
2022-08-10 11:36:30 +00:00
|
|
|
#trailingActivationRatio: []
|
|
|
|
#trailingCallbackRate: []
|
2022-08-16 03:30:29 +00:00
|
|
|
#trailingCallbackRate: [0.002, 0.01, 0.1]
|
2022-08-23 08:22:45 +00:00
|
|
|
#trailingCallbackRate: [0.0004, 0.0009, 0.018]
|
2022-10-03 05:00:18 +00:00
|
|
|
trailingCallbackRate: [0.00014, 0.0003, 0.0016]
|
2022-07-25 10:36:22 +00:00
|
|
|
|
|
|
|
generateGraph: true
|
2022-08-10 11:36:30 +00:00
|
|
|
graphPNLDeductFee: false
|
2022-07-25 10:36:22 +00:00
|
|
|
graphPNLPath: "./pnl.png"
|
|
|
|
graphCumPNLPath: "./cumpnl.png"
|
2022-07-28 10:34:12 +00:00
|
|
|
#exits:
|
2022-08-23 08:22:45 +00:00
|
|
|
# - roiStopLoss:
|
|
|
|
# percentage: 0.35%
|
2022-07-28 10:34:12 +00:00
|
|
|
#- roiTakeProfit:
|
2022-08-23 08:22:45 +00:00
|
|
|
# percentage: 0.7%
|
2022-07-28 10:34:12 +00:00
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 0.5%
|
|
|
|
# stopLossRatio: 0.2%
|
|
|
|
# placeStopOrder: false
|
|
|
|
#- trailingStop:
|
|
|
|
# callbackRate: 0.3%
|
|
|
|
# activationRatio is relative to the average cost,
|
|
|
|
# when side is buy, 1% means lower 1% than the average cost.
|
|
|
|
# when side is sell, 1% means higher 1% than the average cost.
|
|
|
|
# activationRatio: 0.7%
|
|
|
|
# minProfit uses the position ROI to calculate the profit ratio
|
|
|
|
|
|
|
|
# minProfit: 1.5%
|
|
|
|
# interval: 1m
|
|
|
|
# side: sell
|
|
|
|
# closePosition: 100%
|
|
|
|
|
|
|
|
#- trailingStop:
|
|
|
|
# callbackRate: 0.3%
|
2022-07-25 10:36:22 +00:00
|
|
|
# activationRatio is relative to the average cost,
|
|
|
|
# when side is buy, 1% means lower 1% than the average cost.
|
|
|
|
# when side is sell, 1% means higher 1% than the average cost.
|
2022-07-28 10:34:12 +00:00
|
|
|
# activationRatio: 0.7%
|
2022-07-25 10:36:22 +00:00
|
|
|
# minProfit uses the position ROI to calculate the profit ratio
|
2022-07-28 10:34:12 +00:00
|
|
|
|
|
|
|
# minProfit: 1.5%
|
|
|
|
# interval: 1m
|
|
|
|
# side: buy
|
|
|
|
# closePosition: 100%
|
2022-07-25 10:36:22 +00:00
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 5%
|
|
|
|
# stopLossRatio: 1%
|
|
|
|
# placeStopOrder: false
|
|
|
|
#- cumulatedVolumeTakeProfit:
|
|
|
|
# interval: 5m
|
|
|
|
# window: 2
|
|
|
|
# minQuoteVolume: 200_000_000
|
|
|
|
#- protectiveStopLoss:
|
|
|
|
# activationRatio: 2%
|
|
|
|
# stopLossRatio: 1%
|
|
|
|
# placeStopOrder: false
|
|
|
|
|
|
|
|
sync:
|
|
|
|
userDataStream:
|
|
|
|
trades: true
|
|
|
|
filledOrders: true
|
|
|
|
sessions:
|
|
|
|
- binance
|
|
|
|
symbols:
|
2022-08-02 11:21:44 +00:00
|
|
|
- BTCUSDT
|
2022-07-25 10:36:22 +00:00
|
|
|
|
|
|
|
backtest:
|
2022-10-20 11:03:10 +00:00
|
|
|
startTime: "2022-10-19"
|
|
|
|
endTime: "2022-10-20"
|
2022-07-25 10:36:22 +00:00
|
|
|
symbols:
|
2022-08-02 11:21:44 +00:00
|
|
|
- BTCUSDT
|
2022-07-25 10:36:22 +00:00
|
|
|
sessions: [binance]
|
2022-10-19 04:17:44 +00:00
|
|
|
syncSecKLines: true
|
2022-07-25 10:36:22 +00:00
|
|
|
accounts:
|
|
|
|
binance:
|
|
|
|
makerFeeRate: 0.000
|
2022-09-06 05:26:17 +00:00
|
|
|
takerFeeRate: 0.000
|
2022-07-25 10:36:22 +00:00
|
|
|
balances:
|
2022-08-23 08:22:45 +00:00
|
|
|
BTC: 0
|
2022-09-29 11:15:10 +00:00
|
|
|
USDT: 49
|