找回密码
 注册
搜索
楼主: Diffusion

[技术分析] Maximum Entropy Spectral Analysis

[复制链接]
 楼主| 发表于 2009-11-16 08:58 PM | 显示全部楼层


这个贴很有意思,谢谢 Diffusion!

寻找交易周期是个很困难的问题,我至今还没找到满意的方法,现在基本上是放弃了这条路。主要是没看到有道理的逻辑:为什么市场必须按照某个周期走呢,难道不是价位更重要吗?
...
流动的建筑 发表于 2009-11-16 20:24


一语中第。就象我最开始写的,波动只是股市规律的一个侧面。通过波动来研究股市,是现象学,抓得都是表象。不过不可否认股市里是由波动的,能够找到波动形成的内在机理然后建模,方为上选。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-16 09:36 PM | 显示全部楼层
一语中第。就象我最开始写的,波动只是股市规律的一个侧面。通过波动来研究股市,是现象学,抓得都是表象。不过不可否认股市里是由波动的,能够找到波动形成的内在机理然后建模,方为上选。
Diffusion 发表于 2009-11-16 20:58


I have tried many tricks of last 3 years, but finally, only the basic things are useful for TA, such as, trend lines, patterns, support line(zone) ... etc.

anyway, a good discussion
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 12:20 AM | 显示全部楼层
1# Diffusion


This heat map looks also like the CWT (continuous wavelet transformation). Any theoretical connections?
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 01:13 AM | 显示全部楼层
1# Diffusion


This heat map looks also like the CWT (continuous wavelet transformation). Any theoretical connections?
LadyLuck 发表于 2009-11-17 00:20


As far as I know, there is no theoretical connections. The only link I can think about is both of them are originated from Geophysics.
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 02:08 AM | 显示全部楼层
又粗粗看了一下附件里写的算法,感觉这个最大熵频谱分析,小波分析,还有比较流行的SVM算法,好象都差不多的。。。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 02:26 AM | 显示全部楼层
又粗粗看了一下附件里写的算法,感觉这个最大熵频谱分析,小波分析,还有比较流行的SVM算法,好象都差不多的。。。
流动的建筑 发表于 2009-11-17 02:08


最大熵频谱分析利用的是频谱和autocorrelation之间的关系。
小波分析出发点是频谱会随时间或者空间变化,因此用小波函数来抓取特定时间点或者空间点上的频谱。比较相关的是窗口函数+傅里叶分析。而最大熵方法没有这个窗口的概念。
SVM是什么?
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 02:41 AM | 显示全部楼层
Support Vector Machine

三种方法都是寻求信号函数在基础正交向量集上的投影,最大熵频谱分析用连续频谱作为正交向量集;小波分析加了窗口函数,有点勉强,不一定准确;SVM可能最准确,使用自相关矩阵的特征向量。

我没有实际计算,只是大致看了一下。。。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 02:55 AM | 显示全部楼层
本帖最后由 rnhoo 于 2009-11-17 03:21 编辑
一语中第。就象我最开始写的,波动只是股市规律的一个侧面。通过波动来研究股市,是现象学,抓得都是表象。不过不可否认股市里是由波动的,能够找到波动形成的内在机理然后建模,方为上选。
Diffusion 发表于 2009-11-16 20:58


我对用建模的方法找到股市的波动规律信心不足,所以有很长时间没有对MESA进一步研究。

我的想法是:
price = trend + wave + noise

一般来说,trend follower 只看 trend, 只吃鱼身子。现在我们讨论的是波动,希望它能帮助我们更准确地定位trend,或者在trendless的市场盈利。
但是这种波动,它的振幅,周期,相位也许都会不停变化。而且当trend占统治地位的时候,波就消失了。由于股市有self-similarity(argurablly) 的性质,在任何time frame,我们都无法有足够多的sample 去精确定位这些波。

我认为,如果用复杂方法分析出的结果,如果只和简单方法相当,那么这个复杂方法就是无用的。

e.g.,老蛇用眼睛可以看出股市中有10天的周期,so far还不错。那么,如果不做programming trading,MESA, wavlet, SVM这样的高级方法比肉眼强在那里?

我还有一个困惑,如果这种方法有效,那么为什么我们从未听到有hedge 或IB用这种方法?而都是一些小人物在研究?比如说你我,当然还包括Ehlers.
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 02:58 AM | 显示全部楼层
本帖最后由 流动的建筑 于 2009-11-17 03:05 编辑

又想了一下,最大熵频谱分析没那么简单,它是原函数倒数的频谱分析 (Equation II-6) 。。。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 03:21 AM | 显示全部楼层
又想了一下,最大熵频谱分析没那么简单,它是原函数倒数的频谱分析 (Equation II-6) 。。。
流动的建筑 发表于 2009-11-17 02:58


