输入/搜索内容

设定比特币价格并微信推送(教学)

教学
复制: 1069
点击次数: 7517
3
关注
1508
关注者

教学策略:
当币价高于或低于设定值后,自动推送一条消息到微信。可设定最小推送间隔。

When the price of the currency is higher or lower than the set value, a message is automatically pushed to WeChat or telegram. The minimum push interval can be set.

策略源码
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 structure
策略参数
策略参数
trading pair
when price is higher than
when price is lower than
interval
评论
全部评论 (4)

    大佬为什么机器人运行时显示无法与被测者建立联系啊

    5 年前

    建议增加英文标题,方便外国朋友阅读

    6 年前

    回测时,平台怎么选择,小白有点懵逼了^^

    6 年前

    不能回测,回测要啥价格推送啊

    6 年前
  • 1
社区
回测系统
APP 下载
iPhone 下载
© 2015 - ∞ INVENTOR PTE LTD (SG)