Mengatur harga Bitcoin dan mengirim pemberitahuan melalui WeChat (pengajaran)
3
Follow
1518
Followers
Strategi pengajaran:
Ketika harga koin lebih tinggi atau lebih rendah dari nilai yang ditetapkan, sebuah pesan secara otomatis dikirim ke WeChat. Interval pengiriman minimum dapat diatur.
Ketika harga mata uang lebih tinggi atau lebih rendah dari nilai yang ditetapkan, sebuah pesan secara otomatis dikirim ke WeChat atau Telegram. Interval pengiriman minimum dapat diatur.
Source
JavaScript
/*
This stragegy will sent a message to your telegram when the price is higher or lower than
the set price.
All stragegy must has a main function as the entrance.
*/
function main() {
//change symbol,will cover the default exchange which was set when start a bot.Currency is a strategy arguments
exchange.IO("currency", Currency)
var lastPushTime = 0 //the variable of last push timestamp.
while(true){ //run a infinite loop, which is the basic structureStrategy parameters
Related strategies
Comment
All comments (4)
- 1

