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-11-22 03:39:15 +00:00
|
|
|
startTime: "2022-05-01"
|
|
|
|
endTime: "2022-10-31"
|
2022-05-30 08:48:07 +00:00
|
|
|
symbols:
|
|
|
|
- BTCUSDT
|
|
|
|
accounts:
|
|
|
|
binance:
|
|
|
|
makerCommission: 10 # 0.15%
|
|
|
|
takerCommission: 15 # 0.15%
|
|
|
|
balances:
|
2022-11-22 03:39:15 +00:00
|
|
|
BTC: 50.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-08-15 10:10:56 +00:00
|
|
|
interval: 1m
|
2022-05-30 08:48:07 +00:00
|
|
|
|
2022-07-08 08:42:31 +00:00
|
|
|
# ATR window used by Supertrend
|
2022-11-22 03:39:15 +00:00
|
|
|
window: 220
|
2022-07-08 08:42:31 +00:00
|
|
|
# ATR Multiplier for calculating super trend prices, the higher, the stronger the trends are
|
2022-11-22 03:39:15 +00:00
|
|
|
supertrendMultiplier: 10
|
2022-07-08 08:42:31 +00:00
|
|
|
|
2022-08-05 03:47:36 +00:00
|
|
|
# leverage uses the account net value to calculate the order qty
|
2022-05-30 09:02:20 +00:00
|
|
|
leverage: 1.0
|
2022-08-05 03:47:36 +00:00
|
|
|
# quantity sets the fixed order qty, takes precedence over Leverage
|
|
|
|
#quantity: 0.5
|
2022-05-30 08:48:07 +00:00
|
|
|
|
|
|
|
# fastDEMAWindow and slowDEMAWindow are for filtering super trend noise
|
2022-11-22 03:39:15 +00:00
|
|
|
fastDEMAWindow: 28
|
|
|
|
slowDEMAWindow: 170
|
2022-05-30 08:48:07 +00:00
|
|
|
|
2022-07-05 07:59:35 +00:00
|
|
|
# Use linear regression as trend confirmation
|
|
|
|
linearRegression:
|
2022-08-15 10:10:56 +00:00
|
|
|
interval: 1m
|
2022-11-22 03:39:15 +00:00
|
|
|
window: 18
|
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
|
|
|
|
2022-09-10 23:19:23 +00:00
|
|
|
# Draw pnl
|
|
|
|
drawGraph: true
|
|
|
|
graphPNLPath: "./pnl.png"
|
|
|
|
graphCumPNLPath: "./cumpnl.png"
|
|
|
|
|
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:
|
2023-03-16 11:45:48 +00:00
|
|
|
percentage: 2%
|
2022-07-25 06:11:55 +00:00
|
|
|
- trailingStop:
|
2023-03-16 11:45:48 +00:00
|
|
|
callbackRate: 2%
|
2022-11-22 03:39:15 +00:00
|
|
|
#activationRatio: 20%
|
2023-03-16 11:45:48 +00:00
|
|
|
minProfit: 10%
|
2022-07-25 06:11:55 +00:00
|
|
|
interval: 1m
|
2022-08-15 10:10:56 +00:00
|
|
|
side: both
|
2022-07-25 06:11:55 +00:00
|
|
|
closePosition: 100%
|
2023-03-16 11:45:48 +00:00
|
|
|
- higherHighLowerLowStopLoss:
|
2023-04-11 08:02:54 +00:00
|
|
|
# interval is the kline interval used by this exit
|
2023-04-28 17:59:01 +00:00
|
|
|
interval: 15m
|
2023-04-11 08:02:54 +00:00
|
|
|
# window is used as the range to determining higher highs and lower lows
|
|
|
|
window: 5
|
|
|
|
# highLowWindow is the range to calculate the number of higher highs and lower lows
|
|
|
|
highLowWindow: 12
|
|
|
|
# If the number of higher highs or lower lows with in HighLowWindow is less than MinHighLow, the exit is
|
|
|
|
# triggered. 0 disables this parameter. Either one of MaxHighLow and MinHighLow must be larger than 0
|
2023-03-16 11:45:48 +00:00
|
|
|
minHighLow: 2
|
2023-04-11 08:02:54 +00:00
|
|
|
# If the number of higher highs or lower lows with in HighLowWindow is more than MaxHighLow, the exit is
|
|
|
|
# triggered. 0 disables this parameter. Either one of MaxHighLow and MinHighLow must be larger than 0
|
2023-03-16 11:45:48 +00:00
|
|
|
maxHighLow: 0
|
2023-04-11 08:02:54 +00:00
|
|
|
# ActivationRatio is the trigger condition
|
|
|
|
# When the price goes higher (lower for short position) than this ratio, the stop will be activated.
|
|
|
|
# You can use this to combine several exits
|
2023-03-16 11:45:48 +00:00
|
|
|
activationRatio: 0.5%
|
2023-04-11 08:02:54 +00:00
|
|
|
# DeactivationRatio is the kill condition
|
|
|
|
# When the price goes higher (lower for short position) than this ratio, the stop will be deactivated.
|
|
|
|
# You can use this to combine several exits
|
2023-03-16 11:45:48 +00:00
|
|
|
deactivationRatio: 10%
|
2023-04-11 08:02:54 +00:00
|
|
|
# If true, looking for lower lows in long position and higher highs in short position. If false, looking for
|
|
|
|
# higher highs in long position and lower lows in short position
|
2023-03-16 11:45:48 +00:00
|
|
|
oppositeDirectionAsPosition: false
|
2023-06-16 10:32:44 +00:00
|
|
|
|
2023-07-10 07:37:19 +00:00
|
|
|
profitStatsTracker:
|
2023-07-10 07:09:09 +00:00
|
|
|
interval: 1d
|
|
|
|
window: 30
|
2023-06-16 10:32:44 +00:00
|
|
|
accumulatedProfitReport:
|
|
|
|
profitMAWindow: 60
|
|
|
|
shortTermProfitWindow: 14
|
|
|
|
tsvReportPath: res.tsv
|
2023-07-17 03:19:10 +00:00
|
|
|
trackParameters: false
|