- 金币:
-
- 奖励:
-
- 热心:
-
- 注册时间:
- 2002-5-11
|
|
[分享]该指标还需要各位进行修正和完善
王大哥:
不好意思,我没编过程序,学着编了一个。不知有没有把您的意思表达完整。请看看
n1为参数。
b1:=(c+l+h+o)/4;
b2:=(indexc+indexl+indexh+indexo)/4;
bb1:=(b1/b2)*1000;
bb2:=(v/indexv)*1000;
bb3:ma(bb1,n1);
bb4:ma(bb2,n1);
jg:=if(c>ref(c,1),1,0);
vl:=if(v>ref(v,1),1,0);
yx1:=if(jg=1 and vl=1 and h-c>c-o,0,8);
yx2:=if(jg=1 and vl=1 and h-c<c-o,1,8);
yx3:=if(jg=1 and vl=0 and h-c>c-o,0,8);
yx4:=if(jg=1 and vl=0 and h-c<c-o,1,8);
yx5:=if(jg=1 and vl=1 and h=c,0,8);
yx6:=if(jg=1 and vl=0 and h=c,1,8);
yx7:=if(jg=0 and vl=1 and c-l<o-c,0,8);
yx8:=if(jg=0 and vl=1 and c-l>o-c,1,8);
yx9:=if(jg=0 and vl=0 and c-l>o-c,1,8);
yx10:=if(jg=0 and vl=0 and c-l<o-c,0,8);
yx11:=if(jg=0 and vl=1 and l=c,1,8);
yx12:=if(jg=0 and vl=0 and l=c,0,8);
x1:=if(yx1=0 or yx3=0 or yx5=0,0,1);
x2:=if(c-o>ref(c,1)-ref(o,1),2,0);
x3:=if(v>ref(v,1),4,0);
x91:=if(o-c<ref(o,1)-ref(c,1),1,0);
x92:=if(v>ref(v,1),2,0);
x93:=if(yx7=0 or yx10=0 or yx12=0,0,4);
gx:=if(jg=1,8-(x1+x2+x3),8-(x91+x92+x93));
jg1:=NUMBERSUM(FLOOR(CLOSE),2)+gx;
dx:=if(mod(jg1,6)=0,6,mod(jg1,6));
a11:=if(gx=1 and dx=1,10,0);
a12:=if(gx=1 and dx=2,10,0);
a13:=if(gx=1 and dx=3,15,0);
a14:=if(gx=1 and dx=4,22,0);
a15:=if(gx=1 and dx=5,22,0);
a16:=if(gx=1 and dx=6,23,0);
a21:=if(gx=2 and dx=1,15,0);
a22:=if(gx=2 and dx=2,15,0);
a23:=if(gx=2 and dx=3,16,0);
a24:=if(gx=2 and dx=4,31,0);
a25:=if(gx=2 and dx=5,27,0);
a26:=if(gx=2 and dx=6,24,0);
a31:=if(gx=3 and dx=1,22,0);
a32:=if(gx=3 and dx=2,12,0);
a33:=if(gx=3 and dx=3,27,0);
a34:=if(gx=3 and dx=4,34,0);
a35:=if(gx=3 and dx=5,24,0);
a36:=if(gx=3 and dx=6,27,0);
a41:=if(gx=4 and dx=1,25,0);
a42:=if(gx=4 and dx=2,17,0);
a43:=if(gx=4 and dx=3,28,0);
a44:=if(gx=4 and dx=4,25,0);
a45:=if(gx=4 and dx=5,29,0);
a46:=if(gx=4 and dx=6,28,0);
a51:=if(gx=5 and dx=1,14,0);
a52:=if(gx=5 and dx=2,36,0);
a53:=if(gx=5 and dx=3,33,0);
a54:=if(gx=5 and dx=4,26,0);
a55:=if(gx=5 and dx=5,24,0);
a56:=if(gx=5 and dx=6,21,0);
a61:=if(gx=6 and dx=1,19,0);
a62:=if(gx=6 and dx=2,31,0);
a63:=if(gx=6 and dx=3,34,0);
a64:=if(gx=6 and dx=4,35,0);
a65:=if(gx=6 and dx=5,43,0);
a66:=if(gx=6 and dx=6,22,0);
a71:=if(gx=7 and dx=1,26,0);
a72:=if(gx=7 and dx=2,38,0);
a73:=if(gx=7 and dx=3,35,0);
a74:=if(gx=7 and dx=4,38,0);
a75:=if(gx=7 and dx=5,26,0);
a76:=if(gx=7 and dx=6,35,0);
a81:=if(gx=8 and dx=1,29,0);
a82:=if(gx=8 and dx=2,33,0);
a83:=if(gx=8 and dx=3,36,0);
a84:=if(gx=8 and dx=4,29,0);
a85:=if(gx=8 and dx=5,45,0);
a86:=if(gx=8 and dx=6,36,0);
sn:=a11+a12+a13+a14+a15+a16+a21+a22+a23+a24+a25+a26+a31+a32+a33+a34+a35+a36+a41+a42+a43+a44+a45+a46+a51+a52+a53+a54+a55+a56+a61+a62+a63+a64+a65+a66+a71+a72+a73+a74+a75+a76+a81+a82+a83+a84+a85+a86;
bb5:if(gx<5,bb1+sn,bb1-sn);
|
|
|