Add low_profit_pairs

This commit is contained in:
Matthias
2020-11-11 07:49:30 +01:00
parent 9f6c2a583f
commit 00d4820bc1
3 changed files with 97 additions and 1 deletions

View File

@@ -21,6 +21,21 @@ Protections will protect your strategy from unexpected events and market conditi
!!! Note
`StoplossGuard` considers all trades with the results `"stop_loss"` and `"trailing_stop_loss"` if the result was negative.
#### Low Profit Pairs
`LowProfitpairs` uses all trades for a pair within a `lookback_period` (in minutes) to determine the overall profit ratio.
If that ratio is below `required_profit`, that pair will be locked for `stop_duration` (in minutes).
```json
"protections": [{
"method": "LowProfitpairs",
"lookback_period": 60,
"trade_limit": 4,
"stop_duration": 60,
"required_profit": 0.02
}],
```
### Full example of Protections
The below example stops trading if more than 4 stoploss occur within a 1 hour (60 minute) limit.