adjust balance config and grid parameters

This commit is contained in:
c9s 2021-05-08 01:03:50 +08:00
parent 13d9f2ba49
commit 28b918b3f9

View File

@ -17,8 +17,8 @@ riskControls:
# basic risk control order executor
basic:
minQuoteBalance: 100.0 # keep 100 twd
maxBaseAssetBalance: 1000.0
minBaseAssetBalance: 200.0
maxBaseAssetBalance: 100_000.0
minBaseAssetBalance: 1_000.0
maxOrderAmount: 2000.0 # 1000 twd
backtest:
@ -34,16 +34,16 @@ backtest:
takerCommission: 15
balances:
BTC: 0.0
USDT: 10000.0
TWD: 10000.0
USDT: 10_000.0
TWD: 100_000.0
exchangeStrategies:
- on: max
grid:
symbol: USDTTWD
quantity: 10.0 # 10 USDT per grid
gridNumber: 50 # 50 GRID, Total Amount will be 10 USDT * 50 GRID = 500 USDT
gridNumber: 100 # 50 GRID, Total Amount will be 10 USDT * 50 GRID = 500 USDT
profitSpread: 0.1 # When buying USDT at 28.1, we will sell it at 28.1 + 0.1 = 28.2, When selling USDT at 28.1, we will buy it back at 28.1 - 0.1 = 28.0
upperPrice: 28.50
upperPrice: 28.90
lowerPrice: 27.90
long: true # long mode means we don't keep cash when we sell usdt, we will use the same amount of twd to buy more usdt back