bbgo_origin/config/pivotshort.yaml

67 lines
1.8 KiB
YAML
Raw Normal View History

2022-06-03 16:39:24 +00:00
---
sessions:
binance:
exchange: binance
envVarPrefix: binance
# margin: true
# isolatedMargin: true
# isolatedMarginSymbol: GMTUSDT
# futures: true
exchangeStrategies:
- on: binance
pivotshort:
symbol: GMTUSDT
interval: 5m
window: 120
2022-06-09 17:24:15 +00:00
# breakLow settings are used for shorting when the current price break the previous low
breakLow:
ratio: 0.1%
quantity: 10.0
stopEMARange: 5%
stopEMA:
interval: 1h
window: 99
2022-06-03 08:38:06 +00:00
2022-06-26 11:20:08 +00:00
exits:
# roiStopLoss is the stop loss percentage of the position ROI (currently the price change)
- roiStopLoss:
percentage: 2%
2022-06-09 17:24:15 +00:00
2022-06-26 11:20:08 +00:00
# roiTakeProfit is used to force taking profit by percentage of the position ROI (currently the price change)
# force to take the profit ROI exceeded the percentage.
- roiTakeProfit:
percentage: 30%
2022-06-09 17:24:15 +00:00
2022-06-26 11:20:08 +00:00
- protectionStopLoss:
activationRatio: 1%
stopLossRatio: 0.2%
placeStopOrder: true
2022-06-26 11:20:08 +00:00
# lowerShadowTakeProfit is used to taking profit when the (lower shadow height / low price) > lowerShadowRatio
# 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:
ratio: 3%
2022-06-09 17:24:15 +00:00
2022-06-26 11:20:08 +00:00
# cumulatedVolumeTakeProfit is used to take profit when the cumulated quote volume from the klines exceeded a threshold
- cumulatedVolumeTakeProfit:
minQuoteVolume: 90_000_000
2022-06-09 17:24:15 +00:00
window: 5
backtest:
sessions:
2022-06-09 05:20:51 +00:00
- binance
startTime: "2022-05-01"
endTime: "2022-06-03"
symbols:
2022-06-09 05:20:51 +00:00
- GMTUSDT
accounts:
binance:
balances:
GMT: 3010.0
USDT: 1000.0