找回密码
 注册
搜索
查看: 652|回复: 8

哪个网站可以设好股票价位,到了通知我?

[复制链接]
发表于 2017-1-14 11:16 PM | 显示全部楼层 |阅读模式


请大家介绍一些
发表于 2017-1-14 11:32 PM | 显示全部楼层
(1)有些Broker提供这样的服务,你可以咨询自己的Broker。
(2)如果是程序员,自己采集股票的数据,满足条件后很容易通知自己,选项可是EMAIL 或 Smart-phone message。我有源码,我的系统天天这样做。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2017-1-15 11:07 PM | 显示全部楼层
xinxing 发表于 2017-1-14 11:32 PM
(1)有些Broker提供这样的服务,你可以咨询自己的Broker。
(2)如果是程序员,自己采集股票的数据,满足条件 ...

先谢!

自己采集股票的数据,你从哪里下?有可靠的周线数据吗?

你用的是win还是linux ? 如果windows,怎样设置才可以发邮件/msg通知?
非常感谢!
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-1-16 01:15 PM | 显示全部楼层
本帖最后由 xinxing 于 2017-1-16 01:37 PM 编辑
5883 发表于 2017-1-15 11:07 PM
先谢!

自己采集股票的数据,你从哪里下?有可靠的周线数据吗?


(1)从Google Fiance或Yahoo Finance都可以下载。
(2)当然有可靠的周线数据。Google Fiance或Yahoo Finance都可以精确到每分钟,甚至15秒。
比如:在你的浏览器地址处CopyAndPaste:
https://www.google.com/finance/getprices?i=60&p=15d&f=d,o,h,l,c,v&df=cpct&q=SVXY
你会得到SVXY这只股票15天内每分钟的价格和VOLUME。

(3)我使用是CROSS-PLATFORM包括Linux, Windows, MAC,和Android等。
(4)发邮件/msg通知:
HOST:smtp.gmail.com
PORT:465

class Smtp : public QObject
{
    Q_OBJECT

public:
    Smtp(const QString &user, const QString &pass,
         const QString &host = "smtp.gmail.com", int port = 465, int timeout = 30000,
         QObject *parent = 0);
    ~Smtp();

    void sendMail( const QString &from, const QString &to,
                   const QString &subject, const QString &body,
                   QStringList files = QStringList());

...
}

我采用的是:socket = new QSslSocket(this);
文体格式是:

    msg = "To: <" + to + ">\n";
    msg.append("From: " + from + "\n");
    msg.append("Subject: " + subject + "\n");

    //Let's intitiate multipart MIME with cutting boundary "frontier"
    msg.append("MIME-Version: 1.0\n");
    msg.append("Content-Type: multipart/mixed; boundary=frontier\n\n");

    msg.append( "--frontier\n" );
    msg.append( "Content-Type: text/html\n\n" );
    //msg.append( "Content-Type: text/plain\n\n" );
    msg.append(body);
    msg.append("\n\n");


发送:
    socket->connectToHostEncrypted(host, port); //"smtp.gmail.com" and 465 for gmail TLS
    if (!socket->waitForConnected(timeout)) {
         qDebug() << socket->errorString();
     }
    os = new QTextStream(socket);
...
    else if (state == HandShake && responseLine == "250")
    {
        socket->startClientEncryption();
        if(!socket->waitForEncrypted(timeout))
        {
            qDebug() << socket->errorString();
            state = Close;
        }
        os->flush();
        state = Auth;
    }

如果是Verizon phone company:
To: 1231234567@vzwpix.com
(这里的数字就是你的电话号码,你就会收到TEXT Message)

评分

1

查看全部评分

回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-1-16 04:59 PM | 显示全部楼层
Try Yahoo Financial
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2017-1-16 08:06 PM | 显示全部楼层
wnd4 发表于 2017-1-16 04:59 PM
Try Yahoo Financial

我刚刚把yahoo historical data设成weekly,点击下载,最近一天是1/9/2017,显然不对啊
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-1-16 09:10 PM | 显示全部楼层
In Yahoo Financial, create your portfolio, then you can set alert. For a stock, you can set alert by Price drops below $, Price rises above $, etc. and add your alert delivery email.

评分

1

查看全部评分

回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2017-1-16 09:22 PM | 显示全部楼层
xinxing 发表于 2017-1-16 01:15 PM
(1)从Google Fiance或Yahoo Finance都可以下载。
(2)当然有可靠的周线数据。Google Fiance或Yahoo ...

非常感谢!
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-1-17 06:59 PM | 显示全部楼层
fidelity 就有这个服务。price trigger alert 可以发到email 手机。

评分

1

查看全部评分

回复 鲜花 鸡蛋

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2024-3-28 10:29 AM , Processed in 0.083830 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表