2022-06-09 03:58:58 +00:00
---
sessions :
binance :
exchange : binance
envVarPrefix : binance
margin : true
# isolatedMargin: true
# isolatedMarginSymbol: ETHUSDT
exchangeStrategies :
- on : binance
pivotshort :
symbol : ETHUSDT
2022-06-10 07:34:57 +00:00
# interval is the main pivot interval
2022-06-09 03:58:58 +00:00
interval : 5m
2022-06-10 07:34:57 +00:00
# window is the main pivot window
window : 200
2022-06-09 03:58:58 +00:00
2022-06-09 09:36:22 +00:00
# breakLow settings are used for shorting when the current price break the previous low
breakLow :
2022-06-10 03:36:04 +00:00
# ratio is how much the price breaks the previous low to trigger the short.
2022-06-09 09:36:22 +00:00
ratio : 0.1 %
2022-06-10 03:36:04 +00:00
# quantity is used for submitting the sell order
# if quantity is not set, all base balance will be used for selling the short.
2022-06-09 09:36:22 +00:00
quantity : 10.0
2022-06-10 03:36:04 +00:00
# marketOrder submits the market sell order when the closed price is lower than the previous pivot low.
marketOrder : true
# bounceRatio is used for calculating the price of the limit sell order.
# it's ratio of pivot low bounce when a new pivot low is detected.
# Sometimes when the price breaks the previous low, the price might be pulled back to a higher price.
# The bounceRatio is useful for such case, however, you might also miss the chance to short at the price if there is no pull back.
# Notice: When marketOrder is set, bounceRatio will not be used.
# bounceRatio: 0.1%
# stopEMARange is the price range we allow short.
# Short-allowed price range = [current price] > [EMA] * (1 - [stopEMARange])
stopEMARange : 0 %
2022-06-09 10:16:32 +00:00
stopEMA :
interval : 1h
window : 99
2022-06-09 03:58:58 +00:00
2022-06-09 09:36:22 +00:00
bounceShort :
2022-06-11 08:41:56 +00:00
enabled : false
2022-06-10 16:26:44 +00:00
interval : 1h
window : 10
2022-06-09 03:58:58 +00:00
quantity : 10.0
2022-06-10 16:26:44 +00:00
minDistance : 3 %
2022-06-09 09:36:22 +00:00
# stopLossPercentage: 1%
2022-06-10 16:26:44 +00:00
# ratio is the ratio of the resistance price,
# higher the ratio, lower the price
# first_layer_price = resistance_price * (1 - ratio)
2022-06-11 08:33:21 +00:00
# second_layer_price = (resistance_price * (1 - ratio)) * (2 * layerSpread)
ratio : 0 %
numOfLayers : 1
2022-06-09 09:36:22 +00:00
layerSpread : 0.1 %
2022-06-09 03:58:58 +00:00
exit :
2022-06-09 09:36:22 +00:00
# roiStopLossPercentage is the stop loss percentage of the position ROI (currently the price change)
2022-06-11 08:33:21 +00:00
roiStopLossPercentage : 2 %
2022-06-09 09:36:22 +00:00
2022-06-09 18:40:15 +00:00
# roiTakeProfitPercentage is used to force taking profit by percentage of the position ROI (currently the price change)
2022-06-09 17:21:59 +00:00
# force to take the profit ROI exceeded the percentage.
2022-06-11 08:33:21 +00:00
roiTakeProfitPercentage : 30 %
2022-06-09 03:58:58 +00:00
2022-06-09 18:39:14 +00:00
# roiMinTakeProfitPercentage applies to lowerShadowRatio and cumulatedVolume exit options
roiMinTakeProfitPercentage : 10 %
# lowerShadowRatio is used to taking profit when the (lower shadow height / low price) > lowerShadowRatio
2022-06-09 17:21:59 +00:00
# you can grab a simple stats by the following SQL:
# SELECT ((close - low) / close) AS shadow_ratio FROM binance_klines WHERE symbol = 'ETHUSDT' AND `interval` = '5m' AND start_time > '2022-01-01' ORDER BY shadow_ratio DESC LIMIT 20;
2022-06-09 09:36:22 +00:00
lowerShadowRatio : 3 %
2022-06-09 18:39:14 +00:00
# cumulatedVolume is used to take profit when the cumulated quote volume from the klines exceeded a threshold
2022-06-09 17:21:59 +00:00
cumulatedVolume :
2022-06-09 18:39:14 +00:00
enabled : true
minQuoteVolume : 90_000_000
2022-06-09 17:21:59 +00:00
window : 5
2022-06-09 09:36:22 +00:00
marginOrderSideEffect : repay
2022-06-09 03:58:58 +00:00
backtest :
sessions :
2022-06-09 05:20:51 +00:00
- binance
2022-06-09 18:39:14 +00:00
startTime : "2022-01-01"
2022-06-09 05:20:51 +00:00
endTime : "2022-06-08"
2022-06-09 03:58:58 +00:00
symbols :
2022-06-09 05:20:51 +00:00
- ETHUSDT
accounts :
2022-06-09 03:58:58 +00:00
binance :
balances :
ETH : 10.0
USDT : 3000.0