b*******e 发帖数: 6389 | 1 判断双底的算法该如何写啊?任何语言都OK。谢谢! |
b*******e 发帖数: 6389 | |
b*******e 发帖数: 24532 | 3 呵呵你是让别人告诉你算法? 牛刀兄弟,你得把
peusudecode给出来吧?
用啥语言是次要的:)
【在 b*******e 的大作中提到】 : 判断双底的算法该如何写啊?任何语言都OK。谢谢!
|
b*******e 发帖数: 6389 | 4 做个双底的算法应该不难吧,我就是想夜间睡个好觉。:(
难道没人肯说?55555
【在 b*******e 的大作中提到】 : 呵呵你是让别人告诉你算法? 牛刀兄弟,你得把 : peusudecode给出来吧? : 用啥语言是次要的:)
|
b*******e 发帖数: 24532 | 5 呵呵,要不你说个,抛砖一下?
【在 b*******e 的大作中提到】 : 做个双底的算法应该不难吧,我就是想夜间睡个好觉。:( : 难道没人肯说?55555
|
a*o 发帖数: 19981 | 6 底数=0;
while (true) {
if(底=true) 底数++;
if(底数==2) {
print "同志们冲啊~~~双低来啦!";
底数=0;
}
}
【在 b*******e 的大作中提到】 : 判断双底的算法该如何写啊?任何语言都OK。谢谢!
|
l*******r 发帖数: 3799 | |
b*******e 发帖数: 6389 | 8 我的想法很简单,假设已经做空。等待找机会cover,不想盯着。
1. 记住上次低点。前后一小时都没有更低的点,就定义为低点。
2. 等到价格跌到上次低点,就开始计时。
3. 如果从低点反弹上去一点,或者超过15分钟没有跌下去,就cover。
简单到幼稚,欢迎砸砖。
【在 b*******e 的大作中提到】 : 呵呵,要不你说个,抛砖一下?
|
b*******e 发帖数: 6389 | 9 大牛给个link! Orz
【在 l*******r 的大作中提到】 : one line code in R
|
b*******e 发帖数: 24532 | 10 haha, Amo,发觉你越来越牛了,哈
【在 a*o 的大作中提到】 : 底数=0; : while (true) { : if(底=true) 底数++; : if(底数==2) { : print "同志们冲啊~~~双低来啦!"; : 底数=0; : } : }
|
|
|
b*******e 发帖数: 24532 | 11 其实这个不一定是双底,可以在支撑处徘徊,然后掉下去啊。
【在 b*******e 的大作中提到】 : 我的想法很简单,假设已经做空。等待找机会cover,不想盯着。 : 1. 记住上次低点。前后一小时都没有更低的点,就定义为低点。 : 2. 等到价格跌到上次低点,就开始计时。 : 3. 如果从低点反弹上去一点,或者超过15分钟没有跌下去,就cover。 : 简单到幼稚,欢迎砸砖。
|
l*******r 发帖数: 3799 | 12 you first need to smooth your data by local fitting (loess()), and use a
function from pastecs library to find the turning points, then compare the
position of turning points.
Well, not one line code, but it is pretty straight-forward. The tricky
thing is to tune the parameter.
【在 b*******e 的大作中提到】 : 大牛给个link! Orz
|
b*******e 发帖数: 24532 | 13 Orz:)
【在 l*******r 的大作中提到】 : you first need to smooth your data by local fitting (loess()), and use a : function from pastecs library to find the turning points, then compare the : position of turning points. : Well, not one line code, but it is pretty straight-forward. The tricky : thing is to tune the parameter.
|
b*******e 发帖数: 6389 | 14 Orz,给俺个思路。:)
【在 b*******e 的大作中提到】 : 其实这个不一定是双底,可以在支撑处徘徊,然后掉下去啊。
|
b*******e 发帖数: 6389 | 15 果然经验老道。拜谢!
【在 l*******r 的大作中提到】 : you first need to smooth your data by local fitting (loess()), and use a : function from pastecs library to find the turning points, then compare the : position of turning points. : Well, not one line code, but it is pretty straight-forward. The tricky : thing is to tune the parameter.
|
b*******e 发帖数: 24532 | 16 \ /
\ /\ /
\/ \/
双底有三种,一种是higher low,一种是lower low, 一种是等底。
所以要写就要分开来写,每一种地tradable probability是不一样地。
higher low> same low> lower low.
呵呵
【在 b*******e 的大作中提到】 : Orz,给俺个思路。:)
|
b*******e 发帖数: 6389 | 17 你知我知天知地知,电脑不知怎么算。-_-
【在 b*******e 的大作中提到】 : \ / : \ /\ / : \/ \/ : 双底有三种,一种是higher low,一种是lower low, 一种是等底。 : 所以要写就要分开来写,每一种地tradable probability是不一样地。 : higher low> same low> lower low. : 呵呵
|
b*******e 发帖数: 24532 | 18 呵呵,那我给一个好了
Double tops ~DTOP! and bottoms
~DBOT! are characterized by an initial local extremum E1 and subsequent
local extrema Ea and Eb such that
Ea [ sup$Ptk
* : tk
* . t1
* , k 5 2, . . . ,n%
Eb [ inf $Ptk
* : tk
* . t1
* , k 5 2, . . . ,n%
and
DTOP [ 5E1 is a maximum
E1 and Ea are within 1.5 percent of their average
ta
* 2 t1
* . 22
DBOT [ 5E1 is a minimum
E1 and Eb are within 1.5 percent of their average
ta
* 2 t1
* . 22
B. The Identification Algorithm
Our algorithm begins with a sample of
【在 b*******e 的大作中提到】 : 你知我知天知地知,电脑不知怎么算。-_-
|
l*******r 发帖数: 3799 | 19 niu
【在 b*******e 的大作中提到】 : 呵呵,那我给一个好了 : Double tops ~DTOP! and bottoms : ~DBOT! are characterized by an initial local extremum E1 and subsequent : local extrema Ea and Eb such that : Ea [ sup$Ptk : * : tk : * . t1 : * , k 5 2, . . . ,n% : Eb [ inf $Ptk : * : tk
|
b*******e 发帖数: 6389 | 20 收到,谢谢兄弟。看来允许个小误差就好。:)
【在 b*******e 的大作中提到】 : 呵呵,那我给一个好了 : Double tops ~DTOP! and bottoms : ~DBOT! are characterized by an initial local extremum E1 and subsequent : local extrema Ea and Eb such that : Ea [ sup$Ptk : * : tk : * . t1 : * , k 5 2, . . . ,n% : Eb [ inf $Ptk : * : tk
|
|
|
b*******e 发帖数: 24532 | 21 Orz:)
【在 l*******r 的大作中提到】 : niu
|
b*******e 发帖数: 24532 | 22 Orz, not by me:)
【在 l*******r 的大作中提到】 : niu
|
b*******e 发帖数: 24532 | 23 check your mailbox hehe
【在 b*******e 的大作中提到】 : 收到,谢谢兄弟。看来允许个小误差就好。:)
|
c*********y 发帖数: 32 | |