LDAYS:=4;
BDAYS:=17;
MDAYS:=36;
EDAYS:=54;
AA:=(O+H+L+C)/4;
BB:=MA(AA,LDAYS);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),LDAYS)/SUM(IF(AA<REF(AA,1),AA*VOL,0),LDAYS);
DD:=REF(100-(100/(1+CC)),1);
A1:=HHV(AA,BDAYS);
A2:=LLV(AA,BDAYS);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*100;
B1:=HHV(AA,MDAYS);
B2:=LLV(AA,MDAYS);
B3:=B1-B2;
B4:=EMA((AA-B2)/B3,2)*100;
C1:=HHV(AA,EDAYS);
C2:=LLV(AA,EDAYS);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,2)*100;
短:A4,COLORGREEN;
中:B4,COLORYELLOW;
长:C4,COLORFF00FF;
STICKLINE(短>90 AND 中>70,86,94,6,0),COLOR00FF00;
STICKLINE(短<5 AND 中<30,0,8,6,0);
IF(FILTER(中<REF(中,1)AND 中>90 AND BB<REF(BB,1),5),80,100),COLORBLUE,LINETHICK2;
IF(FILTER(中>REF(中,1)AND 中<5 AND C>REF(C,1),5),20,0),COLORRED,LINETHICK2;
D0:=(A4<=8 AND B4<40 AND A4<=B4) OR (B4<10 AND C4<45 AND B4<=C4) OR (A4<10 AND A4==B4) OR A4<=4;
D1:=中>REF(中,1)AND 短>REF(短,1)AND 长>REF(长,1)AND 长<8 AND 中<10 AND 短<15;
D2:=CROSS(短,中)AND 中<=8;
D3:=CROSS(短,长)AND 长<=8 AND 中<20;
DRAWICON(FILTER((D0 OR D1 OR D2 OR D3) AND DD<15 AND C>REF(C,1), 5), 5, 1);
DRAWICON(FILTER((中<REF(中,1)AND 短<REF(短,1)AND 长<REF(长,1)AND 中>95 AND 短>85)OR (长>100 AND 中>100 AND 短>100),5),95,2);