Redian新闻
>
你们又胡说了,牛人明明都是用cat做编辑器的
avatar
c*r
2
签证有效期至明年6月,但是我在本校内刚转了系,换了I-20,回国的话需要重新预约
签证嘛?
谢谢了。
avatar
i*m
3
现在90后的生活啊。。。
就是有点短
avatar
h*c
4
Consider a DAG as a tree structure, maybe multiple root, even not connected,
(I don't if it is not connected, is it still DAG).
So, treat it like a tree. DAG has n nodes. We have all the nodes' references
. Each node has the storage of its parents ( immediate nodes where directed
edges are from). Each node also has the storage of its children ( immediate
nodes where the directed edges are toward).
The question is if we want to store the DAG with such a structure, what will
be the space complexity of node references?
Or DAG has other storage structure and the space complexity?
avatar
f*y
5
裸vi算什么
avatar
t*s
7
no

【在 c*********r 的大作中提到】
: 签证有效期至明年6月,但是我在本校内刚转了系,换了I-20,回国的话需要重新预约
: 签证嘛?
: 谢谢了。

avatar
c*p
8
相当于问DAG的度?best case O(1) (全不相连),worst case O(n^2)(全相连)

connected,
references
directed
immediate
will

【在 h**********c 的大作中提到】
: Consider a DAG as a tree structure, maybe multiple root, even not connected,
: (I don't if it is not connected, is it still DAG).
: So, treat it like a tree. DAG has n nodes. We have all the nodes' references
: . Each node has the storage of its parents ( immediate nodes where directed
: edges are from). Each node also has the storage of its children ( immediate
: nodes where the directed edges are toward).
: The question is if we want to store the DAG with such a structure, what will
: be the space complexity of node references?
: Or DAG has other storage structure and the space complexity?

avatar
m*j
9
cat,太强了,

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
g*g
10
You can add DBA, DBC and USO to the list. The only one acting
different may be gold.

【在 b*****h 的大作中提到】
: 没有precious metal, agriculture commodity ETFs.
avatar
h*c
11
用连通性来考虑,解释的比较清晰,
n^2 是肯定的了,
如果排除重复边,
n^2的full connection,是不是cycle了?
avatar
i*f
12
坑,好坑

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
b*h
13
you are right. Agriculture ETFs are similiar, but I'm wondering if it is
good time now to invest on them...

【在 g*****g 的大作中提到】
: You can add DBA, DBC and USO to the list. The only one acting
: different may be gold.

avatar
c*p
14
不是重复边。
假设有一个全连通的无向图,就是n(n-1)/2 = O(n^2)条边。
然后把这些无向边变成有向边,变换方法如下:
把节点按1...n编号,则任何一条连接(不妨设uv的有向边。
边的数目不变,且没有cycle,即不可能存在一个当u>v时,u->v的通路。
而且每个结点都要保存子链接和父链接,所以实际算链接的数目时其实可以不考虑边的
方向性。【 在 heteroclinic (asymptotically stable) 的大作中提到: 】
avatar
Z*e
15
我听说骨灰级的都是拿吸铁石在硬盘上比划出来的...

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
K*D
16
what are these charts trying to show?
If you compare the components of a total market index fund, on the same
chart with the total market index itself, by definition, their performance
will be the same, i.e.,
index YTD = weighted average of (all components YTD)
Maybe the author was trying to say no sector can out-perform S&P 500
consistantly? That's not related to diversification ah.

【在 g*****g 的大作中提到】
: heihei
: http://www.ritholtz.com/blog/2009/03/how-well-does-diversification-work/

avatar
h*c
17
把O(n^2) 当成n^2 条边了,
thanks

【在 c****p 的大作中提到】
: 不是重复边。
: 假设有一个全连通的无向图,就是n(n-1)/2 = O(n^2)条边。
: 然后把这些无向边变成有向边,变换方法如下:
: 把节点按1...n编号,则任何一条连接(不妨设uv的有向边。
: 边的数目不变,且没有cycle,即不可能存在一个当u>v时,u->v的通路。
: 而且每个结点都要保存子链接和父链接,所以实际算链接的数目时其实可以不考虑边的
: 方向性。【 在 heteroclinic (asymptotically stable) 的大作中提到: 】

avatar
g*l
18
我怎么听说都是自己拉沙子,搭炉子,然后拿个刻刀自己干的?

【在 Z****e 的大作中提到】
: 我听说骨灰级的都是拿吸铁石在硬盘上比划出来的...
avatar
K*D
19
Ok, from another perspective, these two charts EXACTLY proved that
diversification works.
Since S&P's curve has lower volatility than any of the individual index
(strictly speaking, S&P does not include some of the indices like
European Index. I just don't understand why the author list them
in the same chart), it proves that diversification lowers the portfolio
beta, a.k.a. risk.
Investing 100% in S&P would be safer than investing 100% in, say, small
cap index.

【在 K****D 的大作中提到】
: what are these charts trying to show?
: If you compare the components of a total market index fund, on the same
: chart with the total market index itself, by definition, their performance
: will be the same, i.e.,
: index YTD = weighted average of (all components YTD)
: Maybe the author was trying to say no sector can out-perform S&P 500
: consistantly? That's not related to diversification ah.

avatar
h*c
20
A small debrief of DAG
For the DAG storage structure at post 1, the space complexity could be O(n^2
), given n the number of vertices the graph. So in the geometrical point of
view, such structure is awful. We may say one thousand and three thousand
don't differ too much. But one thousand differ scarily from one million. The
difference is O(n), O(n log n) and O (n^2).
But if we think in the topological way, that is, we observe the space
complexity of this structure in relation to the number of edges of DAG. The
result could be quite optimistic. Given number of edges m, the space
complexity is O(m), because for all the vertices, they can be stored at most
twice.
So the space complexity of such DAG structure is rather decided by the
number of edges. But we also see for DAG, the number of edges can never
exceed n^2, given no repeated edges.

connected,
references
directed
immediate
will

【在 h**********c 的大作中提到】
: Consider a DAG as a tree structure, maybe multiple root, even not connected,
: (I don't if it is not connected, is it still DAG).
: So, treat it like a tree. DAG has n nodes. We have all the nodes' references
: . Each node has the storage of its parents ( immediate nodes where directed
: edges are from). Each node also has the storage of its children ( immediate
: nodes where the directed edges are toward).
: The question is if we want to store the DAG with such a structure, what will
: be the space complexity of node references?
: Or DAG has other storage structure and the space complexity?

avatar
s*e
21
呵呵
vi快郁闷死我了。
一直习惯pico,在我的NAS上装了freelink,用的debian的核,居然装不了pico,gedit
又太大了,只好痛苦的用vi
avatar
g*g
22
I think you should compare to Treasury Bond performance, or at least
cash performance. If we are in a depression like 1929, you sure you just
want to beat the S&P index?

【在 K****D 的大作中提到】
: what are these charts trying to show?
: If you compare the components of a total market index fund, on the same
: chart with the total market index itself, by definition, their performance
: will be the same, i.e.,
: index YTD = weighted average of (all components YTD)
: Maybe the author was trying to say no sector can out-perform S&P 500
: consistantly? That's not related to diversification ah.

avatar
L*n
23
为啥不用nano?

gedit

【在 s********e 的大作中提到】
: 呵呵
: vi快郁闷死我了。
: 一直习惯pico,在我的NAS上装了freelink,用的debian的核,居然装不了pico,gedit
: 又太大了,只好痛苦的用vi

avatar
s*n
24
You didn't get it. Diversification is to reduce risk. It's not to eliminate
risk. You are proposing a systematic risk of stock market, which, every
econ 101 textbook will tell you, cannot be eliminated by diversification
over stocks.
And generally over many of your posts, when we say some strategy is better,
by no way it means it works better all the time. It simply means it's
better in term of risk-reward ratio on a prabability base.

【在 g*****g 的大作中提到】
: I think you should compare to Treasury Bond performance, or at least
: cash performance. If we are in a depression like 1929, you sure you just
: want to beat the S&P index?

avatar
t*g
25
牛人要什么编辑器,直接整个binary出来就成了。

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
h*y
26
I was trying to avoid replying to goodbug's post as I consider that just a
wasted effort.
But since BM replied, I have something to add as well. So what bond
beats the stock in the last 40 years? We invest in stock NOT because
we think it does not have risks. I really look down those kind of "TA"
conclusions as I think those people are just completely clueless of
the history. You don't need your TA goddess to tell you that stock
has risks (of losing the principle) and you don't need TA to tell y

【在 s********n 的大作中提到】
: You didn't get it. Diversification is to reduce risk. It's not to eliminate
: risk. You are proposing a systematic risk of stock market, which, every
: econ 101 textbook will tell you, cannot be eliminated by diversification
: over stocks.
: And generally over many of your posts, when we say some strategy is better,
: by no way it means it works better all the time. It simply means it's
: better in term of risk-reward ratio on a prabability base.

avatar
y*g
27
才知道cat能编辑

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
K*D
28
I set my target as S&P because I trade stocks only, no options,
no bonds, no CDs. Natually S&P is the best target.
If I set my target as "the current best CD rate", my investment
strategy would be completely different. In years like 2008 that
means I could almost do nothing but put 95+% of my money in
cash. That's super boring and I don't like it at all. Even in years
like 2006, I probably still have to keep 70+% in cash. And my showoff
would become "Wow! My APY is 3.6% in 2006! Beat the best CD

【在 g*****g 的大作中提到】
: I think you should compare to Treasury Bond performance, or at least
: cash performance. If we are in a depression like 1929, you sure you just
: want to beat the S&P index?

avatar
E*V
29
据说牛人都是用echo的,。。。。
cat能编辑和dos下用copy 屏幕是不是差不多?

【在 y*******g 的大作中提到】
: 才知道cat能编辑
avatar
E*V
31
靠,我用gentoo每次都没nano恶心死。。。
呵呵。真是萝卜白猜了

gedit

【在 s********e 的大作中提到】
: 呵呵
: vi快郁闷死我了。
: 一直习惯pico,在我的NAS上装了freelink,用的debian的核,居然装不了pico,gedit
: 又太大了,只好痛苦的用vi

avatar
g*g
32
Numbers don't lie. I'll show a very simple TA strategy here as attached.
Buy when 13 weekly when EMA crosses up 34 weekly EMA, and sell when crossing
down. Backtest on SPX (I have only data from 1950), the maximum single
trade loss is 7.05%, the max portfolio drawdown from peak is 15.84%, the
average yearly return is 9.98%, with 59.14% exposure (So that you can
collect some percent on CD when idle).
Now consider the average yearly return of SPX in the same period is 6.8%.
The max portfolio drawd

【在 h*******y 的大作中提到】
: I was trying to avoid replying to goodbug's post as I consider that just a
: wasted effort.
: But since BM replied, I have something to add as well. So what bond
: beats the stock in the last 40 years? We invest in stock NOT because
: we think it does not have risks. I really look down those kind of "TA"
: conclusions as I think those people are just completely clueless of
: the history. You don't need your TA goddess to tell you that stock
: has risks (of losing the principle) and you don't need TA to tell y

avatar
f*y
33
I use 'cat' to edit text frequently, but I am far from '牛人'.
For example:
cat > file.txt << EOT
some text
some text again
...
EOT
avatar
d*z
34
Time frame is misleading. Of course 5 year chart looks more diversified than
1 year chart. So that doesn't prove "Diversification works until it does".
From the charts it sounds to me like "Diversification works in 5 years , but
less effective in 1 year", because 1 year is too short to show the effect
of diversification, since market system risks of various (equity) markets
are more converged/correlated in short timeframe, but the converging/
correlation would weaken as timeframe increases.

【在 g*****g 的大作中提到】
: heihei
: http://www.ritholtz.com/blog/2009/03/how-well-does-diversification-work/

avatar
p*t
35
why not use ctrl+d as the terminating symbol?

【在 f**y 的大作中提到】
: I use 'cat' to edit text frequently, but I am far from '牛人'.
: For example:
: cat > file.txt << EOT
: some text
: some text again
: ...
: EOT

avatar
d*z
36
Right. Diversification is normally meant to reduce company or sector
specific risk. In theory market risk can not be eliminated through
traditional diversification.

eliminate

【在 s********n 的大作中提到】
: You didn't get it. Diversification is to reduce risk. It's not to eliminate
: risk. You are proposing a systematic risk of stock market, which, every
: econ 101 textbook will tell you, cannot be eliminated by diversification
: over stocks.
: And generally over many of your posts, when we say some strategy is better,
: by no way it means it works better all the time. It simply means it's
: better in term of risk-reward ratio on a prabability base.

avatar
m*u
37
cowman use ed
avatar
d*z
38
Hmmm...
Until last year, I had got an even better strategy. Leverage my capital at 1
and buy any residential mortgage pool or mortgage-backed securities. I had
backtested to at least 1935. Since no single year of the 70+ year had a YOY
housing price decline (measured as consecutive YOY decline for more than 6
month), my investment's max draw down is <10% (even for leveraged capital).
Given the spread between libor and mortgage rate, the avearge return for
capital should be at least 10%. Does it
avatar
w*g
39
牛人明明都是用打孔钳子和胶带直接在纸带上打孔来编辑程序。
avatar
g*g
40
Certainly not, I show a strategy that works through multiple bear markets,
the strategy can escape early in 30's depression and today's crisis, while
yours is wiped out today. Also, since you leverage 1:5, you have to consider
your margin cost, assume you borrow at prime rate, you pay 20%+ of your
principle for interest, and only get back 10% in raw return? You are
under water!
If there's a permanent bull market, then congratulations, you find an
arbitrage. In the real world, however, you'd back

【在 d*****z 的大作中提到】
: Hmmm...
: Until last year, I had got an even better strategy. Leverage my capital at 1
: and buy any residential mortgage pool or mortgage-backed securities. I had
: backtested to at least 1935. Since no single year of the 70+ year had a YOY
: housing price decline (measured as consecutive YOY decline for more than 6
: month), my investment's max draw down is <10% (even for leveraged capital).
: Given the spread between libor and mortgage rate, the avearge return for
: capital should be at least 10%. Does it

avatar
j*g
41
Come on, it's the shell, not cat...
avatar
o*c
42
no strategy works forever,just as no perpetual motion machine exists.
simple like that.
any reasonable strategy has its assumptions and needs to be closely
monitored and modified by trader himself.

consider
before

【在 g*****g 的大作中提到】
: Certainly not, I show a strategy that works through multiple bear markets,
: the strategy can escape early in 30's depression and today's crisis, while
: yours is wiped out today. Also, since you leverage 1:5, you have to consider
: your margin cost, assume you borrow at prime rate, you pay 20%+ of your
: principle for interest, and only get back 10% in raw return? You are
: under water!
: If there's a permanent bull market, then congratulations, you find an
: arbitrage. In the real world, however, you'd back

avatar
w*e
43
理论上好像应该是可以的吧?:-)好像有回行键。
avatar
g*g
44
I agree, TA is assuming history will repeat itself. And Livermore predicted
stock market will repeat itself since human nature of greedy and fear will
never change. At least he's right so far.
Any strategy can work if you do it right. Buffet doesn't do TA. But it's
funny some people will bash TA but couldn't provide a better strategy
than the simple one I mentioned.

【在 o*****c 的大作中提到】
: no strategy works forever,just as no perpetual motion machine exists.
: simple like that.
: any reasonable strategy has its assumptions and needs to be closely
: monitored and modified by trader himself.
:
: consider
: before

avatar
t*n
45
上次不是还说牛人都是用最原始的电报机滴答滴答的写code么

【在 f*******y 的大作中提到】
: 裸vi算什么
avatar
K*D
46
Biggest issue: how do you execute your strategy?
It's very obvious at present. But what about those days when the
two EMA curves cross each other often? Do you strictly trade whenever
the curves cross? Or do you set a dead-band threshold (as most electronic
engineerings do) and only trade if the trend is more obvious than the
threshold?
If the former, you pay a lot of commission (and time). If the latter,
you lose a couple of percents during the transition.
2nd issue: as I pointed out before, yo

【在 g*****g 的大作中提到】
: Numbers don't lie. I'll show a very simple TA strategy here as attached.
: Buy when 13 weekly when EMA crosses up 34 weekly EMA, and sell when crossing
: down. Backtest on SPX (I have only data from 1950), the maximum single
: trade loss is 7.05%, the max portfolio drawdown from peak is 15.84%, the
: average yearly return is 9.98%, with 59.14% exposure (So that you can
: collect some percent on CD when idle).
: Now consider the average yearly return of SPX in the same period is 6.8%.
: The max portfolio drawd

avatar
l*n
47
vi自身依赖一些模块,加起来比较庞大。有时候建系统不系望过大,就不装vi等编辑软
件,那需要编辑的时候自然就得用 cat > file.txt <不得已而为之,于是否高手无关。
avatar
m*t
48

I thought you said you only had data since 1950?

【在 g*****g 的大作中提到】
: Certainly not, I show a strategy that works through multiple bear markets,
: the strategy can escape early in 30's depression and today's crisis, while
: yours is wiped out today. Also, since you leverage 1:5, you have to consider
: your margin cost, assume you borrow at prime rate, you pay 20%+ of your
: principle for interest, and only get back 10% in raw return? You are
: under water!
: If there's a permanent bull market, then congratulations, you find an
: arbitrage. In the real world, however, you'd back

avatar
x*u
49
用busybox里面有个小vi,这点空间现在没必要省了吧。linux里面浪费的不是更多。

【在 l****n 的大作中提到】
: vi自身依赖一些模块,加起来比较庞大。有时候建系统不系望过大,就不装vi等编辑软
: 件,那需要编辑的时候自然就得用 cat > file.txt <: 不得已而为之,于是否高手无关。

avatar
g*g
50
I backtest dji last night, I think I got about 9% return.

【在 m******t 的大作中提到】
:
: I thought you said you only had data since 1950?

avatar
l*n
51
busybox对于正规linux而言是不用的,与其后的GUI环境冲突甚多。过去只用它做debug
工具。

【在 x****u 的大作中提到】
: 用busybox里面有个小vi,这点空间现在没必要省了吧。linux里面浪费的不是更多。
avatar
g*g
52

In the real world, I'd use a more sophisticated strategy. But yes, you
can trade strictly whenever it crosses. We are talking weekly close for
the indicator here, so it's really easy to anticipate a cross and follow.
Buy/sell at Friday's close at market price. You should easily get +/- 10cent
on SPY close.
This is not true, in former, SPX yields 28 trades in a 60 years span. As you
can see here.
http://www.mitbbs.com/mitbbs_article.php?board=Investment&id=31197357&ap=1787
And as I used weekly c

【在 K****D 的大作中提到】
: Biggest issue: how do you execute your strategy?
: It's very obvious at present. But what about those days when the
: two EMA curves cross each other often? Do you strictly trade whenever
: the curves cross? Or do you set a dead-band threshold (as most electronic
: engineerings do) and only trade if the trend is more obvious than the
: threshold?
: If the former, you pay a lot of commission (and time). If the latter,
: you lose a couple of percents during the transition.
: 2nd issue: as I pointed out before, yo

avatar
x*u
53
什么意思,嵌入式不是正规linux?
要是不在乎busybox省下的空间,那装个vim也不用太在乎。

debug

【在 l****n 的大作中提到】
: busybox对于正规linux而言是不用的,与其后的GUI环境冲突甚多。过去只用它做debug
: 工具。

avatar
K*D
54
If your back test is based on weekly close and still yielded
9.xx%, then yes, you won't accumulate a lot of commissions
and I aglee that your performance beat the index.
(I couldn't click on the links in the attachment you posted.
I can only see the statistics page.)
Please report back results on WMT if you have time. From naked
eyes I observe that buying-and-holding is better, compared with
the SMA205 method. I didn't check with your new SMA method.
I originally thought those two SMA curves wou

【在 g*****g 的大作中提到】
:
: In the real world, I'd use a more sophisticated strategy. But yes, you
: can trade strictly whenever it crosses. We are talking weekly close for
: the indicator here, so it's really easy to anticipate a cross and follow.
: Buy/sell at Friday's close at market price. You should easily get +/- 10cent
: on SPY close.
: This is not true, in former, SPX yields 28 trades in a 60 years span. As you
: can see here.
: http://www.mitbbs.com/mitbbs_article.php?board=Investment&id=31197357&ap=1787
: And as I used weekly c

avatar
l*n
55
嵌入式linux使用uClibc, 自然不是正规linux。
嵌入式linux应用对GUI也要求不多。

【在 x****u 的大作中提到】
: 什么意思,嵌入式不是正规linux?
: 要是不在乎busybox省下的空间,那装个vim也不用太在乎。
:
: debug

avatar
K*D
56
Well, some people just bash all methods, like me, hehe.
I am a believer that whether a method beats the market is
completely based on luck -- take my cat chart as an example,
haha.
In another word, when I predicted the market right, or my
performance beats the market, it doesn't boost my confidence
that I am gaining skills. I consider it as luck and am
reluctant to adjust my future trading strategy towards
the currently winning method.

【在 g*****g 的大作中提到】
:
: In the real world, I'd use a more sophisticated strategy. But yes, you
: can trade strictly whenever it crosses. We are talking weekly close for
: the indicator here, so it's really easy to anticipate a cross and follow.
: Buy/sell at Friday's close at market price. You should easily get +/- 10cent
: on SPY close.
: This is not true, in former, SPX yields 28 trades in a 60 years span. As you
: can see here.
: http://www.mitbbs.com/mitbbs_article.php?board=Investment&id=31197357&ap=1787
: And as I used weekly c

avatar
x*u
57
glibc那么大,到时候vim也不在乎了吧。

【在 l****n 的大作中提到】
: 嵌入式linux使用uClibc, 自然不是正规linux。
: 嵌入式linux应用对GUI也要求不多。

avatar
g*g
58
It's 13 and 34 weekly EMA crosses I used, and it only generated
28 trades in about 59 years.

【在 K****D 的大作中提到】
: If your back test is based on weekly close and still yielded
: 9.xx%, then yes, you won't accumulate a lot of commissions
: and I aglee that your performance beat the index.
: (I couldn't click on the links in the attachment you posted.
: I can only see the statistics page.)
: Please report back results on WMT if you have time. From naked
: eyes I observe that buying-and-holding is better, compared with
: the SMA205 method. I didn't check with your new SMA method.
: I originally thought those two SMA curves wou

avatar
l*n
59
做系统处理需编辑时多用cat>,因为vi本身也要用cat>建设。
如果应用需要编辑,当然装个vi之类的比较好。
bye!

【在 x****u 的大作中提到】
: glibc那么大,到时候vim也不在乎了吧。
avatar
s*n
60
If you use this to argue if diversification works or not, it's kind of
like saying "my scissors works better than your hammer." --- What's the
point to compare anyway?
Now back to your strategy. Can you test one thing for us? You have tested
13/34 EMA cross. Can you also test 12, 13, 14 cross 33, 34, 35 EMA and
show us the result matrix? Then we'll discuss again. Thanks.


【在 g*****g 的大作中提到】
: It's 13 and 34 weekly EMA crosses I used, and it only generated
: 28 trades in about 59 years.

avatar
x*u
61
vi没那么大的,这是错觉,hoho。

【在 l****n 的大作中提到】
: 做系统处理需编辑时多用cat>,因为vi本身也要用cat>建设。
: 如果应用需要编辑,当然装个vi之类的比较好。
: bye!

avatar
p*h
62
I think he should bash "buy and hold" instead of diversification.

【在 s********n 的大作中提到】
: If you use this to argue if diversification works or not, it's kind of
: like saying "my scissors works better than your hammer." --- What's the
: point to compare anyway?
: Now back to your strategy. Can you test one thing for us? You have tested
: 13/34 EMA cross. Can you also test 12, 13, 14 cross 33, 34, 35 EMA and
: show us the result matrix? Then we'll discuss again. Thanks.
:

avatar
n*t
63
vi不等于vim。。
那种standard 的vi只要2,30k的样子。

【在 l****n 的大作中提到】
: vi自身依赖一些模块,加起来比较庞大。有时候建系统不系望过大,就不装vi等编辑软
: 件,那需要编辑的时候自然就得用 cat > file.txt <: 不得已而为之,于是否高手无关。

avatar
g*g
64
Maybe I don't understand what's diversification. But diversify is to
reduce your risk right? But I show a graph with
most sectors and cap going in the same direction, deep down. So IMHO,
diversification cannot prevent big loss, that's how I define "not work".
I do show a strategy that will prevent big loss, with max drawdown < 20%
and single trade loss < 10%. That's at least working better than
diversification for the purpose of diversification.

【在 s********n 的大作中提到】
: If you use this to argue if diversification works or not, it's kind of
: like saying "my scissors works better than your hammer." --- What's the
: point to compare anyway?
: Now back to your strategy. Can you test one thing for us? You have tested
: 13/34 EMA cross. Can you also test 12, 13, 14 cross 33, 34, 35 EMA and
: show us the result matrix? Then we'll discuss again. Thanks.
:

avatar
x*u
65
所以我推荐了busybox,我曾经在连glibc和uclibc都没有的小环境上用过。

【在 n******t 的大作中提到】
: vi不等于vim。。
: 那种standard 的vi只要2,30k的样子。

avatar
s*n
66
If there is a medicine for heart diseases, yet you keep saying "if it
cannot cure my liver, it's not a good medicine" then there is nothing
we can say.
Just do the test I mentioned please. Then we discuss. Thanks.

【在 g*****g 的大作中提到】
: Maybe I don't understand what's diversification. But diversify is to
: reduce your risk right? But I show a graph with
: most sectors and cap going in the same direction, deep down. So IMHO,
: diversification cannot prevent big loss, that's how I define "not work".
: I do show a strategy that will prevent big loss, with max drawdown < 20%
: and single trade loss < 10%. That's at least working better than
: diversification for the purpose of diversification.

avatar
g*g
67
You have a heart disease medicine which can prevent you from dying, but
still paralysed nontheless. I show you a medicine which is meant for liver
maybe, but if you use for heart disease, it can prevent paralysis as well.
Then of course I can claim my liver medicine is a better
medicine for heart disease patients.

【在 s********n 的大作中提到】
: If there is a medicine for heart diseases, yet you keep saying "if it
: cannot cure my liver, it's not a good medicine" then there is nothing
: we can say.
: Just do the test I mentioned please. Then we discuss. Thanks.

avatar
K*D
68
As I said earlier, in your chart everything goes deep down
(even more than S&P) because the author intentionally or
non-intentionally left out some sectors (like consumer staples)
and inserted some sectors that do not belong to US market.
By definition, if everything in S&P goes deep down, S&P should
go down at the average rate.

【在 g*****g 的大作中提到】
: Maybe I don't understand what's diversification. But diversify is to
: reduce your risk right? But I show a graph with
: most sectors and cap going in the same direction, deep down. So IMHO,
: diversification cannot prevent big loss, that's how I define "not work".
: I do show a strategy that will prevent big loss, with max drawdown < 20%
: and single trade loss < 10%. That's at least working better than
: diversification for the purpose of diversification.

avatar
g*g
69
I thought diversification was to prevent big loss, not to get
average loss and feel good about it.

【在 K****D 的大作中提到】
: As I said earlier, in your chart everything goes deep down
: (even more than S&P) because the author intentionally or
: non-intentionally left out some sectors (like consumer staples)
: and inserted some sectors that do not belong to US market.
: By definition, if everything in S&P goes deep down, S&P should
: go down at the average rate.

avatar
K*D
70
It does beat all in financials in year 2008. That's the purpose of
diversification.
In fact, getting an average loss will almost always prevent you
from completely wiped out.
Maybe in your eyes, -40% is a big loss. But to me, -40% is much
better than -70%.

【在 g*****g 的大作中提到】
: I thought diversification was to prevent big loss, not to get
: average loss and feel good about it.

avatar
h*y
71
You don't understand what the BM was asking, do you?
You kept claiming that you have a better liver medicine, but the method you
used is by applying the historical data with a model containing quite a few
variables, it does NOT count. Say, you group all the liver diseases patient
into two groups (one died with 3 years and one lived beyond three years) and
then you study the all the differences: how do they sleep differently, how
do they eat differently, what drugs they take and how much they exe

【在 g*****g 的大作中提到】
: You have a heart disease medicine which can prevent you from dying, but
: still paralysed nontheless. I show you a medicine which is meant for liver
: maybe, but if you use for heart disease, it can prevent paralysis as well.
: Then of course I can claim my liver medicine is a better
: medicine for heart disease patients.

avatar
K*D
72
marked for the hard work of typing, hehe.

you
few
patient
and
how

【在 h*******y 的大作中提到】
: You don't understand what the BM was asking, do you?
: You kept claiming that you have a better liver medicine, but the method you
: used is by applying the historical data with a model containing quite a few
: variables, it does NOT count. Say, you group all the liver diseases patient
: into two groups (one died with 3 years and one lived beyond three years) and
: then you study the all the differences: how do they sleep differently, how
: do they eat differently, what drugs they take and how much they exe

avatar
g*g
73
annual return B&H annual
SPX (since 1950) 13-34 10.03% 6.00%
SPX (since 1950) 12-34 10.12%
SPX (since 1950) 14-34 10.16%
DJI (since 1928) 13-34 9.95% 5.49%
WMT (since 1972) 13-34 12.46% 18.24%
13-34 is just a commonly used TA indicator, I didn't fit it. You can
see 12-34 and 14-34 performing better for SPX, but the result is similar.
The idea behind this: 13 weekly EMA is a mid-term

【在 h*******y 的大作中提到】
: You don't understand what the BM was asking, do you?
: You kept claiming that you have a better liver medicine, but the method you
: used is by applying the historical data with a model containing quite a few
: variables, it does NOT count. Say, you group all the liver diseases patient
: into two groups (one died with 3 years and one lived beyond three years) and
: then you study the all the differences: how do they sleep differently, how
: do they eat differently, what drugs they take and how much they exe

avatar
d*z
74
I thought you had the sense of humor to interpret what I was trying to imply
with that example. What I should say but didn't say is, if you are in early
2007, the model should look perfectly working, with backtest against
history data having approved. Now you know it doesn't work, but you didn't
know this in 2007. You could hardly see what would happen in future. Few
people of this generation would think housing market could drop more than 5%
YOY. So the strategy was great in 2007 people's eyes.

【在 g*****g 的大作中提到】
: Certainly not, I show a strategy that works through multiple bear markets,
: the strategy can escape early in 30's depression and today's crisis, while
: yours is wiped out today. Also, since you leverage 1:5, you have to consider
: your margin cost, assume you borrow at prime rate, you pay 20%+ of your
: principle for interest, and only get back 10% in raw return? You are
: under water!
: If there's a permanent bull market, then congratulations, you find an
: arbitrage. In the real world, however, you'd back

avatar
d*z
75
This writing is great. I have been thinking hardly how to avoid "pattern
fitting" type of bias when doing fundamental analysis.

you
few
patient
and
how
average
out

【在 h*******y 的大作中提到】
: You don't understand what the BM was asking, do you?
: You kept claiming that you have a better liver medicine, but the method you
: used is by applying the historical data with a model containing quite a few
: variables, it does NOT count. Say, you group all the liver diseases patient
: into two groups (one died with 3 years and one lived beyond three years) and
: then you study the all the differences: how do they sleep differently, how
: do they eat differently, what drugs they take and how much they exe

avatar
g*g
76
OK, I got your strategy. So you can get 7% return and borrow 5%.
How about get 10% return as I did and borrow 5% with 5 time leverage?
At the end of the day, I get 10+ 5 * 5% = 35% annually, more than
double your return, and it's working before and after 2007.

imply
early
5%
people

【在 d*****z 的大作中提到】
: I thought you had the sense of humor to interpret what I was trying to imply
: with that example. What I should say but didn't say is, if you are in early
: 2007, the model should look perfectly working, with backtest against
: history data having approved. Now you know it doesn't work, but you didn't
: know this in 2007. You could hardly see what would happen in future. Few
: people of this generation would think housing market could drop more than 5%
: YOY. So the strategy was great in 2007 people's eyes.

avatar
K*D
77
Heartinny is an indexer and likely a basher of all methods, hehe.
I am not an indexer but still a basher of all methods, hehe.
I assumed WMT would not work based on the curve shape. Basically
any curve that makes 13EMA and 34EMA curves cross each other very
often won't work. Let me see if I can find an index that's this
case, hehe.

【在 g*****g 的大作中提到】
: annual return B&H annual
: SPX (since 1950) 13-34 10.03% 6.00%
: SPX (since 1950) 12-34 10.12%
: SPX (since 1950) 14-34 10.16%
: DJI (since 1928) 13-34 9.95% 5.49%
: WMT (since 1972) 13-34 12.46% 18.24%
: 13-34 is just a commonly used TA indicator, I didn't fit it. You can
: see 12-34 and 14-34 performing better for SPX, but the result is similar.
: The idea behind this: 13 weekly EMA is a mid-term

avatar
g*g
78
Honestly I am not interested in single stock, no strategy will work
for any stock. It's just like applying LEH on any B&H strategy will
be a disaster.
If you can show me a major market index that will work against this
strategy, I'd be more than happy to admit it.

【在 K****D 的大作中提到】
: Heartinny is an indexer and likely a basher of all methods, hehe.
: I am not an indexer but still a basher of all methods, hehe.
: I assumed WMT would not work based on the curve shape. Basically
: any curve that makes 13EMA and 34EMA curves cross each other very
: often won't work. Let me see if I can find an index that's this
: case, hehe.

avatar
K*D
79
It's quite hard now. It's much easier before 2007, hehe.
Basically I need an index that's like a upward sin curve, with
the frequency around 1/(20-25 weeks).

【在 g*****g 的大作中提到】
: Honestly I am not interested in single stock, no strategy will work
: for any stock. It's just like applying LEH on any B&H strategy will
: be a disaster.
: If you can show me a major market index that will work against this
: strategy, I'd be more than happy to admit it.

avatar
g*g
80
I'll take any major index & >10 years period to compare.
It's good to know how much you'll lose in worst condition.

【在 K****D 的大作中提到】
: It's quite hard now. It's much easier before 2007, hehe.
: Basically I need an index that's like a upward sin curve, with
: the frequency around 1/(20-25 weeks).

avatar
K*D
81
NASDAQ Biotechnology (^NBI) might have a shot.
Again, you are at a huge advantage now since the market just
went through two huge bear markets, hehe. Before 2000, I think
it should be quite easy to grab some indice that can beat your
method, hehe.

【在 K****D 的大作中提到】
: It's quite hard now. It's much easier before 2007, hehe.
: Basically I need an index that's like a upward sin curve, with
: the frequency around 1/(20-25 weeks).

avatar
g*g
82
I think you have a good point, so I backtest SPX from 1950 to 2000/3,
B&H return is 7.14%, 13-34 return is 12.28%.

【在 K****D 的大作中提到】
: NASDAQ Biotechnology (^NBI) might have a shot.
: Again, you are at a huge advantage now since the market just
: went through two huge bear markets, hehe. Before 2000, I think
: it should be quite easy to grab some indice that can beat your
: method, hehe.

avatar
K*D
83
How did you compute the max loss% of buying and holding?
As long as it's comparing with the original purchase price,
I am fine with it.
XLV might also have a shot. (I don't know the index ticker
for this.)
Basically health care survived both bear markets and didn't
have huge drop. In the meanwhile in the bull years indexing
owns the EMA method, hehe.

【在 g*****g 的大作中提到】
: I'll take any major index & >10 years period to compare.
: It's good to know how much you'll lose in worst condition.

avatar
K*D
84
BTW: how did you compute the max loss% of your EMA method?
I think to be reasonable, it should be the accumulated loss%
since beginning.
e.g., altogether 5 trades, -10%, -10%, -10%, +30%, +30%, then
max loss% should be -27.1%.
If +30%, +30%, -10%, -10%, -10%, then max loss% should be 0%.

【在 g*****g 的大作中提到】
: I'll take any major index & >10 years period to compare.
: It's good to know how much you'll lose in worst condition.

avatar
g*g
85
I'd use max accumulated loss since portofolio peak as
you don't know when you enter, the number is -29.02%
when applying the 13-34 on SPX.

【在 K****D 的大作中提到】
: BTW: how did you compute the max loss% of your EMA method?
: I think to be reasonable, it should be the accumulated loss%
: since beginning.
: e.g., altogether 5 trades, -10%, -10%, -10%, +30%, +30%, then
: max loss% should be -27.1%.
: If +30%, +30%, -10%, -10%, -10%, then max loss% should be 0%.

avatar
K*D
86
S&P was too flat during bull years, hehe.
That's why you only had 20 trades during 50 years.
In order to beat your method, there needs to be a lot of trades
(i.e., EMA got confused, no obvious trend).

【在 g*****g 的大作中提到】
: I think you have a good point, so I backtest SPX from 1950 to 2000/3,
: B&H return is 7.14%, 13-34 return is 12.28%.

avatar
K*D
87
Sounds right.
Could you try biotech index and health care index? hehe.
I think your method would still win slightly though. Not sure
about the max loss though.

【在 g*****g 的大作中提到】
: I'd use max accumulated loss since portofolio peak as
: you don't know when you enter, the number is -29.02%
: when applying the 13-34 on SPX.

avatar
g*g
88
B&H ^NBI beats 13-34 well, 13.5% vs. 4.17%

【在 K****D 的大作中提到】
: NASDAQ Biotechnology (^NBI) might have a shot.
: Again, you are at a huge advantage now since the market just
: went through two huge bear markets, hehe. Before 2000, I think
: it should be quite easy to grab some indice that can beat your
: method, hehe.

avatar
K*D
89
I didn't expect the advantage to be so much. Maybe you should
count from the point when EMA13 crosses EMA34 for the first
time?
Anyway, from intuition, if you expect S&P to have a long L
shape recovery, then the EMA method would eventually be
confused and you have to trade in the bottom for many times
before the trend establishes. That may impair your performance.
If the market recovers in V shape, then it's much better.
Many people are predicting an L shape though.

【在 g*****g 的大作中提到】
: B&H ^NBI beats 13-34 well, 13.5% vs. 4.17%
avatar
g*g
90
L shape is not a big deal, it's
L
L shape that will kill bulls and I'd try to avoid at all cost.
And as I said, I'd use more sophisticated method than this to
reduce noise.

【在 K****D 的大作中提到】
: I didn't expect the advantage to be so much. Maybe you should
: count from the point when EMA13 crosses EMA34 for the first
: time?
: Anyway, from intuition, if you expect S&P to have a long L
: shape recovery, then the EMA method would eventually be
: confused and you have to trade in the bottom for many times
: before the trend establishes. That may impair your performance.
: If the market recovers in V shape, then it's much better.
: Many people are predicting an L shape though.

avatar
h*y
91
OK. Can you look at SPX from 1950 to 1980 and tell us what the results are?

【在 g*****g 的大作中提到】
: annual return B&H annual
: SPX (since 1950) 13-34 10.03% 6.00%
: SPX (since 1950) 12-34 10.12%
: SPX (since 1950) 14-34 10.16%
: DJI (since 1928) 13-34 9.95% 5.49%
: WMT (since 1972) 13-34 12.46% 18.24%
: 13-34 is just a commonly used TA indicator, I didn't fit it. You can
: see 12-34 and 14-34 performing better for SPX, but the result is similar.
: The idea behind this: 13 weekly EMA is a mid-term

avatar
h*y
92
OK. Can you look at SPX from 1950 to 1980 and tell us what the results are?

【在 g*****g 的大作中提到】
: annual return B&H annual
: SPX (since 1950) 13-34 10.03% 6.00%
: SPX (since 1950) 12-34 10.12%
: SPX (since 1950) 14-34 10.16%
: DJI (since 1928) 13-34 9.95% 5.49%
: WMT (since 1972) 13-34 12.46% 18.24%
: 13-34 is just a commonly used TA indicator, I didn't fit it. You can
: see 12-34 and 14-34 performing better for SPX, but the result is similar.
: The idea behind this: 13 weekly EMA is a mid-term

avatar
g*g
93
You are right, first cross occurs after the price is already 300%.
If it starts with first cross, the B&H return is 4.87%, compared to
4.17%.

【在 K****D 的大作中提到】
: I didn't expect the advantage to be so much. Maybe you should
: count from the point when EMA13 crosses EMA34 for the first
: time?
: Anyway, from intuition, if you expect S&P to have a long L
: shape recovery, then the EMA method would eventually be
: confused and you have to trade in the bottom for many times
: before the trend establishes. That may impair your performance.
: If the market recovers in V shape, then it's much better.
: Many people are predicting an L shape though.

avatar
s*n
94
This is a great post.
I was also thinking about how goodbug's TA indicators are different from a
pure parameter fitting, but I do believe there are some underlying reasons
behind it, and the parameters he used do have some robustness.

you
few
patient
and
how
average
out

【在 h*******y 的大作中提到】
: You don't understand what the BM was asking, do you?
: You kept claiming that you have a better liver medicine, but the method you
: used is by applying the historical data with a model containing quite a few
: variables, it does NOT count. Say, you group all the liver diseases patient
: into two groups (one died with 3 years and one lived beyond three years) and
: then you study the all the differences: how do they sleep differently, how
: do they eat differently, what drugs they take and how much they exe

avatar
s*n
95
From a scientific researcher point of view, I don't buy any empirical
conclusion before I have confidence in its underlying theory.
Market is not a random walk. We all know it's not.
The theory behind buy & hold is human productivity always improves over time
, and the productivity will be reflected in corporate profits over the long
run.
The theory behind your method, as far as I can understand, is the existence
of economic cycles, and an estimate of its time frame:
1. A typical bear market ind

【在 g*****g 的大作中提到】
: annual return B&H annual
: SPX (since 1950) 13-34 10.03% 6.00%
: SPX (since 1950) 12-34 10.12%
: SPX (since 1950) 14-34 10.16%
: DJI (since 1928) 13-34 9.95% 5.49%
: WMT (since 1972) 13-34 12.46% 18.24%
: 13-34 is just a commonly used TA indicator, I didn't fit it. You can
: see 12-34 and 14-34 performing better for SPX, but the result is similar.
: The idea behind this: 13 weekly EMA is a mid-term

avatar
K*D
96
So, do you think now the 34-week should be longer or shorter?
the 13-week should be longer or shorter?

On the other hand, we are more confident in theory 1. The chance for thoery
1 to be falsified seems much smaller than theory 2. That's why we have
confidence in buy&hold. The time frame of economic cycles and market
response may or may not be affacted by a lot of factors (other than human
nature-greediness). For example, I may argue, information is spreading
faster, the market becomes globally

【在 s**********n 的大作中提到】
: From a scientific researcher point of view, I don't buy any empirical
: conclusion before I have confidence in its underlying theory.
: Market is not a random walk. We all know it's not.
: The theory behind buy & hold is human productivity always improves over time
: , and the productivity will be reflected in corporate profits over the long
: run.
: The theory behind your method, as far as I can understand, is the existence
: of economic cycles, and an estimate of its time frame:
: 1. A typical bear market ind

avatar
g*g
97
As an engineer, I buy empirical conclusion as long as it shows statistical
significance and robustness. I believe the indicator helps because
1. It shows better return than B&H in all broad market indices I found
2. It shows less max drawdown
3. It shows slightly worse but still positive return than B&H in cyclic
market like retailers and BIO, with lower max drawdown. Exactly what you
try to achieve in diversification.
4. What I didn't mention yesterday, it shows a positive 4% annual return
by g

【在 s**********n 的大作中提到】
: From a scientific researcher point of view, I don't buy any empirical
: conclusion before I have confidence in its underlying theory.
: Market is not a random walk. We all know it's not.
: The theory behind buy & hold is human productivity always improves over time
: , and the productivity will be reflected in corporate profits over the long
: run.
: The theory behind your method, as far as I can understand, is the existence
: of economic cycles, and an estimate of its time frame:
: 1. A typical bear market ind

avatar
m*t
98

Because
Wait, now I don't buy _that_ either, for the same reason I don't
buy bug's "holy grail" - you are too certain.
If bug has backtested the strategy with historical data that
goes back far enough, then I would believe that empirically it has
some better odds to work in the future. "Better odds" doesn't
mean that it will definitely work, but only that it will more likely
work than a random strategy. And it would become "no better
odds" only when in some future the market shows otherwise.

【在 h*******y 的大作中提到】
: OK. Can you look at SPX from 1950 to 1980 and tell us what the results are?
avatar
g*g
99
There's no holy grail, as one mentioned, if it's China in 1949,
we all wiped out. But I show a strategy that still works if the market
will mirror the history, only on totally opposite way. Moreover,
it will get the same return if you do both long and short. That by
my definition, is more robust and making less assumption.

【在 m******t 的大作中提到】
:
: Because
: Wait, now I don't buy _that_ either, for the same reason I don't
: buy bug's "holy grail" - you are too certain.
: If bug has backtested the strategy with historical data that
: goes back far enough, then I would believe that empirically it has
: some better odds to work in the future. "Better odds" doesn't
: mean that it will definitely work, but only that it will more likely
: work than a random strategy. And it would become "no better
: odds" only when in some future the market shows otherwise.

avatar
p*h
100
could u calculate the annual return for doing long in bull and short in bear?

【在 g*****g 的大作中提到】
: There's no holy grail, as one mentioned, if it's China in 1949,
: we all wiped out. But I show a strategy that still works if the market
: will mirror the history, only on totally opposite way. Moreover,
: it will get the same return if you do both long and short. That by
: my definition, is more robust and making less assumption.

avatar
g*g
101
I think long only is 10%, short only is 4% and total is about 12%.
I can double check the number tonight.

bear?

【在 p******h 的大作中提到】
: could u calculate the annual return for doing long in bull and short in bear?
avatar
K*D
102
B&H does not assume more than what you assume:
It also assumes in 10-30 years the market will repeat
its history -- yield positive.
Just like your assumption:
In 10-30 years the market will repeat its history -- does not
turn cyclical (basically any shape that involves rapid cycles,
high spike, and low absolute long-term yield).
Actually I believe that there is no guarantee that S&P won't
turn cyclical, provided the current economy.

Overall it works like a MA, if you buy when 200MA is moving up

【在 g*****g 的大作中提到】
: I think long only is 10%, short only is 4% and total is about 12%.
: I can double check the number tonight.
:
: bear?

avatar
g*g
103
If SPX goes all the way from here to 26 points in 50 years, my strategy
still makes money, how about B&H? And when you talk about cyclic, you have
to define the frequency. I can call the last 10 years cyclic too, and my
strategy still beats B&H. I admit every stategy has limitation, but compare
the strategy with B&H
1. The EMA cross strategy will make money if history repeats trending,
no matter up or down. B&H will make money if history repeats trending up,
and make less if that's the case.
2.

【在 K****D 的大作中提到】
: B&H does not assume more than what you assume:
: It also assumes in 10-30 years the market will repeat
: its history -- yield positive.
: Just like your assumption:
: In 10-30 years the market will repeat its history -- does not
: turn cyclical (basically any shape that involves rapid cycles,
: high spike, and low absolute long-term yield).
: Actually I believe that there is no guarantee that S&P won't
: turn cyclical, provided the current economy.
:

avatar
K*D
104
If SPX goes to 26, it does not qualify the "cyclical" I mentioned.
Your method fear high VIX pig market, an example would be biotech
during 2003-2007.
I think as long as the frequency is near 13 weeks but far away
from 34 weeks, your method gets defeated. I don't have a tool
to simulate though, that's just my engineer's intuition, hehe.
Basically in that case I would imaging EMA13 to go up and down
very sensitively, while EMA34 keeps comparably flat, thus making
EMA13 cross EMA34 quite often.

【在 g*****g 的大作中提到】
: If SPX goes all the way from here to 26 points in 50 years, my strategy
: still makes money, how about B&H? And when you talk about cyclic, you have
: to define the frequency. I can call the last 10 years cyclic too, and my
: strategy still beats B&H. I admit every stategy has limitation, but compare
: the strategy with B&H
: 1. The EMA cross strategy will make money if history repeats trending,
: no matter up or down. B&H will make money if history repeats trending up,
: and make less if that's the case.
: 2.

avatar
g*g
105
You are right. But
1. Even Retailer and BIO wasn't this cyclic.
2. There is no strategy that will work for any market.
3. No strategy can consistently win in random walk.
4. In real world, I'd add other TA indicators such as
higer high, higher low to help. It may reduce the overall
return in backtesting history data but will reduce false
signal in pig market as well.
If you believe stock market is a probability game as I do.
I'd put my bets on MA cross over B&H.

【在 K****D 的大作中提到】
: If SPX goes to 26, it does not qualify the "cyclical" I mentioned.
: Your method fear high VIX pig market, an example would be biotech
: during 2003-2007.
: I think as long as the frequency is near 13 weeks but far away
: from 34 weeks, your method gets defeated. I don't have a tool
: to simulate though, that's just my engineer's intuition, hehe.
: Basically in that case I would imaging EMA13 to go up and down
: very sensitively, while EMA34 keeps comparably flat, thus making
: EMA13 cross EMA34 quite often.

avatar
K*D
106
ft, I admit my maths is bad. If a sin curve has frequency of
1/13 weeks, the EMA13 would be flat, while EMA34 goes up and down
slightly. But your method still won't work well though.

【在 K****D 的大作中提到】
: If SPX goes to 26, it does not qualify the "cyclical" I mentioned.
: Your method fear high VIX pig market, an example would be biotech
: during 2003-2007.
: I think as long as the frequency is near 13 weeks but far away
: from 34 weeks, your method gets defeated. I don't have a tool
: to simulate though, that's just my engineer's intuition, hehe.
: Basically in that case I would imaging EMA13 to go up and down
: very sensitively, while EMA34 keeps comparably flat, thus making
: EMA13 cross EMA34 quite often.

avatar
K*D
107
I have confidence that your method would still beat B&H in
the near future. However, its advantage might decrease, due
to the higher-than-before VIX level and lower-than-before
big waves (more likely to be pig market, not roller-coaster).
But nobody knows, maybe the market would go up 100% than go
down 50% again in 3 years. Then EMA kills.

【在 g*****g 的大作中提到】
: You are right. But
: 1. Even Retailer and BIO wasn't this cyclic.
: 2. There is no strategy that will work for any market.
: 3. No strategy can consistently win in random walk.
: 4. In real world, I'd add other TA indicators such as
: higer high, higher low to help. It may reduce the overall
: return in backtesting history data but will reduce false
: signal in pig market as well.
: If you believe stock market is a probability game as I do.
: I'd put my bets on MA cross over B&H.

avatar
g*g
108
The chance of wipsaw in bear market is actually lower, as 13EMA
rarely turns. As you can see here.
http://stockcharts.com/def/servlet/Favorites.CServlet?obj=ID2393449&cmd=show[s155827289]&disp=P

【在 K****D 的大作中提到】
: I have confidence that your method would still beat B&H in
: the near future. However, its advantage might decrease, due
: to the higher-than-before VIX level and lower-than-before
: big waves (more likely to be pig market, not roller-coaster).
: But nobody knows, maybe the market would go up 100% than go
: down 50% again in 3 years. Then EMA kills.

avatar
K*D
109
I was exactly saying that there will likely be no more bear
market starting from today -- that is, another 30% drop from
today.
Therefore, wipsaw chance is higher. That's just my opinion.

【在 g*****g 的大作中提到】
: The chance of wipsaw in bear market is actually lower, as 13EMA
: rarely turns. As you can see here.
: http://stockcharts.com/def/servlet/Favorites.CServlet?obj=ID2393449&cmd=show[s155827289]&disp=P

avatar
g*g
110
In bull market VIX is low, my friend. Long lasting pig market with
5-10% up or down in turn every 3-6 months is rarely seen in history.
From conspiracy point of view, MM will have hard time to beat retailers
in that kind of market.

【在 K****D 的大作中提到】
: I was exactly saying that there will likely be no more bear
: market starting from today -- that is, another 30% drop from
: today.
: Therefore, wipsaw chance is higher. That's just my opinion.

avatar
s*n
111
For EMA to work, you need history to repeat trending, and its trending time
frame should not differ too much from that in history. For B&H to work, you
don't need market pattern. The only bet is we will live in a more advanced
world when you retire, and the market doesn't deviate from the economy for
more than a few decades.
How can you view the stock market purely as a number game? On the time scale
of a few years, it's really the economy that matters.

compare

【在 g*****g 的大作中提到】
: If SPX goes all the way from here to 26 points in 50 years, my strategy
: still makes money, how about B&H? And when you talk about cyclic, you have
: to define the frequency. I can call the last 10 years cyclic too, and my
: strategy still beats B&H. I admit every stategy has limitation, but compare
: the strategy with B&H
: 1. The EMA cross strategy will make money if history repeats trending,
: no matter up or down. B&H will make money if history repeats trending up,
: and make less if that's the case.
: 2.

avatar
K*D
112
实际上如果市场接下来1-2个月收盘价水平浮动(哪怕浮动很大,只要
平均收盘价跟现在差不多),你的EMA34就要cross down EMA13了, you
will buy then.
到那时候如果市场继续水平上下浮动(biotech curve), 你就危险了。
这并不是没有可能,至少2009年。

【在 K****D 的大作中提到】
: I was exactly saying that there will likely be no more bear
: market starting from today -- that is, another 30% drop from
: today.
: Therefore, wipsaw chance is higher. That's just my opinion.

avatar
g*g
113
The loss will be small, usually < 10%, it will take years of pig market
to accumulate a big loss. And I can always combine other indicators to
reduce noise.
People see profit in bull market, opportunity in bear market, but only
boredom in pig market. A long lasting pig market is the last thing MM
wants to see.

【在 K****D 的大作中提到】
: 实际上如果市场接下来1-2个月收盘价水平浮动(哪怕浮动很大,只要
: 平均收盘价跟现在差不多),你的EMA34就要cross down EMA13了, you
: will buy then.
: 到那时候如果市场继续水平上下浮动(biotech curve), 你就危险了。
: 这并不是没有可能,至少2009年。

avatar
g*g
114

time
you
The EMA is only assuming the trending time is not too small, e.g. longer
than
6 months. And if market indeed reflects economy, for EMA to not work,
economy
must be up and down like SIN wave every 6 months and something must be
seriously wrong. And for your argument, I am not sure Japanese people will
break even when they retire if they buy around 1990s, 20 years' gone by
already. For any strategy, I'd check 30 or 40 years (use your retire time
here) worst return as bottom line, and B&H

【在 s**********n 的大作中提到】
: For EMA to work, you need history to repeat trending, and its trending time
: frame should not differ too much from that in history. For B&H to work, you
: don't need market pattern. The only bet is we will live in a more advanced
: world when you retire, and the market doesn't deviate from the economy for
: more than a few decades.
: How can you view the stock market purely as a number game? On the time scale
: of a few years, it's really the economy that matters.
:
: compare

avatar
K*D
115
Well, since the DOW 10-year return became negative, whether
the world would advance in 10 years has become an assumption
too, hehe.
Some people will retire in 10 years. They need the assumption
to continue to buy and hold.

time
you
scale

【在 s**********n 的大作中提到】
: For EMA to work, you need history to repeat trending, and its trending time
: frame should not differ too much from that in history. For B&H to work, you
: don't need market pattern. The only bet is we will live in a more advanced
: world when you retire, and the market doesn't deviate from the economy for
: more than a few decades.
: How can you view the stock market purely as a number game? On the time scale
: of a few years, it's really the economy that matters.
:
: compare

avatar
K*D
116
?
take 30-year as an example, what's the worst % on DOW
starting any time from 1900-1979?
I don't think it ever went negative ah?
(I thought you computed in another way.)

【在 g*****g 的大作中提到】
:
: time
: you
: The EMA is only assuming the trending time is not too small, e.g. longer
: than
: 6 months. And if market indeed reflects economy, for EMA to not work,
: economy
: must be up and down like SIN wave every 6 months and something must be
: seriously wrong. And for your argument, I am not sure Japanese people will
: break even when they retire if they buy around 1990s, 20 years' gone by

avatar
g*g
117
Depends on what you are comparing to. e.g.
Bond has 40, 60 and 80 years overperforming dji.
It makes more sense to use bond as the bottom line
since you have inflation.
And only take dji and not Nikkei is another way
of making more assumption. How do you know dji will
not be like Nikkei? The last 10 years look like it.

【在 K****D 的大作中提到】
: ?
: take 30-year as an example, what's the worst % on DOW
: starting any time from 1900-1979?
: I don't think it ever went negative ah?
: (I thought you computed in another way.)

avatar
K*D
118
What about the number in your simulation? negative double-digit?
What's that?

【在 g*****g 的大作中提到】
: Depends on what you are comparing to. e.g.
: Bond has 40, 60 and 80 years overperforming dji.
: It makes more sense to use bond as the bottom line
: since you have inflation.
: And only take dji and not Nikkei is another way
: of making more assumption. How do you know dji will
: not be like Nikkei? The last 10 years look like it.

avatar
g*g
119
Which number?

【在 K****D 的大作中提到】
: What about the number in your simulation? negative double-digit?
: What's that?

avatar
K*D
120
Max. system % drawdown

【在 g*****g 的大作中提到】
: Which number?
avatar
g*g
121
It means the max drawdown from your portofolio peak ever.
e.g. If you buy and hold any time before 2007/11 and sell
any time after 2009/3 it will be -57%+ even if you close
at 10000 in the future.
The strategy has about -30% backtesting SPX since 1950, and
it's still too high for my taste. As I said, most investors
here can afford much higher risk than me, I am always scared
on how bad a hit B&H can be, and I learned my lession in a hard
way.

【在 K****D 的大作中提到】
: Max. system % drawdown
avatar
K*D
122
So what does this max drawdown value indicate in real life?
For a B&Her, having -60% in the middle doesn't matter much
as long as he/she doesn't retire at that time. Same thing for
EMA'er. Why are you afraid to see -30%?

【在 g*****g 的大作中提到】
: It means the max drawdown from your portofolio peak ever.
: e.g. If you buy and hold any time before 2007/11 and sell
: any time after 2009/3 it will be -57%+ even if you close
: at 10000 in the future.
: The strategy has about -30% backtesting SPX since 1950, and
: it's still too high for my taste. As I said, most investors
: here can afford much higher risk than me, I am always scared
: on how bad a hit B&H can be, and I learned my lession in a hard
: way.

avatar
g*g
123
You may be forced to liquidate and not get back into market
due to any reason. Like retire, like you need the money to
do house downpay. etc. So that's always a risk. Bond, CD, you
can liquidate any time. That's why you want a premium buying
stock and deriative like put can help smooth it out.
It's always important to know how much money you can afford to
lose before you are in the market, not after you already lose it.

【在 K****D 的大作中提到】
: So what does this max drawdown value indicate in real life?
: For a B&Her, having -60% in the middle doesn't matter much
: as long as he/she doesn't retire at that time. Same thing for
: EMA'er. Why are you afraid to see -30%?

avatar
h*y
124
Could you calculate the return of your method for SPX between 1950 to 1979
v.s 1980 to 2009 please? I would like to see if it works better in the normal
economy or in the asset bubble economy that we had for the last 30 years.

【在 g*****g 的大作中提到】
: There's no holy grail, as one mentioned, if it's China in 1949,
: we all wiped out. But I show a strategy that still works if the market
: will mirror the history, only on totally opposite way. Moreover,
: it will get the same return if you do both long and short. That by
: my definition, is more robust and making less assumption.

avatar
K*D
125
Well, I personally would only buy and hold in retirement accounts.
All other stuffs you mentioned do not have a fixed time frame
unless the risk are taken care in other ways (say the investment
is completely 闲钱).
In reality I think the retirement accounts (not necessarily
401k or IRAs, as long as the purpose is for money after
retirement) are the biggest chunk and buy-and-holders
are talking about that.
If invest for house downpay, I think even die-hard indexer
Ringer won't dare to do B&H.

【在 g*****g 的大作中提到】
: You may be forced to liquidate and not get back into market
: due to any reason. Like retire, like you need the money to
: do house downpay. etc. So that's always a risk. Bond, CD, you
: can liquidate any time. That's why you want a premium buying
: stock and deriative like put can help smooth it out.
: It's always important to know how much money you can afford to
: lose before you are in the market, not after you already lose it.

avatar
s*n
126
Max drawdown is a measure of risk. It's the most important measurement
for a mechanical strategy.
One usage of max drawdown is to determine how much you can leverage
up your strategy. If you have a strategy with 1% yield and 2% max drawdown,
you might feel comfortable to leverage it by 10 so you can get 10% yield.
But if you have a strategy with 15% yield but 50% max drawdown, you'd
better think twice if you ever want to use it.
The other usage is to function as a warning/stop signal. If you his

【在 K****D 的大作中提到】
: So what does this max drawdown value indicate in real life?
: For a B&Her, having -60% in the middle doesn't matter much
: as long as he/she doesn't retire at that time. Same thing for
: EMA'er. Why are you afraid to see -30%?

avatar
s*n
127
you should expect what your this "fine-tuning" can do.
Your original simple strategy probably fails every 50 years.
After your "fine-tuning", this "better" strategy most likely
will fail every 50 months.
avatar
d*z
128
But as long as your max draw is >15%, you are wiped out with 1:5 leverage.
Right?

【在 g*****g 的大作中提到】
: OK, I got your strategy. So you can get 7% return and borrow 5%.
: How about get 10% return as I did and borrow 5% with 5 time leverage?
: At the end of the day, I get 10+ 5 * 5% = 35% annually, more than
: double your return, and it's working before and after 2007.
:
: imply
: early
: 5%
: people

avatar
d*z
129
I agree with what you said. It looks to me that bug's strategy does have a
not-so-simple implied assumption about how trending pattern works.

time
long
existence
years

【在 s**********n 的大作中提到】
: From a scientific researcher point of view, I don't buy any empirical
: conclusion before I have confidence in its underlying theory.
: Market is not a random walk. We all know it's not.
: The theory behind buy & hold is human productivity always improves over time
: , and the productivity will be reflected in corporate profits over the long
: run.
: The theory behind your method, as far as I can understand, is the existence
: of economic cycles, and an estimate of its time frame:
: 1. A typical bear market ind

avatar
d*z
130
The last conclusion should be changed to:
MA strategy assume bull or bear with a trending pattern within a range. B&H
asume bull only when timeframe is long enough, without trending pattern
constrints.

compare

【在 g*****g 的大作中提到】
: If SPX goes all the way from here to 26 points in 50 years, my strategy
: still makes money, how about B&H? And when you talk about cyclic, you have
: to define the frequency. I can call the last 10 years cyclic too, and my
: strategy still beats B&H. I admit every stategy has limitation, but compare
: the strategy with B&H
: 1. The EMA cross strategy will make money if history repeats trending,
: no matter up or down. B&H will make money if history repeats trending up,
: and make less if that's the case.
: 2.

avatar
g*g
131
Not if my ass is covered by Fed, and can borrow from tax payer for
free. :-)

【在 d*****z 的大作中提到】
: But as long as your max draw is >15%, you are wiped out with 1:5 leverage.
: Right?

avatar
g*g
132
15.70% from 1950-1979, 8.31% from 1980-2009. 10.03% combined.
It's worth mentioning the money is in the market for 2/3 of the
time. The majority of this 1/3 is bear market and those can last
multiple years. The strategy can certainly get some return from
bond or CD in those periods.

normal

【在 h*******y 的大作中提到】
: Could you calculate the return of your method for SPX between 1950 to 1979
: v.s 1980 to 2009 please? I would like to see if it works better in the normal
: economy or in the asset bubble economy that we had for the last 30 years.

avatar
p*h
133
直观上也很好理解,做大波用长周期,中波中周期,小波短周期

have

【在 K****D 的大作中提到】
: If SPX goes to 26, it does not qualify the "cyclical" I mentioned.
: Your method fear high VIX pig market, an example would be biotech
: during 2003-2007.
: I think as long as the frequency is near 13 weeks but far away
: from 34 weeks, your method gets defeated. I don't have a tool
: to simulate though, that's just my engineer's intuition, hehe.
: Basically in that case I would imaging EMA13 to go up and down
: very sensitively, while EMA34 keeps comparably flat, thus making
: EMA13 cross EMA34 quite often.

avatar
p*h
134
看来要确定13,34这几个参数,要作傅立叶变换了

【在 K****D 的大作中提到】
: ft, I admit my maths is bad. If a sin curve has frequency of
: 1/13 weeks, the EMA13 would be flat, while EMA34 goes up and down
: slightly. But your method still won't work well though.

avatar
p*h
135
另外,你手头有黄金的数据么?能不能对黄金来个backtest, 牛市做多,熊市做空
以及对DOW/GOLD曲线,SPY/GOLD曲线用一下你的strategy.

【在 g*****g 的大作中提到】
: I think long only is 10%, short only is 4% and total is about 12%.
: I can double check the number tonight.
:
: bear?

avatar
g*g
136
哪里有黄金的数据呀?GLD年头太短。

【在 p******h 的大作中提到】
: 另外,你手头有黄金的数据么?能不能对黄金来个backtest, 牛市做多,熊市做空
: 以及对DOW/GOLD曲线,SPY/GOLD曲线用一下你的strategy.

avatar
p*h
139
传个下好的excel 文件

【在 g*****g 的大作中提到】
: 这个太不方便了,还得分30年下。
avatar
g*g
140
按第一次EMA买入为开始
EMA annual return B&H return EMA max drawdown
6.40% 6.22% -49.10%
小beat B&H,但这个max drawdown很厉害。

【在 p******h 的大作中提到】
: 传个下好的excel 文件
avatar
p*h
141
good info.
BTW, can u also calculate the curve of DOW/GOLD or SPY/GOLD ? interested to
know the return rate measured by gold standard.

【在 g*****g 的大作中提到】
: 按第一次EMA买入为开始
: EMA annual return B&H return EMA max drawdown
: 6.40% 6.22% -49.10%
: 小beat B&H,但这个max drawdown很厉害。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。