2022-05-30 08:48:07 +00:00
|
|
|
---
|
|
|
|
persistence:
|
|
|
|
redis:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
|
|
|
|
sessions:
|
|
|
|
binance:
|
|
|
|
exchange: binance
|
|
|
|
envVarPrefix: binance
|
2022-05-31 07:46:55 +00:00
|
|
|
margin: true
|
|
|
|
isolatedMargin: true
|
|
|
|
isolatedMarginSymbol: BTCUSDT
|
2022-05-30 08:48:07 +00:00
|
|
|
|
|
|
|
backtest:
|
|
|
|
sessions: [binance]
|
|
|
|
# for testing max draw down (MDD) at 03-12
|
|
|
|
# see here for more details
|
|
|
|
# https://www.investopedia.com/terms/m/maximum-drawdown-mdd.asp
|
2022-07-07 02:14:15 +00:00
|
|
|
startTime: "2022-01-01"
|
2022-07-06 10:11:09 +00:00
|
|
|
endTime: "2022-06-30"
|
2022-05-30 08:48:07 +00:00
|
|
|
symbols:
|
|
|
|
- BTCUSDT
|
|
|
|
accounts:
|
|
|
|
binance:
|
|
|
|
makerCommission: 10 # 0.15%
|
|
|
|
takerCommission: 15 # 0.15%
|
|
|
|
balances:
|
2022-07-06 11:05:02 +00:00
|
|
|
BTC: 1.0
|
2022-05-30 08:48:07 +00:00
|
|
|
USDT: 10000.0
|
|
|
|
|
|
|
|
exchangeStrategies:
|
|
|
|
- on: binance
|
|
|
|
supertrend:
|
|
|
|
symbol: BTCUSDT
|
|
|
|
|
|
|
|
# interval is how long do you want to update your order price and quantity
|
2022-07-05 07:59:35 +00:00
|
|
|
interval: 5m
|
2022-05-30 08:48:07 +00:00
|
|
|
|
2022-07-08 08:42:31 +00:00
|
|
|
# ATR window used by Supertrend
|
2022-07-25 06:11:55 +00:00
|
|
|
window: 39
|
2022-07-08 08:42:31 +00:00
|
|
|
# ATR Multiplier for calculating super trend prices, the higher, the stronger the trends are
|
2022-07-25 06:11:55 +00:00
|
|
|
supertrendMultiplier: 4.1
|
2022-07-08 08:42:31 +00:00
|
|
|
|
2022-05-30 08:48:07 +00:00
|
|
|
# leverage is the leverage of the orders
|
2022-05-30 09:02:20 +00:00
|
|
|
leverage: 1.0
|
2022-05-30 08:48:07 +00:00
|
|
|
|
|
|
|
# fastDEMAWindow and slowDEMAWindow are for filtering super trend noise
|
|
|
|
fastDEMAWindow: 144
|
|
|
|
slowDEMAWindow: 169
|
|
|
|
|
2022-07-05 07:59:35 +00:00
|
|
|
# Use linear regression as trend confirmation
|
|
|
|
linearRegression:
|
|
|
|
interval: 5m
|
|
|
|
window: 80
|
2022-05-31 04:53:14 +00:00
|
|
|
|
|
|
|
# TP according to ATR multiple, 0 to disable this
|
2022-07-05 07:59:35 +00:00
|
|
|
TakeProfitAtrMultiplier: 0
|
2022-05-31 04:53:14 +00:00
|
|
|
|
|
|
|
# Set SL price to the low of the triggering Kline
|
2022-07-05 07:59:35 +00:00
|
|
|
stopLossByTriggeringK: false
|
|
|
|
|
|
|
|
# TP/SL by reversed supertrend signal
|
|
|
|
stopByReversedSupertrend: false
|
|
|
|
|
|
|
|
# TP/SL by reversed DEMA signal
|
|
|
|
stopByReversedDema: false
|
2022-05-31 04:53:14 +00:00
|
|
|
|
2022-07-05 07:59:35 +00:00
|
|
|
# TP/SL by reversed linear regression signal
|
|
|
|
stopByReversedLinGre: false
|
2022-07-05 08:55:48 +00:00
|
|
|
|
|
|
|
exits:
|
2022-07-06 06:27:50 +00:00
|
|
|
# roiStopLoss is the stop loss percentage of the position ROI (currently the price change)
|
|
|
|
- roiStopLoss:
|
2022-07-25 06:11:55 +00:00
|
|
|
percentage: 4.5%
|
2022-07-08 09:15:38 +00:00
|
|
|
- protectiveStopLoss:
|
|
|
|
activationRatio: 3%
|
|
|
|
stopLossRatio: 2%
|
|
|
|
placeStopOrder: false
|
2022-07-25 06:11:55 +00:00
|
|
|
- trailingStop:
|
|
|
|
callbackRate: 3%
|
|
|
|
#activationRatio: 20%
|
|
|
|
minProfit: 10%
|
|
|
|
interval: 1m
|
|
|
|
side: buy
|
|
|
|
closePosition: 100%
|
|
|
|
- trailingStop:
|
|
|
|
callbackRate: 3%
|
|
|
|
#activationRatio: 20%
|
|
|
|
minProfit: 10%
|
|
|
|
interval: 1m
|
|
|
|
side: sell
|
|
|
|
closePosition: 100%
|
|
|
|
- protectiveStopLoss:
|
|
|
|
activationRatio: 4%
|
|
|
|
stopLossRatio: 2%
|
|
|
|
placeStopOrder: false
|
|
|
|
- protectiveStopLoss:
|
|
|
|
activationRatio: 6%
|
|
|
|
stopLossRatio: 3%
|
|
|
|
placeStopOrder: false
|
|
|
|
- protectiveStopLoss:
|
|
|
|
activationRatio: 10%
|
|
|
|
stopLossRatio: 8%
|
|
|
|
placeStopOrder: false
|