strategy: support strategy doc

This commit is contained in:
Andy Cheng 2022-01-28 13:37:19 +08:00
parent 8b009a984a
commit 16f811f48f
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,10 @@ exchangeStrategies:
maxBaseAssetBalance: 1000.0
minQuoteAssetBalance: 2000.0
#trailingStopTarget:
# callBackRatio: 0.015
# minimumProfitPercentage: 0.02
targets:
- profitPercentage: 0.02
quantityPercentage: 0.5

View File

@ -37,6 +37,12 @@ This strategy uses K-lines with high volume as support and buys the target asset
- `quantityPercentage`
- The position ratio to take profit, e.g., 0.5 means selling 50% of the original buy order position when takes
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