找回密码
 注册
搜索
楼主: 九天

[灌水聊天] 人工智能时代如何炒股。

[复制链接]
发表于 2017-7-18 08:43 AM | 显示全部楼层


Live update at 9:40: Momentum drops but remains high, not yet suggest sale
SVXY_Live_Momentum_Oscillator_at07180940.png
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-18 12:06 PM | 显示全部楼层
本帖最后由 盈透阿狗 于 2017-7-18 12:14 PM 编辑

Live update at 1 pm.
Today momentum drops from 0.3 (open) to 0.15 (now). This round of bullish may end soon. So far profit is 10.04%
SVXY_Live_Momentum_Oscillator_at0718_1pm.png
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-18 03:06 PM | 显示全部楼层
本帖最后由 盈透阿狗 于 2017-7-18 03:08 PM 编辑

Bullish remains, momentum = 0.11 at market close. so far profit: 10.99%
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-19 08:51 AM | 显示全部楼层
本帖最后由 盈透阿狗 于 2017-7-19 08:56 AM 编辑

Live update 9:45: Momentum rebounded, but SVXY overbought by RSI, profit so far 11.39%
SVXY_Live_Momentum_Oscillator_at0719_9_45.png
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-19 09:13 AM | 显示全部楼层
这一轮牛市(bullish)是从Jul 10th, Mon, 10:05 AM 开始的。
周日碰头会上有朋友说错过了这个初始买点,希望找到补救买入点。这个问题可以通过计算RSI得到。
自从这一轮牛市开始以来,共有三次:
1. BOT 78.6738 2017_Jul_11-Tue_11_33_AM, SLD 82.185 2017_Jul_12-Wed_9_52_AM, Gain: 0.0446304
2. BOT 83.4151 2017_Jul_13-Thu_1_57_PM, SLD 85.4507 2017_Jul_14-Fri_3_26_PM, Gain: 0.0244035
3. BOT 86.9061 2017_Jul_17-Mon_3_33_PM, SLD 89.68 2017_Jul_19-Wed_9_49_AM, Gain: 0.0319184
最后一次刚刚出手。三次相加的收益为: 0.0446304+0.0244035+0.0319184=10.1% 这与迄今为止一直HOLD不动稍微差些,但好处是风险小。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-19 09:26 AM | 显示全部楼层
RSI的买卖条件共三个:
// buy at the end of OverSold
// sell at the end of OverBought
// sell at the end of bullish
bool RsiTrade::buy(int i) const
{
    if (!macd.bullish(i+N+T-1)) {
        return false;
    }

    if (isOverSold(i-1) && !isOverSold(i)) {
        return true; // buy at the end of OverSold
    }
    return false;
}

bool RsiTrade::sell(int i) const
{
    if (m_trade.buy.empty()) {
        return false;
    }
    if (isOverBought(i-1) && !isOverBought(i)) {
        return true; // sell at the end of OverBought
    }

    if (!macd.bullish(i+N+T-1)) {
        return true; // sell at the end of bullish
    }

    return false;
}
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-20 10:47 AM | 显示全部楼层
Live update: momentum drops below 0.1, bullish is ending!
SVXY_Live_Momentum_Oscillator_at0720_11_40.png
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-20 12:21 PM | 显示全部楼层
Very close to sell
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-20 12:46 PM | 显示全部楼层
In 2 minutes to sell
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-20 12:49 PM | 显示全部楼层
SLD
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-20 12:53 PM | 显示全部楼层
Momentum vanished.
End of this two weeks long bullish.
SLD with profit 12.9819%.
This is an example, which shows how easy a profitable automated trading system can be built.
SVXY_Live_Momentum_Oscillator_SLD.png
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2017-7-24 02:50 AM | 显示全部楼层
盈透阿狗 发表于 2017-7-20 12:53 PM
Momentum vanished.
End of this two weeks long bullish.
SLD with profit 12.9819%.

So Easy! 这个 SVXY_Live_Momentum_Oscillator_是你自己写的吧。

我这里倒是有 Momentum 指标,目前在98到103之间。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2017-7-24 03:03 AM | 显示全部楼层
盈透阿狗 发表于 2017-7-17 09:40 AM
原来九天高频交易的专业高手,佩服。

可别这么说,我可不是高手。只是公开发表的论文里,曾经简 ...

真是对不起,错误操作,把回复变成编辑,我有些稀里糊涂,没法复原了, 请求原谅。
真的对不起。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-7-29 05:57 PM | 显示全部楼层
九天 发表于 2017-7-24 02:50 AM
So Easy! 这个 SVXY_Live_Momentum_Oscillator_是你自己写的吧。

我这里倒是有 Momentum 指标,目前在 ...

(休假刚回来)是的,我编写了MACD和RSI两个Momentum Oscillators的计算模块,是incremental算法, 每一分钟计算一次。
如果采集的点,离前一个点的时间间隔小于一分钟,忽略;大于一分钟,插值;等于一分钟,直接利用。MACD和RSI的时间尺度,不是标准的,而是优化过的。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2017-8-1 12:03 PM | 显示全部楼层
Today my SVXY MACD  momentum oscillator came into bullish, which suggests buying dip is safe.
回复 鲜花 鸡蛋

使用道具 举报

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

本版积分规则

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

GMT-5, 2024-4-16 04:46 AM , Processed in 0.047479 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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