Q0:=IF(DATE<1230101 AND DATE>201001,1,1);
先行:=LLV(MA(HIGH,(3)),1)*Q0,LINETHICK2,COLORRED;
先行2:=LLV(MA(HIGH,(3)),2)*Q0,LINETHICK2,COLORWHITE;
M5138线:=MA(C,5)-MA(C,13)+MA(C,8)*Q0,COLORCYAN,LINETHICK1;
先行X:=CROSS(先行,M5138线)*Q0;
UPPER:=(1+6/100)*MA(CLOSE,25)*Q0;
LOWER:=(1-6/100)*MA(CLOSE,25)*Q0;
LOWER2:=(1-6/100)*MA(CLOSE,34)*Q0,COLORMAGENTA;
ENE:=(UPPER+LOWER)/2*Q0,COLORWHITE;
ENE2:=MA(ENE,3)*Q0,COLORYELLOW;
LOWER3:=MA(LOWER,3)*Q0,COLORGREEN;
M522:=MA(M5138线,2)*Q0,COLORYELLOW,LINETHICK1;
先行金:=CROSS(先行,M5138线)*Q0;
X4:=IF(先行>M5138线 AND LOWER3>LOWER2 AND ENE2>=ENE,1,0);
X:=IF(ENE>先行 AND 先行>M5138线 AND LOWER2>MA2 AND {C>LOWER2 AND} 先行>C,1,0)*Q0;
X2:=IF(先行>ENE AND 先行>M5138线 AND LOWER2>MA2 AND C>ENE AND C>先行,1,0)*Q0;
QQ_3:=CROSS(EMA(C,19),EMA(C,7))*Q0;
QQ_4:=CROSS(EMA(C,7),EMA(C,19))*Q0;
ZZ1:=L=LLV(L,BARSLAST(QQ_3)+1)*Q0;
ZZ2:=LLV(L,BARSLAST(QQ_3)+1)*Q0;
ZZ3:=H=HHV(H,BARSLAST(QQ_4)+1)*Q0;
ZZ4:=HHV(H,BARSLAST(QQ_4)+1)*Q0;
QQ_A:=DRAWLINE(ZZ1,ZZ2,ZZ3,ZZ4,0)*Q0;
YY1:=H=HHV(H,BARSLAST(QQ_4)+1)*Q0;
YY2:=HHV(H,BARSLAST(QQ_4)+1)*Q0;
YY3:=L=LLV(L,BARSLAST(QQ_3)+1)*Q0;
YY4:=LLV(L,BARSLAST(QQ_3)+1)*Q0;
QQ_B:=DRAWLINE(YY1,YY2,YY3,YY4,0)*Q0;
TTJ:=IF(QQ_B<REF(QQ_B,1) AND QQ_B=QQ_A,1,0)*Q0;
一绝:=STICKLINE(REF(TTJ,1)=0 AND TTJ>=1 AND CCI<-40 ,0,90,1,-1)*Q0,COLORRED;{红柱配金条涨}
Q_3:=CROSS(EMA(C,19),EMA(C,7))*Q0;
Q_4:=CROSS(EMA(C,7),EMA(C,19))*Q0;
Z1:=L=LLV(L,BARSLAST(Q_3)+1)*Q0;
Z2:=LLV(L,BARSLAST(Q_3)+1)*Q0;
Z3:=H=HHV(H,BARSLAST(Q_4)+1)*Q0;
Z4:=HHV(H,BARSLAST(Q_4)+1)*Q0;
Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0)*Q0;
Y1:=H=HHV(H,BARSLAST(Q_4)+1)*Q0;
Y2:=HHV(H,BARSLAST(Q_4)+1)*Q0;
Y3:=L=LLV(L,BARSLAST(Q_3)+1)*Q0;
Y4:=LLV(L,BARSLAST(Q_3)+1)*Q0;
Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0)*Q0;
TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0)*Q0;
JDMD:=REF(TJ,1)=0 AND TJ>=1*Q0;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100*Q0;
AA5:=SMA(AA4,13,8)*Q0;
走势:=CEILING(SMA(AA5,13,8))*Q0,COLORRED,LINETHICK1;
势:=走势<35*Q0;
绝:=STICKLINE(REF(TTJ,1)=0 AND JDMD>=1 AND TTJ>=1 AND CCI<-40 ,0,90,1,-0)*Q0,COLORRED;{-0是实柱,-1是空柱,红柱}
红柱:=IF(绝,60,0)*Q0,STICK,COLORRED,LINETHICK4;
金条:=IF(JDMD,40,0)*Q0,STICK,COLORYELLOW,LINETHICK4;
金红神共震:IF((X OR X2 OR X4) AND 红柱 AND 金条,20,0)*Q0,STICK,COLORMAGENTA,LINETHICK3;
DRAWTEXT(CROSS(金红神共震,1),金红神共震-金红神共震*0.15,'↖金红神共震')*Q0,COLORMAGENTA;