mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
strategy: support strategy doc
This commit is contained in:
parent
8b009a984a
commit
16f811f48f
|
@ -71,6 +71,10 @@ exchangeStrategies:
|
||||||
maxBaseAssetBalance: 1000.0
|
maxBaseAssetBalance: 1000.0
|
||||||
minQuoteAssetBalance: 2000.0
|
minQuoteAssetBalance: 2000.0
|
||||||
|
|
||||||
|
#trailingStopTarget:
|
||||||
|
# callBackRatio: 0.015
|
||||||
|
# minimumProfitPercentage: 0.02
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
- profitPercentage: 0.02
|
- profitPercentage: 0.02
|
||||||
quantityPercentage: 0.5
|
quantityPercentage: 0.5
|
||||||
|
|
|
@ -37,6 +37,12 @@ This strategy uses K-lines with high volume as support and buys the target asset
|
||||||
- `quantityPercentage`
|
- `quantityPercentage`
|
||||||
- The position ratio to take profit, e.g., 0.5 means selling 50% of the original buy order position when takes
|
- The position ratio to take profit, e.g., 0.5 means selling 50% of the original buy order position when takes
|
||||||
profit.
|
profit.
|
||||||
|
- `trailingStopTarget`
|
||||||
|
- Use trailing stop to take profit
|
||||||
|
- `callBackRatio`
|
||||||
|
- Callback ratio of the trailing stop
|
||||||
|
- `minimumProfitPercentage`
|
||||||
|
- The minimum profit ratio of the trailing stop. The trailing stop is triggered when the profit is higher than the minimum.
|
||||||
|
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
|
|
Loading…
Reference in New Issue
Block a user