2022-06-03 16:39:24 +00:00
---
2022-05-09 21:11:22 +00:00
sessions :
binance :
exchange : binance
envVarPrefix : binance
2022-06-28 17:22:03 +00:00
margin : true
2022-07-21 04:18:31 +00:00
isolatedMargin : true
isolatedMarginSymbol : ETHUSDT
2022-05-09 21:11:22 +00:00
exchangeStrategies :
- on : binance
2022-05-10 09:11:24 +00:00
pivotshort :
2022-06-28 17:22:03 +00:00
symbol : ETHUSDT
# interval is the main pivot interval
2022-05-11 12:55:11 +00:00
interval : 5m
2022-06-02 13:34:26 +00:00
2022-06-28 17:22:03 +00:00
# window is the main pivot window
window : 200
2022-05-09 21:11:22 +00:00
2022-07-19 02:49:27 +00:00
quantity : 10.0
2022-07-21 04:18:31 +00:00
# when quantity is not given, leverage will be used.
# leverage: 10.0
2022-06-09 17:24:15 +00:00
# breakLow settings are used for shorting when the current price break the previous low
breakLow :
2022-06-28 17:22:03 +00:00
# ratio is how much the price breaks the previous low to trigger the short.
ratio : 0 %
# 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 17:24:15 +00:00
quantity : 10.0
2022-06-28 17:22:03 +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])
2022-06-30 09:42:23 +00:00
# Higher the stopEMARange than higher the chance to open a short
2022-06-30 09:46:42 +00:00
stopEMARange : 2 %
2022-06-09 17:24:15 +00:00
stopEMA :
interval : 1h
window : 99
2022-06-03 08:38:06 +00:00
2022-07-19 02:51:18 +00:00
trendEMA :
interval : 1d
window : 7
2022-06-30 09:42:23 +00:00
resistanceShort :
2022-06-30 10:29:02 +00:00
enabled : true
2022-07-03 09:13:01 +00:00
interval : 5m
window : 80
2022-06-30 10:29:02 +00:00
2022-06-28 17:22:03 +00:00
quantity : 10.0
2022-06-30 10:29:02 +00:00
# minDistance is used to ignore the place that is too near to the current price
2022-07-03 09:13:01 +00:00
minDistance : 5 %
2022-07-02 10:51:17 +00:00
groupDistance : 1 %
2022-06-28 17:22:03 +00:00
# ratio is the ratio of the resistance price,
2022-07-03 09:13:01 +00:00
# higher the ratio, higher the sell price
# first_layer_price = resistance_price * (1 + ratio)
# second_layer_price = (resistance_price * (1 + ratio)) * (2 * layerSpread)
2022-07-03 18:20:30 +00:00
ratio : 1.5 %
2022-07-03 09:13:01 +00:00
numOfLayers : 3
layerSpread : 0.4 %
2022-06-28 17:22:03 +00:00
2022-06-26 11:20:08 +00:00
exits :
2022-06-28 17:22:03 +00:00
# (0) roiStopLoss is the stop loss percentage of the position ROI (currently the price change)
2022-06-26 11:20:08 +00:00
- roiStopLoss :
2022-06-28 17:22:03 +00:00
percentage : 0.8 %
2022-06-09 17:24:15 +00:00
2022-06-28 17:22:03 +00:00
# (1) roiTakeProfit is used to force taking profit by percentage of the position ROI (currently the price change)
2022-06-26 11:20:08 +00:00
# force to take the profit ROI exceeded the percentage.
- roiTakeProfit :
2022-06-28 17:22:03 +00:00
percentage : 35 %
# (2) protective stop loss -- short term
2022-06-28 17:31:56 +00:00
- protectiveStopLoss :
2022-06-28 17:22:03 +00:00
activationRatio : 0.6 %
stopLossRatio : 0.1 %
placeStopOrder : false
2022-06-09 17:24:15 +00:00
2022-06-28 17:22:03 +00:00
# (3) protective stop loss -- long term
2022-06-28 17:31:56 +00:00
- protectiveStopLoss :
2022-06-28 17:22:03 +00:00
activationRatio : 5 %
stopLossRatio : 1 %
placeStopOrder : false
2022-06-10 07:34:57 +00:00
2022-06-28 17:22:03 +00:00
# (4) lowerShadowTakeProfit is used to taking profit when the (lower shadow height / low price) > lowerShadowRatio
2022-06-26 11:20:08 +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;
- lowerShadowTakeProfit :
2022-06-30 09:42:23 +00:00
interval : 30m
window : 99
2022-06-26 11:20:08 +00:00
ratio : 3 %
2022-06-09 17:24:15 +00:00
2022-06-28 17:22:03 +00:00
# (5) cumulatedVolumeTakeProfit is used to take profit when the cumulated quote volume from the klines exceeded a threshold
2022-06-26 11:20:08 +00:00
- cumulatedVolumeTakeProfit :
2022-06-30 04:37:54 +00:00
interval : 5m
2022-06-28 17:39:33 +00:00
window : 2
2022-06-30 09:46:42 +00:00
minQuoteVolume : 200_000_000
2022-06-09 17:24:15 +00:00
2022-07-06 18:23:55 +00:00
- trailingStop :
2022-07-13 03:09:57 +00:00
callbackRate : 3 %
2022-07-06 18:23:55 +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-13 03:09:57 +00:00
activationRatio : 40 %
2022-07-06 18:23:55 +00:00
# minProfit uses the position ROI to calculate the profit ratio
# minProfit: 1%
interval : 1m
side : buy
closePosition : 100 %
2022-05-09 21:11:22 +00:00
backtest :
sessions :
2022-06-09 05:20:51 +00:00
- binance
2022-07-06 09:40:50 +00:00
startTime : "2022-01-01"
2022-06-28 17:22:03 +00:00
endTime : "2022-06-18"
2022-05-09 21:11:22 +00:00
symbols :
2022-06-28 17:22:03 +00:00
- ETHUSDT
2022-06-09 05:20:51 +00:00
accounts :
2022-05-09 21:11:22 +00:00
binance :
balances :
2022-06-28 17:22:03 +00:00
ETH : 10.0
USDT : 5000.0