X_1:=EMA(CLOSE,3);
X_2:=EMA(CLOSE,26);
X_3:=X_1-X_2;
牵牛线:=EMA(EMA(EMA(CLOSE,3),3),3)+X_3,COLORWHITE;
寻牛线:=MA(MA(LOW,3),3),COLORMAGENTA;
上箱顶1:=HHV(寻牛线,60);
上箱顶:=HHV(MA(MA(LOW,3),3),60)LINETHICK3,COLORYELLOW;
下箱底:=LLV(寻牛线,20)LINETHICK3,COLORFFBB00;
短牵牛:=EMA(CLOSE,6)-EMA(CLOSE,13);
长牵牛:=EMA(短牵牛,20);
操作:=MA((L+H+C)/3,5);
起飞加速线:=HHV(操作,60),COLORLIRED;
MB1:=HHV(短牵牛,20);
MB2:=LLV(短牵牛,20);
箱顶:=REF(MB1,1);
箱底:=REF(MB2,1);
总金额:=AMOUNT;
启动量能:=MA(总金额,250),LINETHICK1,COLORGREEN;
量比:=V/REF(MA(V,5),1),COLORBROWN;
几倍:=1.9;
HJ_2:=总金额/REF(MA(总金额,5),1)>3;
倍量:=总金额>=REF(总金额,1)*几倍 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW;
倍缩:=REF(总金额,1)>= 总金额*几倍,COLORMAGENTA;
倍数:=总金额/REF(总金额,1),COLORYELLOW;
梯量:=COUNT(总金额>REF(总金额,1),3)=3 AND COUNT(C>O,3)=3,COLOR824173;
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,7);
VAR2E:=(VAR2A+VAR2C)/2/1.1;
红趋势线:=EMA(VAR2E,3)LINETHICK3,COLORRED;
白趋势线:=EMA(红趋势线,5)LINETHICK3,COLORWHITE;
XX:=crOSS(红趋势线,白趋势线);{金叉}
GJ:=((cciI.CCI#WEEK)/10)+40;
wr:=REF(C,5);
ZFU:=((C/WR)-1)*100;
WRG:=((GJ/REF(GJ,1))-1)*100;
ZSH:=((C/REF(C,10))-1)*100;
ZES:=((C/REF(C,20))-1)*100;
SG:=((GJ/REF(GJ,6))-1)*100;
ESG:=((GJ/REF(GJ,16))-1)*100;
LEN:=(ESG-ZES)+30;
MEN:=(SG-ZSH)+30;
SEN:=(WRG-ZFU)+30;
TEN:=LEN+MEN+SEN;
ENCH:=TEN>90 AND HHV(REF(TEN,1),14)<=TEN;
LJGJ:=(LEN>80 OR MEN>80 OR SEN>80) AND LEN>30 AND MEN>30 AND SEN>30;
TENMAvol:=HHV(REF(TEN,1),15);
TENMDAY:=BARSLAST(TENMAVOL);
ZNTP:=TEN>TENMAVOL AND CLOSE>REF(CLOSE,TENMDAY+1);
中途上车:=LJGJ AND ENCH AND ZNTP,COLOR006BFF;
反弹共振1:=CROSS(短牵牛,箱顶) AND CROSS(牵牛线,下箱底);
反弹共振2:=CROSS(短牵牛,箱底) AND CROSS(牵牛线,下箱底);
反弹共振3:=CROSS(牵牛线,下箱底) AND 中途上车;
反弹共振4:=XX AND CROSS(短牵牛,箱底);
反弹共振5:=中途上车 AND CROSS(短牵牛,长牵牛);
反弹:=反弹共振1 OR 反弹共振2 OR 反弹共振3 OR 反弹共振4 OR 反弹共振5;
反弹共振:反弹;