推导细节我没注意看,只是把具体算法搞懂了而已。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 03:29 AM | 显示全部楼层
我对用建模的方法找到股市的波动规律信心不足,所以有很长时间没有对MESA进一步研究。

我的想法是:
price = trend + wave + noise

一般来说,trend follower 只看 trend, 只吃鱼身子。现在我们讨论的是波动,希望它能帮助我们更准确地定位trend,或者在trendless的市场盈利。
但是这种波动,它的振幅,周期,相位也许都会不停变化。而且当trend占统治地位的时候,波就消失了。由于股市有self-similarity(argurablly) 的性质,在任何time frame,我们都无法有足够多的sample 去精确定位这些波。

我认为,如果用复杂方法分析出的结果,如果只和简单方法相当,那么这个复杂方法就是无用的。

e.g.,老蛇用眼睛可以看出股市中有10天的周期,so far还不错。那么,如果不做programming trading,MESA, wavlet, SVM这样的高级方法比肉眼强在那里?

我还有一个困惑,如果这种方法有效,那么为什么我们从未听到有hedge 或IB用这种方法?而都是一些小人物在研究?比如说你我,当然还包括Ehlers.
rnhoo 发表于 2009-11-17 02:55


Ehlers也是这个思路,trend + wave。抓wave得话是de-trend,而抓trend得话de-wave。不过要我说,这个还是现象学。 为什么会有trend,为什么会有波动,有人在买,有人在卖。短线投机造成波动,长线投资造成趋势。我一直以来的认为所谓TA分析就是在分析主力资金在干吗,然后跟风而已。如果是主力资金,自然用不同的方法。具体是啥,我不知道,也不用知道,没那么多钱,玩不来得。

至于hedge/IB用什么方法,我就说不清楚了。还的请教bobcat和流动的建筑两位高人。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 03:34 AM | 显示全部楼层
又想了一下,最大熵频谱分析没那么简单,它是原函数倒数的频谱分析 (Equation II-6) 。。。
流动的建筑 发表于 2009-11-17 02:58


又看了一遍,这个倒数是从熵的定义推过来的。熵定义里面有ln(x),最大化就是导数为零,ln(x)一求导就成了倒数。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 03:36 AM | 显示全部楼层
研究这些方法的目的是机器人交易,所有提到的概念,比如 trend, wave, noise, etc. 必须有严格的数学定义,要同时处理上千个 securities,靠老蛇的眼睛就看不太过来了。。。

自己交易也是有用的,可以完全摈弃感情因素。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 06:08 PM | 显示全部楼层
I have a friend, a great trader, who also publishes
research papers, which in his own opinion, do not have any real value
for trading. In general, people will never publish something for real.
The same is true for trading programs. If a program works, no one will
sell it to you for a million dollars!
There are many trading programs on the market for a few thousand
dollars a piece. Those programs are usually incorrectly optimized.
They are not statistically verified and will only help you to
lose money. Garbage in, garbage out, there are indeed too many of them.
I myself have never spent a penny on them.

Nevertheless, reading papers and books is important, as it may provide some
useful ideas. If you read 10 papers and 5 books and obtain one useful
idea, it is good enough.
A fund manager said that he had bought many many trading systems with source
code and only found one that worked and that was good enough. But most retail
traders don't want to invest so much with so small a chance.

What I want to say is that before spending some real money on this,
you really should think twice. It is much better you just get some vague
ideas and develop your own systems. Small managers are very reluctant
even to out source the coding job lest their ideas be stolen.
Large funds hire many people so that each individual knows very little
about the whole system.
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 06:21 PM | 显示全部楼层
Totally agree. I don't even want to use WealthLab or NinjaTrader since they are close-sourced...
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 06:27 PM | 显示全部楼层
I have a friend, a great trader, who also publishes
research papers, which in his own opinion, do not have any real value
for trading. In general, people will never publish something for real.
The  ...
bobcat 发表于 2009-11-17 18:08


Thx for the neat comments.
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 06:28 PM | 显示全部楼层
So, a fully automated trading system is really a luxury for retail traders as I. Maybe before becoming a full time trader, I shouldn't invest too much time on it...
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 06:31 PM | 显示全部楼层
Totally agree. I don't even want to use WealthLab or NinjaTrader since they are close-sourced...
流动的建筑 发表于 2009-11-17 18:21


are you afraid of backdoor?
回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-11-17 06:35 PM | 显示全部楼层
A machine is as good as the designer. Become a successful trader first. That's what I have learned.
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-11-17 06:36 PM | 显示全部楼层
are you afraid of backdoor?
rnhoo 发表于 2009-11-17 18:31


I think it's OK if you just use it for drawing chart but not for trading. Who knows whether your indicator works or not.
回复 鲜花 鸡蛋

使用道具 举报

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

本版积分规则

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

GMT-5, 2025-8-5 05:13 PM , Processed in 0.098192 second(s), 14 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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