时间之窗精品美图版(飞狐)[其他软件公式]
相关标签: 飞狐时间指标 、 美图之窗 、 美图拍拍录制时间 、 精品美图打包第一弹 、 山水美图精品图片 、 精品美文美图欣赏 、 百合精品美图 、 美图精品 、 43精品美图 、
{时间之窗}
input:n1(10),n2(20),n3(60),n(5);
A0:=BARSCOUNT(CLOSE);
A3:=SYSPARAM(3);
A2:=SYSPARAM(2);
A4:=SYSPARAM(4);
A5:=SYSPARAM(5);
NN0:=A3-A2;
NN:=A0-A2;
HH1:=(A4-A5)/10;
HH2:=HH1/4;
LL1:=LLV(LOW,NN0);
LL2:=LL1[A3];
Y0:=A0>=A2;
VV0:=IF(Y0=1 AND SYSPARAM(1)>=A0,VOL,0);
C1:=IF(BETWEEN(CLOSE,A4-0*HH1,A4-1*HH1),VV0,0);
C2:=IF(BETWEEN(CLOSE,A4-1*HH1,A4-2*HH1),VV0,0);
C3:=IF(BETWEEN(CLOSE,A4-2*HH1,A4-3*HH1),VV0,0);
C4:=IF(BETWEEN(CLOSE,A4-3*HH1,A4-4*HH1),VV0,0);
C5:=IF(BETWEEN(CLOSE,A4-4*HH1,A4-5*HH1),VV0,0);
C6:=IF(BETWEEN(CLOSE,A4-5*HH1,A4-6*HH1),VV0,0);
C7:=IF(BETWEEN(CLOSE,A4-6*HH1,A4-7*HH1),VV0,0);
C8:=IF(BETWEEN(CLOSE,A4-7*HH1,A4-8*HH1),VV0,0);
C9:=IF(BETWEEN(CLOSE,A4-8*HH1,A4-9*HH1),VV0,0);
C10:=IF(BETWEEN(CLOSE,A4-9*HH1,A4-10*HH1),VV0,0);
V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2));
V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2));
V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2));
V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2));
V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2));
V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2));
V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2));
V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2));
V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2));
V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2));
AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10)))))))));
X1:=V1/AV0>=NN/NN0 AND NN>=0;
X2:=V2/AV0>=NN/NN0 AND NN>=0;
X3:=V3/AV0>=NN/NN0 AND NN>=0;
X4:=V4/AV0>=NN/NN0 AND NN>=0;
X5:=V5/AV0>=NN/NN0 AND NN>=0;
X6:=V6/AV0>=NN/NN0 AND NN>=0;
X7:=V7/AV0>=NN/NN0 AND NN>=0;
X8:=V8/AV0>=NN/NN0 AND NN>=0;
X9:=V9/AV0>=NN/NN0 AND NN>=0;
X10:=V10/AV0>=NN/NN0 AND NN>=0;
FILLRGN(V1/AV0>=NN/NN0 AND NN>=0,A4-0*HH1,A4-1*HH1+HH1*0.5),color660033;
FILLRGN(V2/AV0>=NN/NN0 AND NN>=0,A4-1*HH1,A4-2*HH1+HH1*0.5),color990033;
FILLRGN(V3/AV0>=NN/NN0 AND NN>=0,A4-2*HH1,A4-3*HH1+HH1*0.5),colorCC0033;
FILLRGN(V4/AV0>=NN/NN0 AND NN>=0,A4-3*HH1,A4-4*HH1+HH1*0.5),colorFF0033;
FILLRGN(V5/AV0>=NN/NN0 AND NN>=0,A4-4*HH1,A4-5*HH1+HH1*0.5),colorFF0066;
FILLRGN(V6/AV0>=NN/NN0 AND NN>=0,A4-5*HH1,A4-6*HH1+HH1*0.5),colorCC0066;
FILLRGN(V7/AV0>=NN/NN0 AND NN>=0,A4-6*HH1,A4-7*HH1+HH1*0.5),color990066;
FILLRGN(V8/AV0>=NN/NN0 AND NN>=0,A4-7*HH1,A4-8*HH1+HH1*0.5),color660066;
FILLRGN(V9/AV0>=NN/NN0 AND NN>=0,A4-8*HH1,A4-9*HH1+HH1*0.5),color330066;
FILLRGN(V10/AV0>=NN/NN0 AND NN>=0,A4-9*HH1,A4-10*HH1+HH1*0.5),color66;
DRAWNUMBER(FILTER(refX(X1<ref(X1,1),6) AND V1>0,10),A4-0.05,A4-0*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X2<ref(X2,1),6) AND V2>0,10),A4-2.25*2*HH2,A4-1*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X3<ref(X3,1),6) AND V3>0,10),A4-2.85*3*HH2,A4-2*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X4<ref(X4,1),6) AND V4>0,10),A4-3.12*4*HH2,A4-3*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X5<ref(X5,1),6) AND V5>0,10),A4-3.32*5*HH2,A4-4*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X6<ref(X6,1),6) AND V6>0,10),A4-3.42*6*HH2,A4-5*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X7<ref(X7,1),6) AND V7>0,10),A4-3.52*7*HH2,A4-6*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X8<ref(X8,1),6) AND V8>0,10),A4-3.55*8*HH2,A4-7*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X9<ref(X9,1),6) AND V9>0,10),A4-3.61*9*HH2,A4-8*HH1,2),colorFFFF00;
DRAWNUMBER(FILTER(refX(X10<ref(X10,1),6) AND V10>0,10),A4-3.65*10*HH2,A4-9*HH1,2),colorFFFF00;
STICKLINE(CLOSE>=ref(CLOSE,1),LOW,HIGH,1.4,0),color1;
STICKLINE(CLOSE>=ref(CLOSE,1),LOW,HIGH,1,0),colorFF;
STICKLINE(CLOSE>=ref(CLOSE,1),LOW,HIGH,0,0),colorCC66FF;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,9.4,0),color1;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,8.8,0),color33;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,8,0),color66;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,7,0),color99;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,5.8,0),colorCC;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,4.4,0),colorFF;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,2.8,0),colorCC66FF;
STICKLINE(CLOSE>=ref(CLOSE,1),OPEN,CLOSE,1,0),colorFFBBFF;
STICKLINE(CLOSE<ref(CLOSE,1),LOW,HIGH,1.4,0),color1;
STICKLINE(CLOSE<ref(CLOSE,1),LOW,HIGH,1,0),colorFF6600;
STICKLINE(CLOSE<ref(CLOSE,1),LOW,HIGH,0,0),colorFFCC00;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,9.4,0),color1;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,8.8,0),color550000;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,8,0),color990000;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,7,0),colorFF0000;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,5.8,0),colorFF5500;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,4.4,0),colorFF8800;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,2.8,0),colorFFCC00;
STICKLINE(CLOSE<ref(CLOSE,1),OPEN,CLOSE,1,0),colorFFFF33; (责任编辑:程序化交易网整理)
如果以上指标公式不适用于您常用的行情软件
或者您想改编成选股公式,以便快速选出某种形态个股的话,