- 金币:
-
- 奖励:
-
- 热心:
-
- 注册时间:
- 2007-2-8
|
|
我用的是
{欧奈尔排名,飞狐适用}
{N1:短周期,N2:长周期,M:上榜的最低位次}
input:N1(5,1,100),N2(20,5,100); {,M(1,1,100);}
m:=5;
seq:selfdata('欧奈尔排名'),colorwhite,linethick0; {当日排名}
ma1:=ma(seq,N1){,coloryellow,linethick0}; {N1日平均排名}
ma2:=ma(seq,N2){,colormagenta,linethick0}; {N2日平均排名}
h1:=llv(seq,N1){,colorgreen,linethick0}; {N1日最高排名}
h2:=llv(seq,N2){,colorred,linethick0}; {N2日最高排名}
{倒数化排名}
rseq:1/seq,colorwhite;
rma1:ma(rseq,N1),coloryellow;
rma2:ma(rseq,N2),colormagenta;
rh1:hhv(rseq,N1),pointdot,colorgreen;
rh2:hhv(rseq,N2),pointdot,colorred;
{保持排名上升速度明日是否有可能进入前M名}
tom:(2*seq-ref(seq,1)),colorgray,linethick0; {简单预测明日排名}
aft:(3*seq-2*ref(seq,1)),colorgray,linethick0; {简单预测第三日排名}
gold1:tom<m,linethick0;
gold2:aft<m,linethick0;
.....
应该没错呀 |
|
|