2022-09-01 04:09:03 +00:00
|
|
|
---
|
|
|
|
persistence:
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
|
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
|
|
|
futures: false
|
|
|
|
envVarPrefix: binance
|
|
|
|
heikinAshi: false
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
exchangeStrategies:
|
|
|
|
|
|
|
|
- on: binance
|
|
|
|
elliottwave:
|
2022-10-19 04:17:44 +00:00
|
|
|
minInterval: 1s
|
2022-10-19 08:59:00 +00:00
|
|
|
symbol: BTCUSDT
|
2022-09-28 11:06:37 +00:00
|
|
|
limitOrder: true
|
2022-10-19 08:59:00 +00:00
|
|
|
#quantity: 0.16
|
2022-09-01 04:09:03 +00:00
|
|
|
# kline interval for indicators
|
2022-10-19 08:59:00 +00:00
|
|
|
interval: 1s
|
2022-09-28 11:06:37 +00:00
|
|
|
stoploss: 0.01%
|
2022-09-01 04:09:03 +00:00
|
|
|
windowATR: 14
|
2022-10-19 08:59:00 +00:00
|
|
|
windowQuick: 4
|
|
|
|
windowSlow: 155
|
2022-09-06 05:26:17 +00:00
|
|
|
source: hl2
|
2022-10-19 08:59:00 +00:00
|
|
|
pendingMinInterval: 5
|
2022-09-05 10:31:52 +00:00
|
|
|
useHeikinAshi: true
|
2022-09-02 09:00:16 +00:00
|
|
|
|
|
|
|
drawGraph: true
|
|
|
|
graphIndicatorPath: "./indicator.png"
|
|
|
|
graphPNLPath: "./pnl.png"
|
|
|
|
graphCumPNLPath: "./cumpnl.png"
|
2022-09-01 04:09:03 +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
|
|
|
|
#trailingActivationRatio: [0.01, 0.016, 0.05]
|
|
|
|
#trailingActivationRatio: [0.001, 0.0081, 0.022]
|
2022-10-19 08:59:00 +00:00
|
|
|
#trailingActivationRatio: [0.0017, 0.01, 0.015]
|
|
|
|
trailingActivationRatio: []
|
|
|
|
trailingCallbackRate: []
|
2022-09-01 04:09:03 +00:00
|
|
|
#trailingCallbackRate: [0.002, 0.01, 0.1]
|
|
|
|
#trailingCallbackRate: [0.0004, 0.0009, 0.018]
|
2022-10-19 08:59:00 +00:00
|
|
|
#trailingCallbackRate: [0.0006, 0.0019, 0.006]
|
2022-09-01 04:09:03 +00:00
|
|
|
|
|
|
|
#exits:
|
|
|
|
# - roiStopLoss:
|
|
|
|
# percentage: 0.35%
|
|
|
|
#- roiTakeProfit:
|
|
|
|
# percentage: 0.7%
|
|
|
|
#- 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%
|
|
|
|
# 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: buy
|
|
|
|
# closePosition: 100%
|
|
|
|
#- 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-10-19 08:59:00 +00:00
|
|
|
- BTCUSDT
|
2022-09-01 04:09:03 +00:00
|
|
|
|
|
|
|
backtest:
|
2022-10-19 08:59:00 +00:00
|
|
|
startTime: "2022-10-15"
|
|
|
|
endTime: "2022-10-19"
|
2022-09-01 04:09:03 +00:00
|
|
|
symbols:
|
2022-10-19 08:59:00 +00:00
|
|
|
- BTCUSDT
|
2022-09-01 04:09:03 +00:00
|
|
|
sessions: [binance]
|
2022-10-19 04:17:44 +00:00
|
|
|
syncSecKLines: true
|
2022-09-01 04:09:03 +00:00
|
|
|
accounts:
|
|
|
|
binance:
|
|
|
|
makerFeeRate: 0.000
|
2022-09-05 10:31:52 +00:00
|
|
|
takerFeeRate: 0.000
|
2022-09-01 04:09:03 +00:00
|
|
|
balances:
|
2022-10-19 08:59:00 +00:00
|
|
|
BTC: 0
|
|
|
|
USDT: 100
|