bbgo_origin/doc/strategy/pricealert.md

26 lines
865 B
Markdown
Raw Normal View History

2021-12-09 12:35:14 +00:00
### Price Alert Strategy
This strategy will send notifications to specified channels when the price change of the specified trading pairs is
larger than the threshold.
### Prerequisite
Setup Telegram/Slack notification before using Price Alert Strategy. See [Setting up Telegram Bot Notification
](../configuration/telegram.md) and [Setting up Slack Notification](../configuration/slack.md).
#### Parameters
- `symbol`
- The trading pair symbol, e.g., `BTCUSDT`, `ETHUSDT`
- `interval`
- The K-line interval, e.g., `5m`, `1h`
- `minChange`
- Alert threshold, e.g., `100`, `500`. This is a fixed value of price change. Any price change in a single K-line
larger than this value will trigger the alert.
#### Examples
2024-11-05 09:34:26 +00:00
See [pricealert.yaml](../../config/example/pricealert.yaml) and [pricealert-tg.yaml](../../config/pricealert-tg.yaml)