|
|
原帖由 <i>owoner</i> 于 2009-10-16 15:12 发表 <a href="http://bbs.macd.cn/redirect.php?goto=findpost&pid=20934627&ptid=1700463" target="_blank"><img src="http://bbs.macd.cn/static/image/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
现在有新意的公式越来越少看到,都是抄袭和瞎改之作。优化下瑞兄的公式,关于概率的问题,我写的不知道错对,希望瑞兄和各版主给修正。公式的表达要求20天后收盘上涨或下跌在历史上同样条件下成功的概率百分比, ... <br />
是不是可以这样做
{N:20}
A:=k<=20 AND CROSS(k,d);
BARS:=BARSLAST(A);
MaxS:=IF(BARS=N,(HHV(H,BARS)/REF(C,BARS)-1)*100,0);
MinS:=IF(BARS=N,(LLV(L,BARS)/REF(C,BARS)-1)*100,0);
MaxA:=SUM(MaxS,0)/COUNT(A,0);
MinA:=SUM(MinS,0)/COUNT(A,0); |
-
查看全部评分
|
|