mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
865 B
865 B
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 and Setting up Slack Notification.
Parameters
symbol
- The trading pair symbol, e.g.,
BTCUSDT
,ETHUSDT
- The trading pair symbol, e.g.,
interval
- The K-line interval, e.g.,
5m
,1h
- The K-line interval, e.g.,
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.
- Alert threshold, e.g.,
Examples
See pricealert.yaml and pricealert-tg.yaml