strategy/supertrend: update doc

This commit is contained in:
Andy Cheng 2022-07-06 10:49:50 +08:00
parent 2de16ac7d1
commit 1489759cf0
2 changed files with 23 additions and 5 deletions

View File

@ -76,5 +76,5 @@ exchangeStrategies:
# Protective stop loss # Protective stop loss
- protectiveStopLoss: - protectiveStopLoss:
activationRatio: 0.6% activationRatio: 0.6%
stopLossRatio: 1% stopLossRatio: -2%
placeStopOrder: false placeStopOrder: false

View File

@ -23,12 +23,30 @@ Supertrend strategy needs margin enabled in order to submit short orders, and yo
- The MA window of the ATR indicator used by Supertrend. - The MA window of the ATR indicator used by Supertrend.
- `averageTrueRangeMultiplier` - `averageTrueRangeMultiplier`
- Multiplier for calculating upper and lower bond prices, the higher, the stronger the trends are, but also makes it less sensitive. - Multiplier for calculating upper and lower bond prices, the higher, the stronger the trends are, but also makes it less sensitive.
- `takeProfitMultiplier` - `linearRegression`
- Use linear regression as trend confirmation
- `interval`
- Time interval of linear regression
- `window`
- Window of linear regression
- `takeProfitAtrMultiplier`
- TP according to ATR multiple, 0 to disable this. - TP according to ATR multiple, 0 to disable this.
- `stopLossByTriggeringK` - `stopLossByTriggeringK`
- Set SL price to the low of the triggering Kline. - Set SL price to the low/high of the triggering Kline.
- `tpslBySignal` - `stopByReversedSupertrend`
- TP/SL by reversed signals. - TP/SL by reversed supertrend signal.
- `stopByReversedDema`
- TP/SL by reversed DEMA signal.
- `stopByReversedLinGre`
- TP/SL by reversed linear regression signal.
- `exits`
- Exit methods to TP/SL
- `protectiveStopLoss`
- Protective stop loss
- `activationRatio`
- Ratio to activate the order
- `stopLossRatio`
- Ratio to stop loss (or take profit)
#### Examples #### Examples